The problem with Pharo is sometimes it's too much fun to play with objects. I
could've just renamed my 5 classes via copy/paste, but I couldn't resist...
classes := Smalltalk organization classesInCategory: packageName.
classes do: [ :cls | | newName |
        newName := newPrefix, (cls name allButFirst: oldPrefix size).
        (RBRenameClassRefactoring rename: cls to: newName) execute ]



-----
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Pharo-is-too-much-fun-tp4820809.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to