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

Member predicate UnlessExpr::getElse

Gets the ‘else’ branch of this unless expression. In the following example, the result is the StmtSequence containing bar.

unless a == b then
  foo
else
  bar
end
Stmt getElse()