Class: Restify::Registry
- Inherits:
-
Object
- Object
- Restify::Registry
- Extended by:
- Forwardable
- Defined in:
- lib/restify/registry.rb
Class Method Summary collapse
Instance Method Summary collapse
- #fetch(name) ⇒ Object
-
#initialize ⇒ Registry
constructor
A new instance of Registry.
- #store(name, uri, **opts) ⇒ Object
Constructor Details
#initialize ⇒ Registry
Returns a new instance of Registry.
5 6 7 |
# File 'lib/restify/registry.rb', line 5 def initialize @registry = {} end |
Class Method Details
.instance ⇒ Object
20 21 22 |
# File 'lib/restify/registry.rb', line 20 def instance @instance ||= new end |