[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Iterating over a hash of hash of hashes

Steven Hirsch

8/19/2008 12:34:00 AM

Is there a more "rubyesque" idiom for iterating of a multi-dimensional
hash other than the following:

workq_dev.get_all_zapps.each do |k,v|
print "#{k} ==> "
v.each do |k,v|
puts "#{k} ==> "
puts v.class
v.each { |k,v| puts "#{k} ==> #{v}" }
end
end

thanks in advance!
--
Posted via http://www.ruby-....