class RuboCop::AST::CaseMatchNode

def else_branch

Returns:
  • (nil) - if the case statement does not have an else branch.
  • (Node) - the else branch node of the `case` statement
def else_branch
  node_parts[-1]
end