Class: Flows::Railway::Step Private
- Inherits:
-
Struct
- Object
- Struct
- Flows::Railway::Step
- Defined in:
- lib/flows/railway/step.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#lambda ⇒ Object
Returns the value of attribute lambda.
-
#name ⇒ Object
Returns the value of attribute name.
-
#next_step ⇒ Object
Returns the value of attribute next_step.
Instance Method Summary collapse
- #to_node(method_source) ⇒ Object private
Instance Attribute Details
#lambda ⇒ Object
Returns the value of attribute lambda
12 13 14 |
# File 'lib/flows/railway/step.rb', line 12 def lambda @lambda end |
#name ⇒ Object
Returns the value of attribute name
12 13 14 |
# File 'lib/flows/railway/step.rb', line 12 def name @name end |
#next_step ⇒ Object
Returns the value of attribute next_step
12 13 14 |
# File 'lib/flows/railway/step.rb', line 12 def next_step @next_step end |
Instance Method Details
#to_node(method_source) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 18 19 20 21 |
# File 'lib/flows/railway/step.rb', line 13 def to_node(method_source) Flows::Flow::Node.new( body: lambda || method_source.method(name), router: Flows::Flow::Router::Simple.new(next_step || :end, :end), meta: { name: name }, preprocessor: NODE_PREPROCESSOR, postprocessor: NODE_POSTPROCESSOR ) end |