Module: Lite::Uxid

Defined in:
lib/lite/uxid/base.rb,
lib/lite/uxid/ulid.rb,
lib/lite/uxid/hashid.rb,
lib/lite/uxid/nanoid.rb,
lib/lite/uxid/version.rb,
lib/lite/uxid/record/ulid.rb,
lib/lite/uxid/configuration.rb,
lib/lite/uxid/record/hashid.rb,
lib/lite/uxid/record/nanoid.rb,
lib/generators/lite/uxid/install_generator.rb

Defined Under Namespace

Modules: Record Classes: Base, Configuration, Hashid, InstallGenerator, Nanoid, Ulid

Constant Summary collapse

VERSION =
'1.0.8'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject


22
23
24
# File 'lib/lite/uxid/configuration.rb', line 22

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:


26
27
28
# File 'lib/lite/uxid/configuration.rb', line 26

def configure
  yield(configuration)
end

.reset_configuration!Object


30
31
32
# File 'lib/lite/uxid/configuration.rb', line 30

def reset_configuration!
  @configuration = Configuration.new
end