Search code examples
reflectionsmalltalkpharo

How to get *all* classes in Pharo?


Conundrum... tried Smalltalk allClasses and TBehaviour in Kernel-Traits, among others, seems to be missing from the list. Interestingly enough it is a Trait not a Class...? there seem to be corresponding allTraits and allBehaviors.

Any others we should know about when trying to get everything? Or is there some other method to get everything?


Solution

  • You need to execute:

    Smalltalk allClassesAndTraits.