How can I add new methods or remove methods of a specific Class? Or, if I try to add a method which already exists so it will override it (although at this case I can just remove the old one and add the new one which is the same)?
Can it be done when the method itself is represented as a String? (I mean doing it without using external files and such but just have the method written as string).
For example a method that gets a class, a symbol and a string that is the code of the method and adds this method to aClass and if exists so override the old one:
in: aClass add: aSymbol sourceCode: aString
and usage example:
in: ClassA add: #something sourceCode: 'self subclassResponsibility'