Class: Hanami::Provider::Source

Inherits:
Dry::System::Provider::Source
  • Object
show all
Defined in:
lib/hanami/provider/source.rb

Overview

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(slice:, **options, &block) ⇒ Source

Returns a new instance of Source.

Since:

  • 0.1.0



8
9
10
11
# File 'lib/hanami/provider/source.rb', line 8

def initialize(slice:, **options, &block)
  @slice = slice
  super(**options, &block)
end

Instance Attribute Details

#sliceObject (readonly)

Since:

  • 0.1.0



6
7
8
# File 'lib/hanami/provider/source.rb', line 6

def slice
  @slice
end

Instance Method Details

#target_containerObject

Since:

  • 0.1.0



13
# File 'lib/hanami/provider/source.rb', line 13

def target_container = slice