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

Member predicate StringConcatenation::getConcatenatedValueText

Gets the result of concatenating all the string literals, if and only if they do not contain any interpolations.

For the following example, the result is "foobar":

"foo" 'bar'

And for the following example, where one of the string literals includes an interpolation, there is no result:

"foo" "bar#{ n }"
string getConcatenatedValueText()