From: "Andrew S." Date: 2012-07-16T05:36:29+09:00 Subject: How to iterate over nested hashes? Hi, I have a data structure like this: {1=>{"foo"=>["bar", "baz"]}} ...and I can iterate over it with this: c.values.each do |foo| foo.values.each do |bar| bar.each do |baz| p baz end end end But why can't I do this? (fails): c.values.each.values.each.each do |foo| p foo end Any help much appreciated! -- Posted via http://www.ruby-forum.com/.