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

Member predicate Namespace::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()