module Smartdict::Core::IsManager::ClassMethods
Public Instance Methods
all()
click to toggle source
# File lib/smartdict/core/is_manager.rb, line 17 def all @entities end
find(name)
click to toggle source
# File lib/smartdict/core/is_manager.rb, line 13 def find(name) @entities[name.to_s] end
register(name, klass)
click to toggle source
# File lib/smartdict/core/is_manager.rb, line 8 def register(name, klass) raise Smartdict::Error.new("`#{name}` is already registered") if find(name) @entities[name.to_s] = klass end