lib/dry/effects/all.rb in dry-effects-0.1.1 vs lib/dry/effects/all.rb in dry-effects-0.1.2
- old
+ new
@@ -28,20 +28,21 @@
define_method(class_name) do |*args|
effect_modules.fetch_or_store([key, args]) do
::Dry::Effects.effects[key].new(*args).freeze
end
end
+ ruby2_keywords(class_name) if respond_to?(:ruby2_keywords, true)
end
end
if ::File.exists?("#{__dir__}/providers/#{key}.rb")
providers.register(key, memoize: true) do
require "dry/effects/providers/#{key}"
Providers.const_get(Inflector.camelize(key))
end
- Handler.singleton_class.send(:define_method, class_name) do |*args|
- ::Dry::Effects.providers[key].mixin(*args)
+ Handler.singleton_class.send(:define_method, class_name) do |*args, **kwargs|
+ ::Dry::Effects.providers[key].mixin(*args, **kwargs)
end
end
end
end
end