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

Member predicate Call::getArgument

Gets the nth argument of this method call. In the following example, the result for n=0 is the IntegerLiteral 0, while for n=1 the result is a Pair (whose getKey returns the SymbolLiteral for bar, and getValue returns the IntegerLiteral 1). Keyword arguments like this can be accessed more naturally using the getKeywordArgument(string keyword) predicate.

foo(0, bar: 1)
yield 0, bar: 1
Expr getArgument(int n)