"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".freeze
KEYS.length
8 9 10 11 12 13 14 15 16 17 18
# File 'lib/kiev/base52.rb', line 8 def self.encode(num) return KEYS[0] if num == 0 return nil if num < 0 str = "" while num > 0 str.prepend(KEYS[num % BASE]) num /= BASE end str end