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

David Baynes - Final Homework - Includes Week 7 Homework #120

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

dbaynes
Copy link

@dbaynes dbaynes commented Nov 27, 2013

No description provided.

Singletons in Ruby lets you define methods that are specific to a particular object. When we create
a singleton method a new anonymous class is created and inserted as the first link in an object's inheritance chain, being the first place Ruby will look for a method definition, then the superclass, etc. It is here in the 'anonymous class' where the singleton lives.

Eigenclass is an alternate name for this dynamically created anonymous class. The word 'eigen' comes from the German, roughly implying something like, "one's very own."
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 the preferred name, 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.

4 participants