Module: Cucumber::TreetopParser::Feature::MultilineString2
- 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
#to_arg ⇒ Object
1257 1258 1259 1260 1261 1262 1263 |
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ar.rb', line 1257 def to_arg indent_length = indent.text_value.length significant_lines = string.text_value.split("\n")[1..-2] significant_lines.map do |l| l[indent_length..-1] end.join("\n") end |