Class: Pipeline::Operation
- Inherits:
-
Object
- Object
- Pipeline::Operation
- Defined in:
- lib/pipeline/operation.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#next_op ⇒ Object
readonly
Returns the value of attribute next_op.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(next_op, data = nil) ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
#initialize(next_op, data = nil) ⇒ Operation
Returns a new instance of Operation.
5 6 7 8 |
# File 'lib/pipeline/operation.rb', line 5 def initialize(next_op, data=nil) @next_op = next_op @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/pipeline/operation.rb', line 3 def data @data end |
#next_op ⇒ Object (readonly)
Returns the value of attribute next_op.
3 4 5 |
# File 'lib/pipeline/operation.rb', line 3 def next_op @next_op end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 |
# File 'lib/pipeline/operation.rb', line 10 def call(env) @next_op.call(env) end |