lib/dry/effects/providers/implicit.rb in dry-effects-0.1.1 vs lib/dry/effects/providers/implicit.rb in dry-effects-0.1.2
- old
+ new
@@ -4,11 +4,11 @@
module Dry
module Effects
module Providers
class Implicit < Provider[:implicit]
- include Dry::Equalizer(:name, :static, :dictionary)
+ include ::Dry::Equalizer(:name, :static, :dictionary, inspect: false)
param :dependency
param :static, default: -> { EMPTY_HASH }
@@ -19,17 +19,17 @@
end
# Yield the block with the handler installed
#
# @api private
- def call(stack, dynamic = EMPTY_HASH)
+ def call(dynamic = EMPTY_HASH)
if dynamic.empty?
@dictionary = static
else
@dictionary = static.merge(dynamic)
end
- super(stack)
+ yield
end
# @param [Effect] effect
# @return [Boolean]
# @api public