Is there a way to get the name of the class of the current method? When subclassing, object.class gives you the name of base class, but if I run a method in the superclass, I want to know the superclass name programatically...
but that's not quite the same. If there was another level of subclassing in between, it would use that. Is there no way to get the classname of the current method?
As I said, I'm using an existing framework, which is why I'm describing the 'tiny' problem I'm trying to solve. The superclass I mentioned inherits from another class, which itself includes mixins - which are both generated elsewhere. Hence the desire to have a one liner fix in the initialiser rather than reimplement all the associated methods.
Personally, I think I've described it pretty well. No worries. I can live with the workaround. Just thought there would be an easy method call that gave me the name of the actual class the methods was in rather than the base class.
Hello. If I have some 'attribute' style class methods called in my class to setup some data structures. However, if I subclass the object, these methods don't get called. Is there a way of achieving this...?