From: Jeff Moore Date: 2010-07-16T23:23:19+09:00 Subject: Re: Recurse through array of arrays Jeff Moore wrote: > Iain Barnett wrote: >> On 16 Jul 2010, at 13:07, Iain Barnett wrote: >>> >>> >>> Each object 't' ... >> >> Pardon me, 't' is the instance of the object here, if that wasn't clear. >> >> >> Iain > > result = t.flatten.select { |e| e.whatever_attr == "anything" } oh yes.. should specify some max_depth for flatten max_depth = 99 result = t.flatten(max_depth).select { |e| e.whatever_attr == "anything" } -- Posted via http://www.ruby-forum.com/.