On Tue, Apr 22, 2003 at 12:54:49AM +0900, Andi Scharfstein wrote: > > Have you tried: > > foo.size # number of subarrays > > foo[0].size # number of elements in this subarray > > Whoa! Thanks, that did it... I don't know how I could've overlooked > that. Guess it shows that I'm still new to Ruby :) No problem! If you can afford it, a paper copy of the Pickaxe book is IMO well worth buying, simply because you can thumb through to the class reference section and in a couple of pages you have a neat summary of all the instance methods of Array (or whatever class you're interested in) I still find it useful - there are occasions when I *know* there's a method in Hash which does exactly what I want, but I can't remember what it is :-) Regards, Brian.