Method: Integer#to_b62

Defined in:
lib/b62.rb

#to_b62Object

Raises:



4
5
6
7
8
# File 'lib/b62.rb', line 4

def to_b62
  raise RangeError, "#{self.class} must be positive to be encoded" if self < 0
  
  B62.to_b62(self)
end