Class: Cucumber::Parser::GherkinBuilder::StepBuilder

Inherits:
Builder show all
Defined in:
lib/cucumber/parser/gherkin_builder.rb

Instance Method Summary collapse

Methods inherited from Builder

#initialize

Constructor Details

This class inherits a constructor from Cucumber::Parser::GherkinBuilder::Builder

Instance Method Details

#result(language) ⇒ Object



269
270
271
272
273
274
275
276
277
278
279
# File 'lib/cucumber/parser/gherkin_builder.rb', line 269

def result(language)
  step = Ast::Step.new(
    language,
    location,
    node.keyword,
    node.name,
    Ast::MultilineArgument.from(node.doc_string || node.rows)
  )
  step.gherkin_statement(node)
  step
end