Class: SpreadsheetML::Table

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ Table

Returns a new instance of Table.



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

def initialize(xml)
  @rows = xml.elements.collect("Row") { |row| Row.new(row) }
end

Instance Attribute Details

#rowsObject

Returns the value of attribute rows.



26
27
28
# File 'lib/spreadsheetml.rb', line 26

def rows
  @rows
end