A library of utility services and concerns.
Matches defined message strategies by message scope.
.global() => Registry
Returns a singleton instance of the messages registry, instantiating the instance if needed.
#initialize => Registry
#get(scope) => SleepingKingStudios::Tools::Messages::Strategy, nil
Also known as:
[]
Returns the strategy matching the given scope or key.
The returned strategy will match the longest defined scope that matches the given key.
#register(scope:, strategy:, force: false) => self#register(scope:, hash:, force: false) => Object#register(scope:, file:, force: false) => ObjectAlso known as:
add
#register(scope:, strategy:, force: false) => self
Adds a strategy to the registry with the given scope.
#register(scope:, hash:, force: false) => Object
#register(scope:, file:, force: false) => Object
#strategies => Hash
Back to Documentation | Reference | SleepingKingStudios | SleepingKingStudios::Tools | SleepingKingStudios::Tools::Messages