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

Member predicate InClause::hasIfCondition

Holds if the pattern guard in this case-in expression is an if condition. For example:

case foo
in [ x ] if x > 10 then ...
end
predicate hasIfCondition()