Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. class Numeric
  2. Alph = ('A'..'Z').to_a
  3. def alph
  4. s, q = '', self
  5. until q.zero?
  6. q, r = (q - 1).divmod(26)
  7. s.prepend(Alph[r])
  8. end
  9. s
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement