class RuboCop::Cop::Performance::CompareWithBlock

def slow_compare?(method, args_a, args_b)

def slow_compare?(method, args_a, args_b)
  return false unless args_a == args_b
  if method == :[]
    return false unless args_a.size == 1
    key = args_a.first
    return false unless %i[sym str int].include?(key.type)
  else
    return false unless args_a.empty?
  end
  true
end