lib/dry/auto_inject/strategies/kwargs.rb in dry-auto_inject-0.9.0 vs lib/dry/auto_inject/strategies/kwargs.rb in dry-auto_inject-1.0.0.rc1
- old
+ new
@@ -1,10 +1,7 @@
# frozen_string_literal: true
-require "dry/auto_inject/strategies/constructor"
-require "dry/auto_inject/method_parameters"
-
module Dry
module AutoInject
class Strategies
# @api private
class Kwargs < Constructor
@@ -97,10 +94,8 @@
kwargs.select do |key|
!dependency_map.names.include?(key) || super_parameters.keyword?(key)
end
end
end
-
- register_default :kwargs, Kwargs
end
end
end