Parallel Assignment in Ruby

Tutorial Difficulty Level    

A parallel assignment sets several variables at once. All right sides are computed before any variable is assigned, so all right side values are computed with the old variable values. This is very convenient for swapping two values without using a temporary.

When the right side is an array, the members of the array are broken out and assigned to individual variables.