class Defacer::Namer
Public Class Methods
name_var_at_index(index)
click to toggle source
TODO simplify, and speed up this code
# File lib/defacer/namer.rb, line 4 def self.name_var_at_index(index) v = '' loop do mod = index % 26 v = (mod + 97).chr + v index = (index / 26) - 1 break if index < 0 end v end