[Cuis] Is there a cleaner way to determine if a method was called by a subclass?

Phil (list) pbpublist at gmail.com
Sun May 3 19:10:07 CDT 2015


On Fri, 2015-05-01 at 19:24 -0300, Juan Vuletich wrote:
> Hi Phil,
> 
> You can do:
> 
> cMethod
>      ^thisContext methodClass == self class
> 
> This will answer true if run on the class that defines the method, and 
> false if inherited.
> 

Perfect!

> Cheers,
> Juan Vuletich

Thanks,
Phil





More information about the Cuis mailing list