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

Member predicate InClause::hasUnlessCondition

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

case foo
in [ x ] unless x < 10 then ...
end
predicate hasUnlessCondition()