Class: Object

Inherits:
BasicObject
Defined in:
lib/builder.rb

Instance Method Summary collapse

Instance Method Details

#scenario(scenario, &block) ⇒ Object Also known as: build_scenario



4
5
6
7
8
9
10
# File 'lib/builder.rb', line 4

def scenario(scenario, &block)
  if block.nil?
    raise NoMethodError, "undefined method `scenario' for #{inspect}"
  else
    NestedScenarios::Builder.new(scenario, &block).build
  end
end