Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
6 Cards in this Set
- Front
- Back
What does it mean when a method is declared private?
|
It can be called with an implicit receiver, but not an explicit one
|
|
What does it mean when a method is declared private?
|
It can only be called by objects of the same class
|
|
What is a receiver?
|
The object that receives a method call (e.g. object.method)
|
|
What does Object#send(symbol) do?
|
Sends an object a symbol to be called as a method (e.g. object.send(:hello) == object.hello)
|
|
What does super do?
|
Tries to call a method with the same name as the current method, but defined in the object's superclass
|
|
How do you get the name of the current method (as a symbol)?
|
__method__
|