class Integer
Public Instance Methods
col_name()
click to toggle source
Returns the column name corresponding to the given number. e.g: 1.col_name => 'B' @return [String]
# File lib/oxcelix.rb, line 39 def col_name val=self/26 (val > 0 ? (val - 1).col_name : "") + (self % 26 + 65).chr end