CodeQL library for Ruby
codeql/ruby-all 3.0.1-dev (changelog, source)
Search

Module StringOps

Provides classes for reasoning about string-manipulating expressions.

Import path

import codeql.ruby.StringOps

Classes

EndsWith

An expression that is equivalent to A.end_with?(B) or !A.end_with?(B).

Includes

An expression that is equivalent to A.include?(B) or !A.include?(B). Note that this class is equivalent to InclusionTest, which also matches inclusion tests on array objects.

StartsWith

A expression that is equivalent to A.start_with?(B) or !A.start_with?(B).

Modules

EndsWith

Provides classes implementing suffix test expressions.

StartsWith

Provides classes implementing prefix test expressions.