Module: Utilities::Uuid
- Defined in:
- lib/utilities/uuid.rb
Overview
Methods for working with UUIDs. This library should be completely independent (i.e. ultimately gemifiable) from TaxonWorks.
Constant Summary collapse
- FORMAT =
/\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/i.freeze
Class Method Summary collapse
Class Method Details
.uuid?(string) ⇒ Boolean
9 10 11 |
# File 'lib/utilities/uuid.rb', line 9 def self.uuid?(string) FORMAT.match?(string.to_s) end |