Class: Cucumber::Ast::Table::Builder

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



39
40
41
# File 'lib/cucumber/ast/table.rb', line 39

def initialize
  @rows = []
end

Instance Attribute Details

#rowsObject (readonly)

Returns the value of attribute rows.



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

def rows
  @rows
end

Instance Method Details

#eofObject



47
48
# File 'lib/cucumber/ast/table.rb', line 47

def eof
end

#row(row, line_number) ⇒ Object



43
44
45
# File 'lib/cucumber/ast/table.rb', line 43

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