From: Lyndon Samson Date: 2005-11-23T07:31:13+09:00 Subject: Re: what is the ruby way to do this? ------=_Part_17944_26013144.1132698665165 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline and this monstrosity, which isn't in the spirit of ruby... :-) def add3(key, val) $hash[key] =3D ( $hash[key] =3D=3D nil ) ? val.to_a : $hash[key] << val end ------=_Part_17944_26013144.1132698665165--