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

Member predicate DataFlow::ModuleNode::getAnAncestorExpr

Gets the expression node denoting the super class or an included or prepended module.

For example, C is an ancestor expression of M in each of the following examples:

class M < C
end

module M
  include C
  prepend C
end
ExprNode getAnAncestorExpr()