module RuboCop::AST::MethodIdentifierPredicates

def negation_method?

Returns:
  • (Boolean) - whether this method is a negation method
def negation_method?
  receiver && method_name == :!
end