Sha256: 875cda52e40d6bf6bc522b366c595b6f4670430f8f849772210cf195c76c9c9c

Contents?: true

Size: 406 Bytes

Versions: 7

Compression:

Stored size: 406 Bytes

Contents

require 'dry-container'

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

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

require 'dry/auto_inject/strategies/args'
require 'dry/auto_inject/strategies/hash'
require 'dry/auto_inject/strategies/kwargs'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dry-auto_inject-0.4.5 lib/dry/auto_inject/strategies.rb
dry-auto_inject-0.4.4 lib/dry/auto_inject/strategies.rb
dry-auto_inject-0.4.3 lib/dry/auto_inject/strategies.rb
dry-auto_inject-0.4.2 lib/dry/auto_inject/strategies.rb
dry-auto_inject-0.4.1 lib/dry/auto_inject/strategies.rb
dry-auto_inject-0.4.0 lib/dry/auto_inject/strategies.rb
dry-auto_inject-0.3.0 lib/dry/auto_inject/strategies.rb