Keywords Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Look further up the method lookup path for method definition with the same name.
Can be used with or without arguments

A

Super passes all args

Super() passes no args

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Include a module

A

Include

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Constructor method in ruby

A

Initialize

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Create an object without invoking the constructor method

A

Allocate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Refer to the receiving object or class. Also used in class method definition.

A

Self

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Raise an exception

A

Raise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define a code block for handling exceptions

A

Begin

End

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The following code always runs (in exception handling)

A

Ensure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The following code is run when an exception is raised

A

Rescue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly