views:

53

answers:

1

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.

+2  A: 

myInstance class traitCompositionIncludes: MyTraitClass

Rydier
Thanks. This is what I needed.
eugen