Module: NxtRegistry::Singleton
- Includes:
- NxtRegistry
- Defined in:
- lib/nxt_registry/singleton.rb
Constant Summary
Constants included from NxtRegistry
Class Method Summary collapse
Instance Method Summary collapse
Methods included from NxtRegistry
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/nxt_registry/singleton.rb', line 5 def self.included(base) base.extend(self) end |
Instance Method Details
#registry(type = Registry, **options, &config) ⇒ Object
9 10 11 |
# File 'lib/nxt_registry/singleton.rb', line 9 def registry(type = Registry, **, &config) @registry ||= build_registry(type, self.class.name, **, &config) end |