[Tutor] who called the class method?

David Driver count0.djd at gmail.com
Tue Jun 21 20:34:18 CEST 2005


Is there a way to test if a class method was called from an instance? 

What I am trying to do is if a method is called from the class return
a commanding proxy with an mock or stub type object as the proxied
object. If it is called from the instance I want to return a proxy for
the instance.

Does what I am trying to do make sense?

Thanks!
-- 

***********************************
See there, that wasn't so bad.
***********************************


More information about the Tutor mailing list