From: Hal Fulton Date: 2004-05-21T07:25:37+09:00 Subject: Re: Overriding "", [], and {} Robert Klemme wrote: > "why the lucky stiff" schrieb im > Newsbeitrag news:40AD161F.6070107@whytheluckystiff.net... >> >> o = YAML::Omap['c', 'coats', 'g', 'goats'] >> => [["c", "coats"], ["g", "goats"]] >> >> o.class >> => YAML::Omap >> >>_why > > > or how about > > oh = OrderedHash.new.update( { > "foo" => "bar", > "bar2 => "foo", > } ) But then the order in the "ordered hash" is not necessarily the same as that specified in the single hash passed in as a parameter. Hal