Class: Cucumber::Core::Ast::DataTable::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/ast/data_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



36
37
38
# File 'lib/cucumber/core/ast/data_table.rb', line 36

def initialize
  @rows = []
end

Instance Attribute Details

#rowsObject (readonly)

Returns the value of attribute rows.



34
35
36
# File 'lib/cucumber/core/ast/data_table.rb', line 34

def rows
  @rows
end

Instance Method Details

#eofObject



44
45
# File 'lib/cucumber/core/ast/data_table.rb', line 44

def eof
end

#row(row, line_number) ⇒ Object



40
41
42
# File 'lib/cucumber/core/ast/data_table.rb', line 40

def row(row, line_number)
  @rows << row
end