Class: Rack::Rockets::AbstractProcessor
- Inherits:
-
Object
- Object
- Rack::Rockets::AbstractProcessor
- Defined in:
- lib/rack/rockets/abstract.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(path, options = {}, &block) ⇒ AbstractProcessor
constructor
A new instance of AbstractProcessor.
- #process ⇒ Object
- #render ⇒ Object
Constructor Details
#initialize(path, options = {}, &block) ⇒ AbstractProcessor
Returns a new instance of AbstractProcessor.
4 5 6 |
# File 'lib/rack/rockets/abstract.rb', line 4 def initialize(path, = {}, &block) self.path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/rack/rockets/abstract.rb', line 3 def path @path end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 |
# File 'lib/rack/rockets/abstract.rb', line 8 def call(env) proccess render end |
#process ⇒ Object
13 |
# File 'lib/rack/rockets/abstract.rb', line 13 def process; raise NotImplementedError, 'you must implement the process method' end |
#render ⇒ Object
15 |
# File 'lib/rack/rockets/abstract.rb', line 15 def render; raise NotImplementedError, 'you must implement the process method' end |