-
BEGIN
Code, enclosed in {and}, to run before the program runs.
-
END
Code enclosed in {and}, to run when the program ends.
-
alias
Creates and alias for an existing method, operator, or global variable.
-
and
Logical operator; same as && exept and has lowered precedence. Compare with ‘or’
-
begin
Begins a code block or group of statements; with ‘end’
-
break
Terminates a ‘while’ or ‘until’ loop or a method inside a block.
-
case
Compares an expression with a matching ‘when’ clause; closes with ‘end’ see ‘when’
-
-
-
=
Assigns value to a variable name. ie name = Chad Jemmett
-
$
- A global variable.
- When this precedes a word, it means the word is a global variable.
-
Modules
- A way of grouping together methods, classes and constants. Modules give you 2 major benefits
- They provide a namespace and prevent name clashes
- The implement the mixin facility.
-
Loops
Used to execute the same block of code for a specified number of times.
|
|