The Outline view is a feature that displays a tree that outlines the structure of parent-child relationships amongst Require declarations, classes, modules, variables, constants, and methods in the script. It is displayed when Ruby scripts that have been imported into operation component projects are opened in a text editor. You can also select the node names relevant to the source code (Require declarations, class names, module names, method names, variable names, and constant names) by clicking on the nodes in the tree. The node images displayed in the Outline view are as follows:
Image | Node |
---|---|
Require declaration block | |
Require declaration | |
Class | |
Module | |
Variable, constant | |
Method | |
Constructor | |
Static member |
Usage
The following steps describe how to use the features in the Outline view with Ruby scripts:
Open the Ruby script with a text editor. The Outline view appears on the right side of the text editor by default.
Select the node names (Require declarations, class names, module names, method names, variable names, and constant names) in the Outline view and click.
The string corresponding to the node clicked is selected in the source code. With methods, the arguments are also displayed in the outline, but only the method name part is selected in the source code when you click the node.
Point
The nodes of the tree displayed in the Outline view for the variable names, constant names, and method names can be sorted into alphabetical order for each Require declaration, class or module by clicking the Sort icon on the toolbar in the outline. The original order is restored by clicking the Sort icon one more time.
If the source is edited in the text editor, the Outline view is updated automatically.
Note
Nothing is displayed in the Outline view when Perl scripts are opened in the text editor.