RubyMine 2019.3 Help

Code hierarchies

RubyMine enables you to examine the hierarchy of classes and calls in the Hierarchy tool window.

Build the hierarchy of classes

  1. Choose the desired class in one of the following ways:

    • In the editor, place the caret at the class name.

    • Select the class in the Structure tool window (Alt+7).

    • Select the class in the Rails view of the Project tool window.

  2. From the main menu, choose Navigate | Type Hierarchy or press Ctrl+H.

    Class hierarchy
  3. Use the Supertypes Hierarchy or Subtypes Hierarchy buttons to display a hierarchy of parent or child classes, respectively.

    Subtypes hierarchy

Build the hierarchy of method calls

  1. Choose the desired method in one of the following ways:

    • In the editor, place the caret at the method declaration or usage.

    • Select the method in the Structure tool window (Alt+7).

    • Select the method in the Rails view of the Project tool window.

  2. From the main menu, choose Navigate | Call Hierarchy or press Ctrl+Alt+H.

    Callers hierarchy
  3. Use Callee Method Hierarchy button to show methods used by the method you are investigating.

    Callees hierarchy
Last modified: 27 December 2019