Class: WIP::Runner::Workflow::Builder::Task
- Defined in:
- lib/wip/runner/workflow/builder/task.rb
Instance Attribute Summary collapse
-
#heading ⇒ Object
readonly
Returns the value of attribute heading.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
Instance Method Summary collapse
-
#initialize(command, heading, &block) ⇒ Task
constructor
A new instance of Task.
- #step(name, &block) ⇒ Object
Methods inherited from Component
#method_missing, #prologue, #respond_to_missing?, #shell, #shells
Constructor Details
#initialize(command, heading, &block) ⇒ Task
Returns a new instance of Task.
7 8 9 10 11 12 |
# File 'lib/wip/runner/workflow/builder/task.rb', line 7 def initialize(command, heading, &block) @command = command @heading = heading @steps = [] 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/task.rb', line 5 def heading @heading end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
5 6 7 |
# File 'lib/wip/runner/workflow/builder/task.rb', line 5 def steps @steps end |