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

Member predicate InClause::getCondition

Gets the pattern guard condition in this case-in expression. In the following example, there are two pattern guard conditions x > 10 and x < 0.

case foo
in [ x ] if x > 10 then ...
in [ x ] unless x < 0 then ...
end
Expr getCondition()