Class: Cucumber::Core::Ast::ExamplesTable::Header
- Inherits:
-
Object
- Object
- Cucumber::Core::Ast::ExamplesTable::Header
- Includes:
- HasLocation
- Defined in:
- lib/cucumber/core/ast/examples_table.rb
Instance Method Summary collapse
- #build_row(row_cells, number, location) ⇒ Object
-
#initialize(cells, location) ⇒ Header
constructor
A new instance of Header.
- #values ⇒ Object
Methods included from HasLocation
#attributes, #comments, #file, #file_colon_line, #line, #location, #match_locations?, #multiline_arg, #tags
Constructor Details
#initialize(cells, location) ⇒ Header
Returns a new instance of Header.
32 33 34 35 |
# File 'lib/cucumber/core/ast/examples_table.rb', line 32 def initialize(cells, location) @cells = cells @location = location end |
Instance Method Details
#build_row(row_cells, number, location) ⇒ Object
41 42 43 |
# File 'lib/cucumber/core/ast/examples_table.rb', line 41 def build_row(row_cells, number, location) Row.new(Hash[@cells.zip(row_cells)], number, location) end |
#values ⇒ Object
37 38 39 |
# File 'lib/cucumber/core/ast/examples_table.rb', line 37 def values @cells end |