class RuboCop::Cop::Style::InverseMethods

def possible_class_hierarchy_check?(lhs, rhs, method)

`Integer > Numeric`.
When comparing classes, `!(Integer < Numeric)` is not the same as
def possible_class_hierarchy_check?(lhs, rhs, method)
  CLASS_COMPARISON_METHODS.include?(method) &&
    (camel_case_constant?(lhs) || (rhs.size == 1 && camel_case_constant?(rhs.first)))
end