Class: Dry::Container::Config
- Inherits:
-
Object
- Object
- Dry::Container::Config
- Defined in:
- lib/dry/container/mixin.rb
Constant Summary collapse
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(namespace_separator: DEFAULT_NAMESPACE_SEPARATOR, resolver: DEFAULT_RESOLVER, registry: DEFAULT_REGISTRY) ⇒ Config
constructor
private
A new instance of Config.
Constructor Details
#initialize(namespace_separator: DEFAULT_NAMESPACE_SEPARATOR, resolver: DEFAULT_RESOLVER, registry: DEFAULT_REGISTRY) ⇒ Config
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Config.
23 24 25 26 27 28 29 30 31 |
# File 'lib/dry/container/mixin.rb', line 23 def initialize( namespace_separator: DEFAULT_NAMESPACE_SEPARATOR, resolver: DEFAULT_RESOLVER, registry: DEFAULT_REGISTRY ) @namespace_separator = namespace_separator @resolver = resolver @registry = registry end |
Instance Attribute Details
#namespace_separator ⇒ Object
14 15 16 |
# File 'lib/dry/container/mixin.rb', line 14 def namespace_separator @namespace_separator end |
#registry ⇒ Object
20 21 22 |
# File 'lib/dry/container/mixin.rb', line 20 def registry @registry end |
#resolver ⇒ Object
17 18 19 |
# File 'lib/dry/container/mixin.rb', line 17 def resolver @resolver end |