Definitions of keywords Flashcards
Learn the keywords to perform the action described by the definition
1
Q
Run this block when the script starts
A
BEGIN
2
Q
Run this block when the script is done
A
END
3
Q
create another name for a function
A
alias
4
Q
Logical and, but lower priority than &&
A
and
5
Q
Start a block, usually for exceptions
A
begin
6
Q
break out of a loop right now
A
break
7
Q
Case style conditional, like an if
A
case
8
Q
Define a new class
A
class
9
Q
define a new function
A
def
10
Q
Is this class/function/etc. defined already?
A
defined?
11
Q
Create a block that maybe takes a parameter
A
do
12
Q
Else conditional
A
else
13
Q
Else if conditional
A
elsif
14
Q
Ends blocks, functions, classes, everything
A
end
15
Q
Run this code whether an exception happens or not
A
ensure