Class: Teckel::Chain::Step
- Inherits:
-
Struct
- Object
- Struct
- Teckel::Chain::Step
- Defined in:
- lib/teckel/chain/step.rb
Overview
Internal wrapper of a step definition
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#operation ⇒ Object
Returns the value of attribute operation.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/teckel/chain/step.rb', line 6 def name @name end |
#operation ⇒ Object
Returns the value of attribute operation
6 7 8 |
# File 'lib/teckel/chain/step.rb', line 6 def operation @operation end |
Instance Method Details
#finalize! ⇒ Object
7 8 9 10 11 |
# File 'lib/teckel/chain/step.rb', line 7 def finalize! name.freeze operation.finalize! freeze end |
#with(settings) ⇒ Object
13 14 15 |
# File 'lib/teckel/chain/step.rb', line 13 def with(settings) self.class.new(name, operation.with(settings)) end |