Class: Quebert::Support::Registry

Inherits:
Hash
  • Object
show all
Defined in:
lib/quebert/support/registry.rb

Direct Known Subclasses

ClassRegistry

Instance Method Summary collapse

Instance Method Details

#register(key, val) ⇒ Object



4
5
6
# File 'lib/quebert/support/registry.rb', line 4

def register(key, val)
  self[key.to_sym] = val
end

#unregister(key) ⇒ Object



8
9
10
# File 'lib/quebert/support/registry.rb', line 8

def unregister(key)
  self.delete(key.to_sym)
end