module NxtRegistry::Singleton

Public Class Methods

included(base) click to toggle source
# File lib/nxt_registry/singleton.rb, line 5
def self.included(base)
  base.extend(self)
end

Public Instance Methods

registry(type = Registry, **options, &config) click to toggle source
# File lib/nxt_registry/singleton.rb, line 9
def registry(type = Registry, **options, &config)
  @registry ||= build_registry(type, self.class.name, **options, &config)
end