Login  Register

Adding method to class

Posted by Mark Rizun on Jul 17, 2014; 1:53pm
URL: https://forum.world.st/Adding-method-to-class-tp4768282.html

Hi guys!

How can I add method (I have RBMethod) to a class in code?
I'm asking because existing method addMethod: in RBAbstractClass isn't working.
Here is a piece of my code:

method:= RBMethod for: class source: ('^ ', newName asString) selector: newName asSymbol.
        class addMethod: getter.


Best
Mark