Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Homework questions completed - KK#109

Open
kirrk wants to merge 39 commits intoUWE-Ruby:masterfrom
kirrk:master
Open

Homework questions completed - KK#109
kirrk wants to merge 39 commits intoUWE-Ruby:masterfrom
kirrk:master

Conversation

@kirrk
Copy link

@kirrk kirrk commented Nov 26, 2013

Efforts on the final also included - located under week7

Method_missing is in part a safety net: It gives you a way to intercept unanswerable messages and handle them. It prevents an exception from being thrown if the method called is missing.

2. What is and Eigenclass and what is it used for? Where Do Singleton methods live?
Singleton methods are specific to a particular object. When a Singleton method is defined for an object, Ruby creates an annonymous class and defines the given method in that class. The annonymous class is sometimes called a singleton class or eigenclass.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Eigenclass" is, obviously, the preferred nomenclature, because it is totally cooler :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments