Class: WIP::Runner::Workflow::Builder::Step
- Defined in:
- lib/wip/runner/workflow/builder/step.rb
Instance Attribute Summary collapse
-
#heading ⇒ Object
readonly
Returns the value of attribute heading.
Instance Method Summary collapse
-
#initialize(command, heading, &block) ⇒ Step
constructor
A new instance of Step.
Methods inherited from Component
#method_missing, #prologue, #respond_to_missing?, #shell, #shells
Constructor Details
#initialize(command, heading, &block) ⇒ Step
Returns a new instance of Step.
7 8 9 10 11 |
# File 'lib/wip/runner/workflow/builder/step.rb', line 7 def initialize(command, heading, &block) @command = command @heading = heading instance_exec(&block) if block_given? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class WIP::Runner::Workflow::Builder::Component
Instance Attribute Details
#heading ⇒ Object (readonly)
Returns the value of attribute heading.
5 6 7 |
# File 'lib/wip/runner/workflow/builder/step.rb', line 5 def heading @heading end |