Class: ODF::Row

Inherits:
Container show all
Defined in:
lib/odf/row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Container

contains, create

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

#numberObject (readonly)

Returns the value of attribute number.



27
28
29
# File 'lib/odf/row.rb', line 27

def number
  @number
end

Instance Method Details

#xmlObject



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