CodeQL library for Ruby
codeql/ruby-all 2.0.4-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()