Class: Spex::Scenario::Builder
- Inherits:
-
Object
- Object
- Spex::Scenario::Builder
- Defined in:
- lib/spex/scenario.rb
Instance Method Summary collapse
- #executing(command, &block) ⇒ Object
-
#initialize(scenario, &block) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(scenario, &block) ⇒ Builder
Returns a new instance of Builder.
24 25 26 27 |
# File 'lib/spex/scenario.rb', line 24 def initialize(scenario, &block) @scenario = scenario instance_eval(&block) if block_given? end |