lib/matchi/change.rb in matchi-3.3.1 vs lib/matchi/change.rb in matchi-3.3.2
- old
+ new
@@ -19,11 +19,11 @@
#
# @param object [#object_id] An object.
# @param method [Symbol] The name of a method.
# @param args [Array] A list of arguments.
# @param kwargs [Hash] A list of keyword arguments.
- def initialize(object, method, *args, **kwargs, &block)
- @state = -> { object.send(method, *args, **kwargs, &block) }
+ def initialize(object, method, ...)
+ @state = -> { object.send(method, ...) }
end
# Specifies a minimum delta of the expected change.
#
# @example