Class: ODF::Column
- Inherits:
-
Object
- Object
- ODF::Column
- Defined in:
- lib/odf/column.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Column
constructor
A new instance of Column.
- #xml ⇒ Object
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
#xml ⇒ Object
28 29 30 |
# File 'lib/odf/column.rb', line 28 def xml Builder::XmlMarkup.new.tag! 'table:table-column', @elem_attrs end |