Class: Cucumber::Core::Gherkin::AstBuilder::ExamplesTableBuilder::ExampleRowBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/cucumber/core/gherkin/ast_builder.rb

Instance Method Summary collapse

Methods inherited from Builder

#handle_comments, #initialize

Constructor Details

This class inherits a constructor from Cucumber::Core::Gherkin::AstBuilder::Builder

Instance Method Details

#result(language, header, index) ⇒ Object



336
337
338
339
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 336

def result(language, header, index)
  cells = attributes[:cells].map { |c| c[:value] }
  header.build_row(cells, index + 1, location, language, comments)
end