Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一部のクラスで使用され、他のクラスでは使用されない特性がある場合、オブジェクトをテストして、それがその特性を使用するクラスのインスタンスであるかどうかを確認するにはどうすればよいですか? 私が欲しいのは、 isMemberOf: または isKindOf: のようなものですが、Traits 用です。
myInstance クラス traitCompositionIncludes: MyTraitClass