Method: RODF::Table#initialize
- Defined in:
- lib/rodf/table.rb
#initialize(title = nil, opts = {}) ⇒ Table
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rodf/table.rb', line 3 def initialize(title = nil, opts ={}) @title = title @last_row = 0 @elem_attrs = {} @elem_attrs['table:style-name'] = opts[:style] unless opts[:style].nil? @elem_attrs['table:name'] = @title if opts[:attributes] @elem_attrs.merge!(opts[:attributes]) end super end |