Keywords 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
2
Q
Include a module
A
Include
3
Q
Constructor method in ruby
A
Initialize
4
Q
Create an object without invoking the constructor method
A
Allocate
5
Q
Refer to the receiving object or class. Also used in class method definition.
A
Self
6
Q
Raise an exception
A
Raise
7
Q
Define a code block for handling exceptions
A
Begin
End
8
Q
The following code always runs (in exception handling)
A
Ensure
9
Q
The following code is run when an exception is raised
A
Rescue