Class: Table

Inherits:
Collection show all
Defined in:
lib/cuker/models/models_ready.rb

Direct Known Subclasses

Examples

Instance Attribute Summary collapse

Attributes inherited from Collection

#items, #keyword

Attributes inherited from Item

#content

Instance Method Summary collapse

Methods inherited from Collection

#to_s

Methods inherited from Item

#to_s

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_rowsObject

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_rowObject

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