class Fixnum
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/core_ext/ext.rb, line 22 def col_name val = self/26 (val > 0 ? (val - 1).col_name : "") + (self % 26 + 65).chr end