Module: Cucumber::Parser::Feature::Step1

Defined in:
lib/cucumber/parser/feature.rb

Instance Method Summary collapse

Instance Method Details

#at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


969
970
971
972
# File 'lib/cucumber/parser/feature.rb', line 969

def at_line?(line)
  step_keyword.line == line ||
  (multi.respond_to?(:at_line?) && multi.at_line?(line))
end

#buildObject



974
975
976
977
978
979
980
# File 'lib/cucumber/parser/feature.rb', line 974

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