Thanks to visit codestin.com
Credit goes to codeql.github.com

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

Primitive predicate string::indexOf

Returns all the offsets (starting at 0) at which the given string occurs in the receiver. Has no result if the string does not occur in the receiver.

int indexOf(string substringToFind)