Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/iugusdk/uuid_operators_extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_uuid ⇒ Object
2 3 4 5 |
# File 'lib/iugusdk/uuid_operators_extensions.rb', line 2 def to_uuid return UUIDTools::UUID.parse_raw self if self.size == 16 UUIDTools::UUID.parse_hexdigest( self.gsub("-","").upcase ) end |