class RuboCop::AST::IfNode
def branches
-
(Array
- an array of branch nodes)
def branches if ternary? [if_branch, else_branch] elsif !else? [if_branch] else branches = [if_branch] other_branches = if elsif_conditional? else_branch.branches else [else_branch] end branches.concat(other_branches) end end