Class: Stringup::Scenario
- Inherits:
-
Object
- Object
- Stringup::Scenario
- Defined in:
- lib/stringup/scenario.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #assertions ⇒ Object
-
#initialize(name, description = name.to_s.capitalize, &block) ⇒ Scenario
constructor
A new instance of Scenario.
Constructor Details
#initialize(name, description = name.to_s.capitalize, &block) ⇒ Scenario
Returns a new instance of Scenario.
5 6 7 8 9 |
# File 'lib/stringup/scenario.rb', line 5 def initialize(name, description = name.to_s.capitalize, &block) @name = name @description = description instance_eval(&block) end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/stringup/scenario.rb', line 4 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/stringup/scenario.rb', line 4 def name @name end |
Instance Method Details
#assertions ⇒ Object
11 12 13 |
# File 'lib/stringup/scenario.rb', line 11 def assertions @assertions ||= [] end |