Method: Cql::Uuid#initialize
- Defined in:
- lib/cql/uuid.rb
#initialize(n) ⇒ Uuid
Creates a new UUID either from a string (expected to be on the standard 8-4-4-4-12 form, or just 32 characters without hyphens), or from a 128 bit number.
18 19 20 21 22 23 24 25 |
# File 'lib/cql/uuid.rb', line 18 def initialize(n) case n when String @n = from_s(n) else @n = n end end |