Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/nested_scenarios/builder.rb
Instance Method Summary collapse
- #scenario(scenario, &block) ⇒ Object (also: #build_scenario)
Instance Method Details
#scenario(scenario, &block) ⇒ Object Also known as: build_scenario
4 5 6 7 8 9 10 |
# File 'lib/nested_scenarios/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 |