Class: BetterUUID

Inherits:
Struct
  • Object
show all
Extended by:
ClassMethods
Includes:
InstanceMethods
Defined in:
lib/better-uuid/struct.rb,
lib/better-uuid/nil.rb,
lib/better-uuid/class.rb,
lib/better-uuid/version.rb,
lib/better-uuid/versions.rb,
lib/better-uuid/namespace.rb,
lib/better-uuid/state_file.rb,
lib/better-uuid/class_methods.rb,
lib/better-uuid/instance_methods.rb

Overview

Pure ruby UUID generator, which is compatible with RFC4122

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Namespace, StateFile

Constant Summary collapse

Nil =
parse '00000000-0000-0000-0000-000000000000'
VERSION =
'0.0.4'
VERSION1 =
:v1
VERSION3 =
:v3
VERSION4 =
:v4
VERSION5 =
:v5

Instance Attribute Summary collapse

Method Summary

Methods included from ClassMethods

create, create_md5, create_random, create_sha1, pack, parse

Methods included from InstanceMethods

#<=>, #==, #to_int, #to_s, #to_uri, #unpack, #version

Instance Attribute Details

#raw_bytesObject

Returns the value of attribute raw_bytes

Returns:

  • (Object)

    the current value of raw_bytes



2
3
4
# File 'lib/better-uuid/struct.rb', line 2

def raw_bytes
  @raw_bytes
end