So I have a for loop thats creating a hash or array depending on whats being passed in.
I need to create these arrays and Hashes with names based on whats being passed in.
Its much the same as
window['MyNewArray-' + i] = [];
In javascript. Is there any equivalent for Ruby?
You could do something like: