class RuboCop::Cop::InternalAffairs::MethodNameEndWith

Checks potentially usage of method identifier predicates defined in rubocop-ast instead of ‘method_name.end_with?`.

@example

# bad
node.method_name.to_s.end_with?('=')

# good
node.assignment_method?

# bad
node.method_name.to_s.end_with?('?')

# good
node.predicate_method?

# bad
node.method_name.to_s.end_with?('!')

# good
node.bang_method?