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

Rename refactorings

Last modified: 04 April 2024

Use the Rename refactoring to change names of symbols, files, directories, Rails application components, Rails named scopes, Rails fixtures, and so on. RubyMine automatically changes all the references to renamed items throughout code.

Renaming local variables or private methods can be done easily inline since only the limited scope is affected. Renaming classes or public methods could potentially impact a lot of files. In this case, we suggest that you preview potential changes before you refactor.

The procedure below demonstrates how to rename a class method.