Class: Dry::AutoInject::Strategies

Inherits:
Object
  • Object
show all
Extended by:
Core::Container::Mixin
Defined in:
lib/dry/auto_inject/strategies.rb,
lib/dry/auto_inject/strategies/args.rb,
lib/dry/auto_inject/strategies/hash.rb,
lib/dry/auto_inject/strategies/kwargs.rb,
lib/dry/auto_inject/strategies/constructor.rb

Defined Under Namespace

Classes: Args, Constructor, Hash, Kwargs

Class Method Summary collapse

Class Method Details

.register_default(name, strategy) ⇒ Object



9
10
11
12
# File 'lib/dry/auto_inject/strategies.rb', line 9

def self.register_default(name, strategy)
  register name, strategy
  register :default, strategy
end