Class: Cucumber::Core::Gherkin::AstBuilder::ExamplesTableBuilder::HeaderBuilder

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

#resultObject



325
326
327
328
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 325

def result
  cells = attributes[:cells].map { |c| c[:value] }
  Ast::ExamplesTable::Header.new(cells, location, comments)
end