a guest Apr 19th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Numeric
  2.   Alph = ('A'..'Z').to_a
  3.   def alph
  4.     s, q = '', self
  5.     until
  6.       q, r = (q - 1).divmod(26)
  7.       s.prepend(Alph[r])
  8.     end
  9.     s
  10.   end
  11. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand