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

Predicate isStandardNewCall

Holds if new is a call to new, targeting a class of type m (or a sub class, when exact = false), where there is no user-defined self.new on m.

Import path

import codeql.ruby.dataflow.internal.DataFlowDispatch
predicate isStandardNewCall(RelevantCall new, Module m, boolean exact)