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/.