module RuboCop::AST::MethodIdentifierPredicates

def nonmutating_string_method?

Returns:
  • (Boolean) - whether the method is a nonmutating String method
def nonmutating_string_method?
  NONMUTATING_STRING_METHODS.include?(method_name)
end