Class: Tableasy::Table
- Inherits:
-
Object
- Object
- Tableasy::Table
- Defined in:
- lib/tableasy/table.rb,
lib/tableasy/table/row.rb,
lib/tableasy/table/cell.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Instance Method Summary collapse
- #add_row(cells, html = {}) ⇒ Object
-
#initialize ⇒ Table
constructor
A new instance of Table.
Constructor Details
#initialize ⇒ Table
Returns a new instance of Table.
5 6 7 |
# File 'lib/tableasy/table.rb', line 5 def initialize @rows = [] end |
Instance Attribute Details
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
3 4 5 |
# File 'lib/tableasy/table.rb', line 3 def rows @rows end |