Class: DevSuite::Workflow::Step::Conditional
- Inherits:
-
Base
- Object
- Utils::Construct::Component::Base
- Base
- DevSuite::Workflow::Step::Conditional
- Defined in:
- lib/dev_suite/workflow/step/conditional.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name:, condition:, &action) ⇒ Conditional
constructor
A new instance of Conditional.
-
#run(context) ⇒ Object
Only execute if the condition is met.
Methods inherited from Base
Methods inherited from Utils::Construct::Component::Base
Constructor Details
#initialize(name:, condition:, &action) ⇒ Conditional
Returns a new instance of Conditional.
7 8 9 10 |
# File 'lib/dev_suite/workflow/step/conditional.rb', line 7 def initialize(name:, condition:, &action) super(name: name, &action) @condition = condition end |