Module: Cucumber::Parser::Feature::Step1
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
Instance Method Details
#at_line?(line) ⇒ Boolean
1006 1007 1008 1009 |
# File 'lib/cucumber/parser/feature.rb', line 1006 def at_line?(line) step_keyword.line == line || (multi.respond_to?(:at_line?) && multi.at_line?(line)) end |
#build ⇒ Object
1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/cucumber/parser/feature.rb', line 1011 def build if multi.respond_to?(:build) Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value.strip, multi.build) else Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value.strip) end end |