class Webmachine::Adapter
The abstract class for definining a Webmachine
adapter.
@abstract Subclass and override {#run} to implement a custom adapter.
Attributes
application[R]
@return [Webmachine::Application] returns the application
Public Class Methods
new(application)
click to toggle source
@param [Webmachine::Application] application the application
# File lib/webmachine/adapter.rb, line 10 def initialize(application) @application = application end
run(application)
click to toggle source
Create a new adapter and run it.
# File lib/webmachine/adapter.rb, line 15 def self.run(application) new(application).run end
Public Instance Methods
run()
click to toggle source
Start the adapter.
@abstract Subclass and override {#run} to implement a custom adapter. @raise [NotImplementedError]
# File lib/webmachine/adapter.rb, line 23 def run raise NotImplementedError end