Mark Slagell <ms / iastate.edu> writes: > Lovely stuff! Thanks. The block_given? line gives me a "stack > level too deep" error (wassat mean?) but the rest fits the bill > nicely. Oops - I used block_given?, which is a Ruby 1.6 method. On 1.4, it isn't defined, so it calls method_missing, and .... On 1.4, use iterator? instead. > Is there anyplace where things like method_missing are documented? Online at: http://www.rubycentral.com/ref/ref_c_object.html#method_missing or in print in a wonderful, fabulous, not-to-be-missed new book that will be available in less than two months now ;-) You might also be interested in a couple of articles, one on reflection, the other on invoking methods dynamically, at http://www.rubycentral.com/articles At some point we'll get the top page of that web site working ;-( Regards Dave