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

Extract method

Last modified: 12 April 2023

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

To extract a method: