Module: Cucumber::TreetopParser::Feature::ScenarioSequence2

Defined in:
lib/cucumber/treetop_parser/feature_fi.rb

Instance Method Summary collapse

Instance Method Details

#compile(feature) ⇒ Object



174
175
176
177
178
# File 'lib/cucumber/treetop_parser/feature_fi.rb', line 174

def compile(feature)
  ([head] + tail).each do |scenario_or_scenario_outline_or_table|
    scenario_or_scenario_outline_or_table.compile(feature) if scenario_or_scenario_outline_or_table.respond_to?(:compile)
  end
end

#tailObject



180
181
182
# File 'lib/cucumber/treetop_parser/feature_fi.rb', line 180

def tail
  super.elements.map { |elt| elt.scenario_or_scenario_outline_or_table }
end