Class: Spex::Script::Builder
- Inherits:
-
Object
- Object
- Spex::Script::Builder
- Defined in:
- lib/spex/script.rb
Instance Method Summary collapse
-
#initialize(script, &block) ⇒ Builder
constructor
A new instance of Builder.
- #scenario(name, &block) ⇒ Object
Constructor Details
#initialize(script, &block) ⇒ Builder
Returns a new instance of Builder.
34 35 36 37 |
# File 'lib/spex/script.rb', line 34 def initialize(script, &block) @script = script instance_eval(&block) if block_given? end |