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

Member predicate CaseExpr::getValue

Gets the expression being compared, if any. For example, foo in the following example.

case foo
when 0
  puts 'zero'
when 1
  puts 'one'
end

There is no result for the following example:

case
when a then 0
when b then 1
else        2
end
Expr getValue()