Class: Lite::Uxid::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/lite/uxid/base.rb

Direct Known Subclasses

Hashid, Nanoid, Ulid

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.


7
8
9
# File 'lib/lite/uxid/base.rb', line 7

def initialize
  @config = Lite::Uxid.configuration
end

Instance Method Details

#encoding_baseObject


11
12
13
# File 'lib/lite/uxid/base.rb', line 11

def encoding_base
  encoding_chars.length
end