From: John W Higgins Date: 2009-09-16T03:43:19+09:00 Subject: Re: Array of Hashes in an array of hashes - Complicated! --001636284e58aba37e0473a22758 Content-Type: text/plain; charset=ISO-8859-1 Matt, On Tue, Sep 15, 2009 at 11:15 AM, Matt Brooks wrote: > Hi John, > ... > while index < num_signals > sig_1 = Signal.new > .... > .... > end > I would create an array of the objects. It's not a matter of throwing away arrays or hashes but better organization of your data into objects rather then layers of data in hashes and array will just make things easier. For example sig_array = Array.new while index < num_signals sig = Signal.new sig.id = ... ... sig_array << sig end > Also, I would need a way to overwrite and kill all the objects every 10 > seconds or so, when all the signals update with different information. > Is that possible? > Just clear the array when you want to drop everything sig_array.clear John --001636284e58aba37e0473a22758--