class RuboCop::Cop::Style::EachWithObject
def on_numblock(node)
def on_numblock(node) each_with_object_numblock_candidate?(node) do |method, body| _, method_name, method_arg = *method return if simple_method_arg?(method_arg) return unless return_value(body)&.source == '_1' message = format(MSG, method: method_name) add_offense(method.loc.selector, message: message) do |corrector| autocorrect_numblock(corrector, node) end end end