Module: Lite::Uxid
- Defined in:
- lib/lite/uxid/base.rb,
lib/lite/uxid/version.rb,
lib/lite/uxid/record/ulid.rb,
lib/lite/uxid/record/uuid.rb,
lib/lite/uxid/configuration.rb,
lib/lite/uxid/record/hashid.rb,
lib/lite/uxid/record/nanoid.rb,
lib/lite/uxid/reversible/base.rb,
lib/lite/uxid/irreversible/base.rb,
lib/lite/uxid/irreversible/ulid.rb,
lib/lite/uxid/irreversible/uuid.rb,
lib/lite/uxid/reversible/hashid.rb,
lib/lite/uxid/record/obfuscateid.rb,
lib/lite/uxid/irreversible/nanoid.rb,
lib/lite/uxid/reversible/obfuscateid.rb,
lib/generators/lite/uxid/install_generator.rb
Defined Under Namespace
Modules: Base, Irreversible, Record, Reversible
Classes: Configuration, InstallGenerator
Constant Summary
collapse
- VERSION =
"2.0.2"
- ALPHANUMERIC =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
- COCKFORDS_32 =
"0123456789ABCDEFGHJKMNPQRSTVWXYZ"
- WEB_SAFE =
"#{ALPHANUMERIC}-_".freeze
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
35
36
37
|
# File 'lib/lite/uxid/configuration.rb', line 35
def configuration
@configuration ||= Configuration.new
end
|
Class Method Details
39
40
41
|
# File 'lib/lite/uxid/configuration.rb', line 39
def configure
yield(configuration)
end
|
.reset_configuration! ⇒ Object
43
44
45
|
# File 'lib/lite/uxid/configuration.rb', line 43
def reset_configuration!
@configuration = Configuration.new
end
|