From: Caleb Tennis Date: 2005-11-23T07:54:11+09:00 Subject: Re: what is the ruby way to do this? Note that a "Ruby" hint would be to get rid of your "is_a?", preferring to use "respond_to?" instead. You could get fancier and just call "<<" on everything, catching exceptions and handling them for objects that don't implement that method. Caleb On Nov 22, 2005, at 5:42 PM, ako... wrote: > thank you. this assumes that the hash's default value is nil. but this > is a good enough assumption for my purposes. i was hoping to avoid > creating one-element arrays and still have the simplicity of a single > line solution but i guess this cant be done. thanks for your help. > > konstantin > >