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

Homework 7 #116

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

Homework 7 #116

wants to merge 7 commits into from

Conversation

vogelbek
Copy link

And only the week 7 homework changes. Tic-tac-toe will be in a separate pull request.

@cherimarie
Copy link
Contributor

Adam, again, I so appreciate your mastery of Git. Only seeing 2 files in this PR is beautiful. Thank you.

@@ -3,7 +3,16 @@ Please Read Chapters 23 and 24 DuckTyping and MetaProgramming

Questions:
1. What is method_missing and how can it be used?
It is automatically called when a method is called on a class where it isn't defined. The default is that it should then search the parent class to see if it's there (possibly tripping that method_missing). At the top of the tree, Object throws an error if method_missing is called.
Copy link
Contributor

Choose a reason for hiding this comment

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

method_missing is the method that Ruby looks for after it can't find the method that's been called anywhere in the class hierarchy that it was called in.

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