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

Member predicate IfModifierExpr::getBody

Gets the statement that is conditionally evaluated. In the following example, the result is the Expr for foo.

foo if bar
Stmt getBody()