nested array iteration ruby code example Example: how to remove nested array brackets ruby my_array.flatten