lib/rubocop/cop/lint/redundant_with_object.rb in rubocop-1.10.0 vs lib/rubocop/cop/lint/redundant_with_object.rb in rubocop-1.11.0
- old
+ new
@@ -32,9 +32,10 @@
MSG_EACH_WITH_OBJECT = 'Use `each` instead of `each_with_object`.'
MSG_WITH_OBJECT = 'Remove redundant `with_object`.'
+ # @!method redundant_with_object?(node)
def_node_matcher :redundant_with_object?, <<~PATTERN
(block
$(send _ {:each_with_object :with_object}
_)
(args