From: Xavier Noria Date: 2007-12-07T09:00:12+09:00 Subject: Re: array iterator that have more arrays that also need iter On Dec 7, 2007, at 12:13 AM, Raimon Fs wrote: > values = @arr[0].map do |ic| > ic.attributes > end.map do |a| > # a.values > debug(a) > > end.flatten > > 1600_base: "82567.3600000001" > 1600_value: "95778.21" > 1600_tax: "13210.85" > > > I'm still getting attributes and values, not a simple array ... But why do you put a trace at that point? Of course a is a hash there, but you are not aggregating the hash, you're collecting the *collection of values of those hashes* via a.values. You need to work with tha variable "values" which is assigned the result of the map.chain. Please inspect the array stored in the variable "values" after that block of code has run. -- fxn