Method: RODF::Table#row

Defined in:
lib/rodf/table.rb

#row(options = {}, &contents) ⇒ Object



41
42
43
44
45
46
47
48
49
50
51
# File 'lib/rodf/table.rb', line 41

def row(options = {}, &contents)
  create_row(next_row, options) do |row|
    if contents
      if contents.arity.zero?
        row.instance_exec(row, &contents)
      else
        yield(row)
      end
    end
  end
end