TOC Symbols

Symbols are used by Ruby for many purposes. The names of all classes, methods, attributes, constants and variables are all placed in Ruby's symbol table.


<%= hdr %>


  • This summary does not show symbols beginning with $, @, or @@.

  • Global constants have also been omitted, please see the Constants List.

<%= found %>

Attribute Names

These are assumed to be attributes, due to there being sets of them (plain, ending in '?', ending in '='). Columns show whether one exists with '?' or '='. If only the '?' version exists, it is placed in the main column.

If an attribute has a symbol for both plain and a ? suffix, very often the plain symbol 'method' is not defined and will not work.

<%= _attribute %>

Symbols - Lower Case 1st letter

These symbols are either method names or variables.

<%= _method %>

Symbols - Upper Case 1st letter

These symbols are mixed case, but all have a first capital letter. They are constants, and may be class or module names.

<%= _class %>

Symbols - All Upper Case

These symbols are all upper case. They are constants, and may also be class or module names.

<%= _constant %>