Wednesday, June 27, 2012

Listing all available classes in ruby

I have to look further into the ObjectSpace module.

But this command lists all the available classes.

ObjectSpace.each_object(Class) {|c| p c}

You could also save all the results to an array, require your new module, call it again and subtract one set from another just to get the new classes from the library (If you're lacking documentation).


No comments:

Post a Comment