How to tell if a class uses a Trait
Question
If I have a Trait that some classes use but not others, how can I test an object to see if it is an instance of a class that uses that Trait? What I want is something like isMemberOf: or isKindOf: but for Traits.
Solution
myInstance class traitCompositionIncludes: MyTraitClass
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow