Class: Quebert::Support::Registry
- Inherits:
-
Hash
- Object
- Hash
- Quebert::Support::Registry
- Defined in:
- lib/quebert/support/registry.rb
Direct Known Subclasses
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 |