Class: Stringup::Script::Builder
- Inherits:
-
Object
- Object
- Stringup::Script::Builder
- Defined in:
- lib/stringup/script.rb
Instance Method Summary collapse
- #command(line) ⇒ Object
-
#initialize(script, &block) ⇒ Builder
constructor
A new instance of Builder.
- #scenario(name, description = name.to_s, &block) ⇒ Object
Constructor Details
#initialize(script, &block) ⇒ Builder
Returns a new instance of Builder.
36 37 38 39 |
# File 'lib/stringup/script.rb', line 36 def initialize(script, &block) @script = script instance_eval(&block) if block_given? end |
Instance Method Details
#command(line) ⇒ Object
45 46 47 |
# File 'lib/stringup/script.rb', line 45 def command(line) @script.command = line end |