class RuboCop::Cop::Style::EachWithObject

def on_block(node)

def on_block(node)
  method, args, body = *node
  return unless reduce_method?(method)
  _, method_name, method_arg = *method
  return if simple_method_arg?(method_arg)
  return_value = return_value(body)
  return unless return_value
  return unless first_argument_returned?(args, return_value)
  return if accumulator_param_assigned_to?(body, args)
  add_offense(method, :selector, format(MSG, method_name))
end