ruby is very flexible, because of the flexibility so that we sometimes puzzled why do it in the end, ruby assignment should be noted there are many places
1. Array element assignment, in fact, an array assignment of the [] is also a function, put it when the function can be treated, if there are two parameters, then the form of him is
arr [x] = y is equivalent to arr. [] (x, y), if the three parameters, then it is in the form arr [x, y] = z is equivalent to arr. [] (x, y, z) other analogy
2. Parallel assignment, if there are multiple values to a left-right values, then the right value as an array with the value assigned to the left
a = 1, 2, 3 is equivalent to a = [1, 2, 3], to prevent this can be done a, = 1, 2, 3, then a = 1 a
3. When there are multiple left-value, a right value, then the ruby on the attempt to put the right value of expanded value assigned to the left, when an array of values to a number of left-right values, then disassemble the array then assign







