-
Matz?
The creator of Ruby.
-
Class
A collection of code, including methods and variables called members. The code in a a class sets the rules for objects of the given class.
-
Instance Variable
A variable associated with an instance of a class. Prefixed with a single @ sign.
-
Reserved Word
Another name for Keyword. Words set aside by Ruby and have a special meaning to the Ruby interpreter.
-
Regular Expression
A consice sequence or pattern of special characters used to search for strings.
-
String
A sequence of objects, usually characters.
-
Variable
A name that may be assigned a quantity or a value.
-
Range
A way of representing inclusive and exclusive ranges of objects, usually numbers.
-
Hash
An unordered collection of data where keys and values are mapped.
-
Array
A data structure containing an ordered list of elements. Starting with an index of Zero.
-
Argument
- Variables passed to a method.
- ie: hello(name) the variable 'name' is an argument
-
Block
a nameless function always associated with a method call. Contained in a pair of braces {} or do/end
-
Child Class
A class derived from a parent or super class
-
Superclass
The parent class. A child class is derived from the parent or superclass
-
Global Variable
A variable whose scope includes the entire program.
-
Class Variable
- A variable that can be shared between objects of a given class
- Prefixed with two @@ signs.
-
Float
- Objects that represent real numbers.
- ie: 1.0 12.50
-
Method
- A named collecion of statements with or without argument, and a return value.
- A member of a class.
-
Member
Variables and methods are considered members of a class or object.
-
def
Keyword. defines method
-
Expression
A programming statement that includes keywords, operators, variables and so forth. Returns a value.
-
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’
-
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.
-
Iterator
Methods that act like loops
-
Loops
Used to execute the same block of code for a specified number of times.
|
|