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

Defined in:
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ar.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_cy.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_da.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_de.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_es.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_et.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_fr.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_id.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_it.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ja.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ko.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_lt.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_nl.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_no.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_pl.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_pt.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ro.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ru.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_se.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ro2.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en-tx.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_zh-CN.rb,
lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en-lol.rb

Instance Method Summary collapse

Instance Method Details

#compile(feature) ⇒ Object



174
175
176
177
178
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ar.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/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ar.rb', line 180

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