Class: SpreadsheetML::Row

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ Row

Returns a new instance of Row.



36
37
38
# File 'lib/spreadsheetml.rb', line 36

def initialize(xml)
  @cells = xml.elements.collect("Cell") { |cell| Cell.new(cell) }
end

Instance Attribute Details

#cellsObject

Returns the value of attribute cells.



34
35
36
# File 'lib/spreadsheetml.rb', line 34

def cells
  @cells
end