merging arrays of hashes
- by Ben
I have two arrays of hashes.
Array1 => [{attribute_1 = A, attribute_2 = B}, {attribute_1 = A, attribute_2 = B}]
Array2 => [{attribute_3 = C, attribute_2 = D}, {attribute_3 = C, attribute_4 = D}]
Each hash in the array is holding attributes for an object. In the above example, there are two objects that I'm working with. There are two…