Method: RODF::Row#initialize
- Defined in:
- lib/rodf/row.rb
#initialize(number = 0, opts = {}) ⇒ Row
Returns a new instance of Row.
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rodf/row.rb', line 6 def initialize(number=0, opts={}) @number = number @elem_attrs = {} @elem_attrs['table:style-name'] = opts[:style] unless opts[:style].nil? if opts[:attributes] @elem_attrs.merge!(opts[:attributes]) end super end |