Sha256: 43945983511474bbfeecb86009f178efa4d84e718b6faff903a1f56086a6fa3a

Contents?: true

Size: 417 Bytes

Versions: 3

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module Dry
  module AutoInject
    class Strategies
      extend Core::Container::Mixin

      # @api public
      def self.register_default(name, strategy)
        register name, strategy
        register :default, strategy
      end

      register :args, proc { Args }
      register :hash, proc { Strategies::Hash }
      register_default :kwargs, proc { Kwargs }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-auto_inject-1.0.1 lib/dry/auto_inject/strategies.rb
dry-auto_inject-1.0.0 lib/dry/auto_inject/strategies.rb
dry-auto_inject-1.0.0.rc1 lib/dry/auto_inject/strategies.rb