module Xencoder

Constants

VERSION

Public Class Methods

decode(str) click to toggle source
# File lib/xencoder.rb, line 22
def decode(str)
  encoder.decode(str)
end
encode(num) click to toggle source
# File lib/xencoder.rb, line 18
def encode(num)
  encoder.encode(num)
end
encoder() click to toggle source
# File lib/xencoder.rb, line 11
def encoder
  @encoder ||= Encoder.new(
    '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
    length: 6
  )
end
new(*args) click to toggle source
# File lib/xencoder.rb, line 7
def new(*args)
  Encoder.new(*args)
end