From: Glenn Ritz Date: 2010-03-09T21:31:54+09:00 Subject: Flatten out Hash Hi, I would like to take a nested hash that looks like this: {"a"=>{"b"=>{"c"=>1}, "b2"=>{"c2"=>2}}} and turn it into an array of 2 element arrays like this: [["a: b2: c2: ", 2], ["a: b: c: ", 1]] Is there a simple way to do this? I wrote a method that iterates through the nested hashes recursively, but it's a bit cumbersome. -- Posted via http://www.ruby-forum.com/.