Class: Terrestrial::FunctionalPipeline::Step
- Inherits:
-
Object
- Object
- Terrestrial::FunctionalPipeline::Step
- Defined in:
- lib/terrestrial/functional_pipeline.rb
Instance Attribute Summary collapse
-
#func ⇒ Object
readonly
Returns the value of attribute func.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #call(*args, &block) ⇒ Object
-
#initialize(name, func) ⇒ Step
constructor
A new instance of Step.
Constructor Details
#initialize(name, func) ⇒ Step
Returns a new instance of Step.
52 53 54 55 |
# File 'lib/terrestrial/functional_pipeline.rb', line 52 def initialize(name, func) @name = name @func = func end |
Instance Attribute Details
#func ⇒ Object (readonly)
Returns the value of attribute func.
57 58 59 |
# File 'lib/terrestrial/functional_pipeline.rb', line 57 def func @func end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
57 58 59 |
# File 'lib/terrestrial/functional_pipeline.rb', line 57 def name @name end |
Instance Method Details
#call(*args, &block) ⇒ Object
59 60 61 |
# File 'lib/terrestrial/functional_pipeline.rb', line 59 def call(*args, &block) func.call(*args, &block) end |