class Prawn::Table::Cell
def style(options={}, &block)
cell.border_width = 2
cell.padding = 0
is the same as:
cell.style(:padding => 0, :border_width => 2)
Supports setting multiple properties at once.
def style(options={}, &block) options.each do |k, v| send("#{k}=", v) if respond_to?("#{k}=") end # The block form supports running a single block for multiple cells, as # in Cells#style. block.call(self) if block end