From: Jeff Wood Date: 2005-11-23T10:22:04+09:00 Subject: Re: what is the ruby way to do this? ------=_Part_890_1223728.1132708919305 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I would do a =3D Hash.new { || [] } def a.addValue( valueHash ) valueHash.each_pair { |key,value| self[ key ] <<=3D value } end a.addValue "blah" =3D> "a" a.addValue "blah" =3D> "b" a.addValue "blah" =3D> "c" I kinda like the look of the arrows ;) j. -- "Remember. Understand. Believe. Yield! -> http://ruby-lang.org" Jeff Wood ------=_Part_890_1223728.1132708919305--