Module: SimpleTable

Defined in:
lib/simple_table.rb,
lib/simple_table/row.rb,
lib/simple_table/tag.rb,
lib/simple_table/body.rb,
lib/simple_table/cell.rb,
lib/simple_table/foot.rb,
lib/simple_table/head.rb,
lib/simple_table/rows.rb,
lib/simple_table/table.rb,
lib/simple_table/column.rb,
lib/simple_table/version.rb

Defined Under Namespace

Classes: Body, Cell, Column, Foot, Head, Row, Rows, Table, Tag

Constant Summary collapse

VERSION =
'0.0.19'

Instance Method Summary collapse

Instance Method Details

#table_for(collection = [], options = {}, &block) ⇒ Object



22
23
24
# File 'lib/simple_table.rb', line 22

def table_for(collection = [], options = {}, &block)
  Table.new(self, collection, options, &block).render.html_safe
end