Class: Cucumber::Core::Ast::ExamplesTable::Header

Inherits:
Object
  • Object
show all
Includes:
HasLocation
Defined in:
lib/cucumber/core/ast/examples_table.rb

Instance Method Summary collapse

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

#valuesObject



37
38
39
# File 'lib/cucumber/core/ast/examples_table.rb', line 37

def values
  @cells
end