module RuboCop::AST::MethodIdentifierPredicates

def predicate_method?

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