Subject: Re: How to enumerate nested classes
From: Tim Hunter <cyclists nc.rr.com>
Date: Fri, 5 Nov 2004 09:33:44 +0900
References: 119123119129
Joel VanderWerf wrote:
>
> p Foo::Bar.constants.map{|k|Foo::Bar.const_get(k)}.grep(Class)
Excellent! Not only did this pretty much work right out of the box, I found
two classes that didn't have a deep_copy() method! Thanks!