pharo-project / pharo

Pharo is a dynamic reflective pure object-oriented language supporting live programming inspired by Smalltalk.
http://pharo.org
Other
1.21k stars 356 forks source link

Fedup to have around this initialize-release? Let us get rid of it! #17358

Closed Ducasse closed 1 week ago

Ducasse commented 1 week ago
| pkgPrefix newClassPrefix env model |
env := RBBrowserEnvironment new 
            forClasses: (Smalltalk allClasses 
                                    select: [ :each | each protocolNames includes: #'initialize-release' ]).

model := (RBNamespace onEnvironment: env) name: 'MyModel'; yourself.
RBProtocolRegexTransformation new
    model: model;
    replace: 'initialize-release' with: 'initialization';
  execute.