Module: Torid
- Defined in:
- lib/torid.rb,
lib/torid/uuid.rb,
lib/torid/clock.rb,
lib/torid/generator.rb
Overview
Torid - Temporally Ordered IDs. Generate universally unique identifiers (UUID) that sort lexically in time order.
Defined Under Namespace
Classes: Clock, Generator, UUID
Constant Summary collapse
- VERSION =
Public: The Version of the Torid library as a String
"1.2.3"
Class Method Summary collapse
-
.uuid ⇒ Object
Public: return the next Torid::UUID from the default Generator.
Class Method Details
.uuid ⇒ Object
Public: return the next Torid::UUID from the default Generator
This is just a shortcut to Torid::Generator.next
Example:
Torid.uuid # => Torid::UUID
Returns a Torid::UUID
16 17 18 |
# File 'lib/torid.rb', line 16 def self.uuid Torid::Generator.next end |