Class: Cucumber::Core::Ast::DataTable::Builder
- Inherits:
-
Object
- Object
- Cucumber::Core::Ast::DataTable::Builder
- Defined in:
- lib/cucumber/core/ast/data_table.rb
Instance Attribute Summary collapse
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Instance Method Summary collapse
- #eof ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
- #row(row, line_number) ⇒ Object
Constructor Details
#initialize ⇒ Builder
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
#rows ⇒ Object (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
#eof ⇒ Object
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 |