From: Douglas Seifert Date: 2009-02-16T06:19:02+09:00 Subject: Re: Multidimensional hash - get all not blank keys --000e0cd14606c820320462fba445 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I agree with david. If you have nothing positive to say, remain silent. On Feb 15, 2009 12:50 PM, "William James" wrote: Michael .. wrote: > Hello. > > I have this Hash. > > result={"1"=>{"6"=>"", > "7"=>"", > ... result.delete_if{|k,v| {} == v.delete_if{|a,b| b==""}} p result {"1"=>{"1"=>"Value1", "3"=>"Value2"}, "2"=>{"8"=>"Value3"}, "4"=>{"8"=>"Value4", "2"=>"Value5"}} --000e0cd14606c820320462fba445--