Extract Method Dialog
In this text box, specify the name of the function or method to be generated on the basis of the selected source code.
|In this area, specify the visibility scope of the method to be generated. |
If the private or protected sections exist, then the newly generated method is added there. If they don't exist, they are generated (the public section is not used, see https://github.com/bbatsov/ruby-style-guide#consistent-classes).
|In this area, select parameters to be passed to the new method/function.|
Use these buttons to change the order of the parameters.
In this read-only field, view the declaration of the new method/function.
This read-only field shows local variables or parameters that have been changed within the method body, and will be returned by the method.