From: Jason Lillywhite Date: 2008-11-05T15:53:51+09:00 Subject: replace values in hash how would I iterate over a hash, such as x = { 'a' => "hi", 'b' => nil, 'c' => "do"} and replace nil values with 'foo' then return the hash again? -- Posted via http://www.ruby-forum.com/.