From: Rein Henrichs Date: 2010-06-06T04:20:06+09:00 Subject: Re: class variables and modules As a side note: On 2010-06-04 10:26:50 -0700, Ill Everbe said: > def update_history > @@history = @@history.push( @@incoming_state.flatten) > end Array#push modifies the receiver, so you can simply say: def update_history @@history.push(@@incoming_state.flatten) end or even: @@history << @@incoming_state.flatten -- Rein Henrichs http://puppetlabs.com http://reinh.com