Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ext/string.rb
Instance Method Summary collapse
Instance Method Details
#to_xls_col ⇒ Object
2 3 4 5 6 |
# File 'lib/ext/string.rb', line 2 def to_xls_col return -1 if self.length > 1 self.upcase[0].ord - 'A'.ord end |