Class: SpreadsheetML::Cell
- Inherits:
-
Object
- Object
- SpreadsheetML::Cell
- Defined in:
- lib/spreadsheetml.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(xml) ⇒ Cell
constructor
ignoring style.
- #to_s ⇒ Object
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
#text ⇒ Object
Returns the value of attribute text.
42 43 44 |
# File 'lib/spreadsheetml.rb', line 42 def text @text end |
Instance Method Details
#to_s ⇒ Object
50 51 52 |
# File 'lib/spreadsheetml.rb', line 50 def to_s @text end |