Module: Cucumber::Parser::Feature::Step1
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
Instance Method Details
#at_line?(line) ⇒ Boolean
1017 1018 1019 1020 |
# File 'lib/cucumber/parser/feature.rb', line 1017 def at_line?(line) step_keyword.line == line || (multi.respond_to?(:at_line?) && multi.at_line?(line)) end |
#build ⇒ Object
1022 1023 1024 1025 1026 1027 1028 |
# File 'lib/cucumber/parser/feature.rb', line 1022 def build if multi.respond_to?(:build) Ast::Step.new(step_keyword.line, step_keyword.text_value.strip, name.text_value.strip, multi.build) else Ast::Step.new(step_keyword.line, step_keyword.text_value.strip, name.text_value.strip) end end |