Class: Hanami::ProviderRegistrar Private
- Inherits:
-
Dry::System::ProviderRegistrar
- Object
- Dry::System::ProviderRegistrar
- Hanami::ProviderRegistrar
- Defined in:
- lib/hanami/provider_registrar.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #slice ⇒ Object readonly private
Class Method Summary collapse
- .for_slice(slice) ⇒ Object private
Instance Method Summary collapse
-
#initialize(container, slice) ⇒ ProviderRegistrar
constructor
private
A new instance of ProviderRegistrar.
- #provider_source_class ⇒ Object private
- #provider_source_options ⇒ Object private
Constructor Details
#initialize(container, slice) ⇒ ProviderRegistrar
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 ProviderRegistrar.
17 18 19 20 |
# File 'lib/hanami/provider_registrar.rb', line 17 def initialize(container, slice) super(container) @slice = slice end |
Instance Attribute Details
#slice ⇒ Object (readonly)
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.
15 16 17 |
# File 'lib/hanami/provider_registrar.rb', line 15 def slice @slice end |
Class Method Details
.for_slice(slice) ⇒ Object
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.
7 8 9 10 11 12 13 |
# File 'lib/hanami/provider_registrar.rb', line 7 def self.for_slice(slice) Class.new(self) do define_singleton_method(:new) do |container| super(container, slice) end end end |
Instance Method Details
#provider_source_class ⇒ Object
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.
22 |
# File 'lib/hanami/provider_registrar.rb', line 22 def provider_source_class = Hanami::Provider::Source |
#provider_source_options ⇒ Object
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.
24 25 26 |
# File 'lib/hanami/provider_registrar.rb', line 24 def {slice: slice} end |