Method: Tableasy::Table::Row#initialize
- Defined in:
- lib/tableasy/table/row.rb
#initialize(cells, html = {}) ⇒ Row
Returns a new instance of Row.
7 8 9 10 11 |
# File 'lib/tableasy/table/row.rb', line 7 def initialize(cells, html = {}) @cells = cells.select {|cell| cell.value } @total, @header = html.delete(:total), html.delete(:header) @html = html end |