Class: Cucumber::Core::Gherkin::AstBuilder::DataTableBuilder
- Inherits:
-
Builder
- Object
- Builder
- Cucumber::Core::Gherkin::AstBuilder::DataTableBuilder
show all
- Defined in:
- lib/cucumber/core/gherkin/ast_builder.rb
Instance Method Summary
collapse
Methods inherited from Builder
#handle_comments, #initialize
Instance Method Details
#result ⇒ Object
357
358
359
360
361
362
|
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 357
def result
Ast::DataTable.new(
rows,
location
)
end
|
#rows ⇒ Object
364
365
366
|
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 364
def rows
attributes[:rows] = attributes[:rows].map { |r| r[:cells].map { |c| c[:value] } }
end
|