From: Florian Gross Date: 2007-01-08T10:14:45+09:00 Subject: Re: a most undangerous Hash#store! On 2007-01-08 02:00:10 +0100, dblack@wobblini.net said: > hsh[:key] = "value" unless hsh.has_key? :key > You can use merge and a one-key hash: > > hash.merge({ :key => "new value" }) Hm, not really: { :key => "old value" }.merge({ :key => "new value" }) # => {:key=>"new value"}