page 103, last two lines - something offends my ears here (already in previous edition) :
Because class Person defines a to_s method, that method is called. If it hadn’t defined a to_s method, then Ruby looks for (and finds) to_s in Person’s parent class, Object.
I would say :
- If it doesn’t define a to_s method, then Ruby looks …
or : - If it hadn’t defined a to_s method, then Ruby would have looked for (and found) …