Class: OpenXML::SpreadsheetML::Cell
- Inherits:
-
Struct
- Object
- Struct
- OpenXML::SpreadsheetML::Cell
- Defined in:
- lib/xlsx/sheet_data.rb,
lib/xlsx/sheet_data.rb
Instance Attribute Summary collapse
-
#formula ⇒ Object
Returns the value of attribute formula.
-
#shared_strings_pointer ⇒ Object
Returns the value of attribute shared_strings_pointer.
-
#type ⇒ Object
Returns the value of attribute type.
-
#v ⇒ Object
Returns the value of attribute v.
Instance Method Summary collapse
Instance Attribute Details
#formula ⇒ Object
Returns the value of attribute formula
5 6 7 |
# File 'lib/xlsx/sheet_data.rb', line 5 def formula @formula end |
#shared_strings_pointer ⇒ Object
Returns the value of attribute shared_strings_pointer
5 6 7 |
# File 'lib/xlsx/sheet_data.rb', line 5 def shared_strings_pointer @shared_strings_pointer end |
#type ⇒ Object
Returns the value of attribute type
5 6 7 |
# File 'lib/xlsx/sheet_data.rb', line 5 def type @type end |
#v ⇒ Object
Returns the value of attribute v
5 6 7 |
# File 'lib/xlsx/sheet_data.rb', line 5 def v @v end |
Instance Method Details
#value ⇒ Object
8 9 10 11 |
# File 'lib/xlsx/sheet_data.rb', line 8 def value return shared_strings_pointer[self.v.to_i] if self.type == 's' self.v end |