Class: Librarian::Mock::Source::Mock::Registry
- Inherits:
-
Object
- Object
- Librarian::Mock::Source::Mock::Registry
- Defined in:
- lib/librarian/mock/source/mock/registry.rb
Defined Under Namespace
Modules: Dsl
Instance Method Summary collapse
- #[](name) ⇒ Object
- #clear! ⇒ Object
-
#initialize ⇒ Registry
constructor
A new instance of Registry.
- #merge!(options = nil, &block) ⇒ Object
Constructor Details
#initialize ⇒ Registry
Returns a new instance of Registry.
61 62 63 |
# File 'lib/librarian/mock/source/mock/registry.rb', line 61 def initialize clear! end |
Instance Method Details
#[](name) ⇒ Object
71 72 73 |
# File 'lib/librarian/mock/source/mock/registry.rb', line 71 def [](name) sources[name] ||= {} end |
#clear! ⇒ Object
64 65 66 |
# File 'lib/librarian/mock/source/mock/registry.rb', line 64 def clear! self.sources = { } end |