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

Member predicate MethodCall::getMethodName

Gets the name of the method being called. For example, in:

foo.bar x, y

the result is "bar".

Super calls call a method with the same name as the current method, so the result for a super call is the name of the current method. E.g:

def foo
 super # the result for this super call is "foo"
end
string getMethodName()