Module: Railway::DSL

Defined in:
lib/railway.rb

Instance Method Summary collapse

Instance Method Details

#step(name, options = {}) ⇒ Object


7
8
9
10
# File 'lib/railway.rb', line 7

def step(name, options = {})
  with = options.delete(:with)
  steps.push(:name => name, :with => with)
end

#stepsObject


12
13
14
# File 'lib/railway.rb', line 12

def steps
  @steps ||= []
end