[Cuis-dev] New Refactoring: Extract as Parameter
Juan Vuletich
juan at jvuletich.org
Thu Sep 23 06:59:09 PDT 2021
On 9/22/2021 9:37 PM, Hernan Wilkinson via Cuis-dev wrote:
> 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.
>
Very nice indeed!
Cheers,
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich
More information about the Cuis-dev
mailing list