Class: ODF::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/odf/column.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Column

Returns a new instance of Column.



23
24
25
26
# File 'lib/odf/column.rb', line 23

def initialize(opts={})
  @elem_attrs = {}
  @elem_attrs['table:style-name'] = opts[:style] unless opts[:style].nil?
end

Instance Method Details

#xmlObject



28
29
30
# File 'lib/odf/column.rb', line 28

def xml
  Builder::XmlMarkup.new.tag! 'table:table-column', @elem_attrs
end