class RuboCop::AST::SendNode

def predicate_method?

Returns:
  • (Boolean) - whether the invoked method is a predicate method
def predicate_method?
  method_name.to_s.end_with?('?')
end