class RuboCop::AST::IfNode

def else_branch

Returns:
  • (nil) - when there is no else branch
  • (Node) - the falsey branch node of the `if` node

Other tags:
    Note: - This is normalized for `unless` nodes.
def else_branch
  node_parts[2]
end