Class: Lucid::Parser::TDLBuilder::StepBuilder

Inherits:
Builder show all
Defined in:
lib/lucid/tdl_builder.rb

Instance Method Summary collapse

Methods inherited from Builder

#initialize

Constructor Details

This class inherits a constructor from Lucid::Parser::TDLBuilder::Builder

Instance Method Details

#result(language) ⇒ Object



267
268
269
270
271
272
273
274
275
276
277
# File 'lib/lucid/tdl_builder.rb', line 267

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