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

Member predicate DataFlow::ModuleNode::getNestedModule

Gets a module named name declared inside this one (not aliased), provided that such a module is defined or reopened in the current codebase.

For example, for A::B the nested module named C would be A::B::C.

Note that this is not the same as constant lookup. If A::B::C would resolve to a module whose qualified name is not A::B::C, then it will not be found by this predicate.

ModuleNode getNestedModule(string name)