Class: SimpleTable::Body
Instance Attribute Summary
Attributes inherited from Rows
Attributes inherited from Tag
Instance Method Summary collapse
Methods inherited from Rows
Methods inherited from Tag
#add_class, #collection_class, #collection_name, #head?, #initialize, #render, #table
Constructor Details
This class inherits a constructor from SimpleTable::Rows
Instance Method Details
#row(options = {}, &block) ⇒ Object
5 6 7 8 9 |
# File 'lib/simple_table/body.rb', line 5 def row( = {}, &block) table.collection.each_with_index do |record, ix| super(record, (record, ix, )) end end |