Class: Table
- Inherits:
-
Collection
- Object
- Item
- Collection
- Table
- Defined in:
- lib/cuker/models/models_ready.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#table_rows ⇒ Object
Returns the value of attribute table_rows.
-
#title_row ⇒ Object
Returns the value of attribute title_row.
Attributes inherited from Collection
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(content_str) ⇒ Table
constructor
A new instance of Table.
Methods inherited from Collection
Methods inherited from Item
Constructor Details
#initialize(content_str) ⇒ Table
Returns a new instance of Table.
54 55 56 57 58 59 |
# File 'lib/cuker/models/models_ready.rb', line 54 def initialize content_str super content_str @table_rows = [] @title_row = @items[0] @table_rows = @items[1..-1] end |
Instance Attribute Details
#table_rows ⇒ Object
Returns the value of attribute table_rows.
53 54 55 |
# File 'lib/cuker/models/models_ready.rb', line 53 def table_rows @table_rows end |
#title_row ⇒ Object
Returns the value of attribute title_row.
53 54 55 |
# File 'lib/cuker/models/models_ready.rb', line 53 def title_row @title_row end |