module Prawn::Table::Interface
Public Instance Methods
make_table(data, options={}, &block)
click to toggle source
Set up, but do not draw, a table. Useful for creating subtables to be inserted into another Table
. Call draw
on the resulting Table
to ink it.
See the documentation on Prawn::Table
for details on the arguments.
# File lib/prawn/table.rb, line 121 def make_table(data, options={}, &block) Table.new(data, self, options, &block) end
table(data, options={}, &block)
click to toggle source
Set up and draw a table on this document. A block can be given, which will be run after cell setup but before layout and drawing.
See the documentation on Prawn::Table
for details on the arguments.
# File lib/prawn/table.rb, line 110 def table(data, options={}, &block) t = Table.new(data, self, options, &block) t.draw t end