Class: Hanami::Provider::Source
- Inherits:
-
Dry::System::Provider::Source
- Object
- Dry::System::Provider::Source
- Hanami::Provider::Source
- Defined in:
- lib/hanami/provider/source.rb
Overview
Direct Known Subclasses
Hanami::Providers::Assets, Hanami::Providers::DB, Hanami::Providers::DBLogging, Hanami::Providers::Inflector, Hanami::Providers::Logger, Hanami::Providers::Rack, Hanami::Providers::Relations, Hanami::Providers::Routes
Instance Attribute Summary collapse
- #slice ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(slice:, **options, &block) ⇒ Source
constructor
A new instance of Source.
- #target_container ⇒ Object
Constructor Details
#initialize(slice:, **options, &block) ⇒ Source
Returns a new instance of Source.
8 9 10 11 |
# File 'lib/hanami/provider/source.rb', line 8 def initialize(slice:, **, &block) @slice = slice super(**, &block) end |
Instance Attribute Details
#slice ⇒ Object (readonly)
6 7 8 |
# File 'lib/hanami/provider/source.rb', line 6 def slice @slice end |
Instance Method Details
#target_container ⇒ Object
13 |
# File 'lib/hanami/provider/source.rb', line 13 def target_container = slice |