self class

self class

This returns the name of the class that the current method was defined within. Note that this will change as the chain of method implementations is traversed with next, and that if the method was defined on an object then this will fail.

If you want the class of the current object, you need to use this other construct:

info object class [self object]