Sha256: d85f448e13fc8dc2fdefa7ceb972367e849fe161679b12d584b08e89c29f7607
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
# frozen_string_literal: true # @api private # @since 2.2.0 module Hanami class ProviderRegistrar < Dry::System::ProviderRegistrar def self.for_slice(slice) Class.new(self) do define_singleton_method(:new) do |container| super(container, slice) end end end attr_reader :slice def initialize(container, slice) super(container) @slice = slice end def provider_source_class = Hanami::Provider::Source def provider_source_options {slice: slice} end end end
Version data entries
4 entries across 4 versions & 1 rubygems