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

Member predicate ClassDeclaration::getName

Gets the name of the module/class. In the following example, the result is "Foo".

class Foo
end

N.B. in the following example, where the module/class name uses the scope resolution operator, the result is the name being resolved, i.e. "Bar". Use getScopeExpr to get the Foo for Foo.

module Foo::Bar
end
string getName()