Module: Cucumber::TreetopParser::Feature::Table2
- Defined in:
- lib/cucumber/treetop_parser/feature_da.rb,
lib/cucumber/treetop_parser/feature_de.rb,
lib/cucumber/treetop_parser/feature_en.rb,
lib/cucumber/treetop_parser/feature_es.rb,
lib/cucumber/treetop_parser/feature_et.rb,
lib/cucumber/treetop_parser/feature_fr.rb,
lib/cucumber/treetop_parser/feature_ja.rb,
lib/cucumber/treetop_parser/feature_nl.rb,
lib/cucumber/treetop_parser/feature_no.rb,
lib/cucumber/treetop_parser/feature_pt.rb,
lib/cucumber/treetop_parser/feature_ru.rb,
lib/cucumber/treetop_parser/feature_se.rb,
lib/cucumber/treetop_parser/feature_en-tx.rb,
lib/cucumber/treetop_parser/feature_zh-CN.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#body ⇒ Object
:nodoc:.
-
#compile(feature) ⇒ Object
:nodoc:.
-
#matrix ⇒ Object
:nodoc:.
-
#to_arg ⇒ Object
:nodoc:.
Instance Method Details
#body ⇒ Object
:nodoc:
448 449 450 |
# File 'lib/cucumber/treetop_parser/feature_da.rb', line 448 def body #:nodoc: super.elements.map { |elt| elt.table_line } end |
#compile(feature) ⇒ Object
:nodoc:
431 432 433 434 435 436 |
# File 'lib/cucumber/treetop_parser/feature_da.rb', line 431 def compile(feature) #:nodoc: Feature.last_scenario.table_header = head.cell_values body.each do |table_line| feature.add_row_scenario(Feature.last_scenario, table_line.cell_values, table_line.line) end end |
#matrix ⇒ Object
:nodoc:
438 439 440 441 442 |
# File 'lib/cucumber/treetop_parser/feature_da.rb', line 438 def matrix #:nodoc: ([head] + body).map do |table_line| table_line.cell_values # We're losing the line - we'll get it back when we make our own class #:nodoc: end end |