Class: Scenario
- Inherits:
-
TaggedGherkinCollection
- Object
- Item
- Collection
- SimpleGherkinCollection
- TaggedGherkinCollection
- Scenario
- Defined in:
- lib/cuker/models/models_ready.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#steps ⇒ Object
Returns the value of attribute steps.
Attributes inherited from TaggedGherkinCollection
Attributes inherited from SimpleGherkinCollection
Attributes inherited from Collection
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(content_str, keyword = "Scenario:") ⇒ Scenario
constructor
A new instance of Scenario.
Methods inherited from SimpleGherkinCollection
Methods inherited from Collection
Methods inherited from Item
Constructor Details
#initialize(content_str, keyword = "Scenario:") ⇒ Scenario
Returns a new instance of Scenario.
118 119 120 121 122 |
# File 'lib/cuker/models/models_ready.rb', line 118 def initialize content_str, keyword = "Scenario:" @steps = [] @keyword = keyword super content_str, @keyword end |
Instance Attribute Details
#steps ⇒ Object
Returns the value of attribute steps.
116 117 118 |
# File 'lib/cuker/models/models_ready.rb', line 116 def steps @steps end |