Class: Scenario

Inherits:
TaggedGherkinCollection show all
Defined in:
lib/cuker/models/models_ready.rb

Direct Known Subclasses

ScenarioOutline

Instance Attribute Summary collapse

Attributes inherited from TaggedGherkinCollection

#tags

Attributes inherited from SimpleGherkinCollection

#comments, #title

Attributes inherited from Collection

#items, #keyword

Attributes inherited from Item

#content

Instance Method Summary collapse

Methods inherited from SimpleGherkinCollection

#parse_title

Methods inherited from Collection

#to_s

Methods inherited from Item

#to_s

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

#stepsObject

Returns the value of attribute steps.



116
117
118
# File 'lib/cuker/models/models_ready.rb', line 116

def steps
  @steps
end