Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Numeric
- Alph = ('A'..'Z').to_a
- def alph
- s, q = '', self
- until q.zero?
- q, r = (q - 1).divmod(26)
- s.prepend(Alph[r])
- end
- s
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement