Class: Html::Table
Instance Method Summary collapse
-
#initialize(rows = 0, cols = 0, **attrs) ⇒ Table
constructor
A new instance of Table.
- #write_header(head_rows) ⇒ Object
- #write_row(index, row) ⇒ Object
Methods inherited from Tag
Constructor Details
Instance Method Details
#write_header(head_rows) ⇒ Object
23 24 25 |
# File 'lib/html/table.rb', line 23 def write_header(head_rows) @head_rows = head_rows end |
#write_row(index, row) ⇒ Object
19 20 21 |
# File 'lib/html/table.rb', line 19 def write_row(index, row) @body_rows[index] = row end |