RubyMine 2017.3 Help

Move Class or Module Dialog

Refactor | Move
<context menu of a selection>| Refactor | Move
F6

This dialog box shows up when the following pre-conditions are met:

  • A Ruby file is opened in the editor.
  • The file contains any number of classes or modules that can be nested.
  • The caret rests at a module or class name.
ItemDescription
Move module/class ...This read-only field specifies the path to the module or class to be moved in the format Ruby class name::module name::class name.
New module/class nameName of a Ruby module or class that will be created on moving the module/class to its own file. This new module or class will contain the code of the module or class being moved.
New file pathDirectory structure, created on the basis of the moved module or class.

For an example, refer to the section Moving a class/module.

Directory for new module/classIn this field, specify the fully-qualified path to the directory where the new directory structure will be created. Accept the default value, or click the browseButton (Shift+Enter) to find a custom location.
Last modified: 4 April 2018

See Also