Class: ODF::Row
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(number = 0) ⇒ Row
constructor
A new instance of Row.
- #xml ⇒ Object
Methods inherited from Container
Constructor Details
#initialize(number = 0) ⇒ Row
Returns a new instance of Row.
29 30 31 |
# File 'lib/odf/row.rb', line 29 def initialize(number=0) @number = number end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
27 28 29 |
# File 'lib/odf/row.rb', line 27 def number @number end |
Instance Method Details
#xml ⇒ Object
33 34 35 36 37 |
# File 'lib/odf/row.rb', line 33 def xml Builder::XmlMarkup.new.tag! 'table:table-row' do |xml| xml << cells_xml end end |