Keywords

Keywords

The following keywords are used by Ruby.

__ENCODING__

The script encoding of the current file. See Encoding-

__LINE__

The line number of this keyword in the current file-

__FILE__

The path to the current file-

BEGIN

Runs before any other code in the current file- See miscellaneous syntax

END

Runs after any other code in the current file. See miscellaneous syntax

alias

Creates an alias between two methods (and other things). See modules and classes syntax

and

Short-circuit Boolean and with lower precedence than &&

begin