Nice :)
That is funny because I am currently doing something similar. I need to recompile all the methods of all classes of a package to change a word in the methods.
I have 237 classes and a hell lot of methods in each :p
So I did :
(RPackageOrganizer default packageNamed: 'MyPackage') definedClasses do: [ :each1 |
each1 methods do: [ :each2 |
each1 compile: (each2 sourceCode copyReplaceAll: 'OldWord' with: 'NewWord' asTokens: true).
].
].
Apparently it worked too !
But now my problem is I have about 200 words to replace every time so I need a third iteration.