RubyMine
 
Get RubyMine
You are viewing the documentation for an earlier version of RubyMine.

Extract method

Last modified: 09 August 2022

Refactor | Extract/Introduce | Method

Ctrl+Alt+M

The Extract Method refactoring allows you to extract a specified code fragment into its own method.

To extract a method: