From: Ryan Pavlik Date: 2003-09-05T05:01:50+09:00 Subject: Re: how to get the list of all classes? On Fri, 5 Sep 2003 04:41:13 +0900 "Wesley J. Landaker" wrote: > Here is one way: > > $ ruby -e 'x = []; ObjectSpace.each_object { |o| x << o if o.class == > Class }; p x' This is probably quicker if you do: x = [] ObjectSpace.each_object(Class) { |c| x << c } ...so you don't have to iterate through thousands of non-Class objects. -- Ryan Pavlik "So... I'm not a total bad-ass fueled by relentless evil?" - 8BT