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

Member predicate WhenClause::getPattern

Gets the nth pattern (or condition) in this case-when expression. In the following example, the 0th pattern is x, the 1st pattern is y, and the 2nd pattern is z.

case foo
when x, y, z
  puts 'x/y/z'
end
Expr getPattern(int n)