Module: PoliPage::Internal::UUID Private
- Defined in:
- lib/poli_page/internal/uuid.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Thin wrapper over ‘SecureRandom.uuid`. Indirection exists so a future swap (e.g. UUIDv7 once the stdlib lands `SecureRandom.uuid_v7`) is a one-file change (sdk-ruby-plan.md §13 Phase 1).
Class Method Summary collapse
- .generate ⇒ Object private
Class Method Details
.generate ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/poli_page/internal/uuid.rb', line 15 def generate SecureRandom.uuid end |