[Cuis-dev] New Refactoring: Extract as Parameter

Hernan Wilkinson hernan.wilkinson at gmail.com
Wed Sep 22 17:37:09 PDT 2021


Hi all!
 I just pushed a new refactoring with its tests to github: Extract as
Parameter.
 With this refactoring you can select code in the method that you want to
get as a parameter. So, basically it is the same as the Add Parameter but
it uses the selected code as the parameter value to use in the senders.
 You can execute it by pressing cmd+1 or with the option "Extract as
Parameter" from the "More Refactoring" option of the editor menu.

 The code that can be extracted as parameter are literals, messages sent to
literals and with literals as parameters, and blocks with the previous
conditions.

Cheers!
Hernan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210922/bdf8aaa8/attachment.htm>


More information about the Cuis-dev mailing list