Class: SpreadsheetML::Cell

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ Cell

ignoring style



45
46
47
48
# File 'lib/spreadsheetml.rb', line 45

def initialize(xml)
  @text = ''
  xml.each_element_with_text {|e| @text << e.text.strip }
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



42
43
44
# File 'lib/spreadsheetml.rb', line 42

def text
  @text
end

Instance Method Details

#to_sObject



50
51
52
# File 'lib/spreadsheetml.rb', line 50

def to_s
  @text
end