Class: ExcelXml::Field
- Inherits:
-
String
- Object
- String
- ExcelXml::Field
- Defined in:
- lib/excelxml/worksheet.rb
Instance Method Summary collapse
Instance Method Details
#content? ⇒ Boolean
96 97 98 |
# File 'lib/excelxml/worksheet.rb', line 96 def content? return !self.empty? end |
#fixnum? ⇒ Boolean
91 92 93 94 95 |
# File 'lib/excelxml/worksheet.rb', line 91 def fixnum? return Integer(self) rescue return false end |
#string? ⇒ Boolean
99 100 101 |
# File 'lib/excelxml/worksheet.rb', line 99 def string? return (self.content? and !self.fixnum?) end |
#to_nil ⇒ Object
102 103 104 |
# File 'lib/excelxml/worksheet.rb', line 102 def to_nil self.empty? ? nil : self end |