class RuboCop::AST::CaseNode

def when_branches

Returns:
  • (Array) - an array of `when` nodes
def when_branches
  node_parts[1...-1]
end