Push hash in array ends loop automatically

Dear ruby-programmers,

there is a problem when I try to push a hash into an array while being in a loop.
Without that one codeline the loop functions as expected. With that codeline the loop stops after doing it once. I have tried for a while now to solve that problem but cannot see what is wrong, since the push doesn’t really have anything to do with the loop information. It is just used to bring the information out of the loop before it gets rewritten.
Is there a general thing about pushing a hash in a loop that ends a loop automatically I didn’t know of?

Thanx in advance.
513cat

Please provide a screenshot or code text so we can understand the situation and help you.