Class: WIP::Runner::Workflow::Builder::Step

Inherits:
Component
  • Object
show all
Defined in:
lib/wip/runner/workflow/builder/step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headingObject (readonly)

Returns the value of attribute heading.



5
6
7
# File 'lib/wip/runner/workflow/builder/step.rb', line 5

def heading
  @heading
end