Module: CMDx::Identifier
Overview
Generates unique identifiers for tasks, workflows, and other CMDx components.
The Identifier module provides a consistent way to generate unique identifiers across the CMDx system, with fallback support for different Ruby versions.
Instance Method Summary collapse
-
#generate ⇒ String
Generates a unique identifier string.
Instance Method Details
#generate ⇒ String
Generates a unique identifier string.
23 24 25 26 27 28 29 |
# File 'lib/cmdx/identifier.rb', line 23 def generate if SecureRandom.respond_to?(:uuid_v7) SecureRandom.uuid_v7 else SecureRandom.uuid end end |