Class: RightSupport::Data::UUID::UUIDTools2
- Inherits:
-
Implementation
- Object
- Implementation
- RightSupport::Data::UUID::UUIDTools2
- Defined in:
- lib/right_support/data/uuid.rb
Overview
An implementation that uses UUIDTools v2.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize ⇒ UUIDTools2
constructor
A new instance of UUIDTools2.
Methods inherited from Implementation
Constructor Details
#initialize ⇒ UUIDTools2
Returns a new instance of UUIDTools2.
100 101 102 103 |
# File 'lib/right_support/data/uuid.rb', line 100 def initialize require 'uuidtools' generate end |
Instance Method Details
#generate ⇒ Object
105 106 107 |
# File 'lib/right_support/data/uuid.rb', line 105 def generate ::UUIDTools::UUID..to_s end |