Method Precedence in Ruby
Nice summary of the order in which Ruby looks for different methods. I can imagine not knowing this could cause a world of problems!
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Yeah, its good to know those things. I haven't yet run into a problem, and I couldn't recite the order to you, but it may just be that its in the back of my mind somewhere. =)
http://talklikeaduck.denhaven2.com/articles/2007/0...
http://talklikeaduck.denhaven2.com/articles/2007/0...
In any case, I imagine that many people would indeed have a hard time following it if they didn't know already something about which you were talking.
Thanks for the clarification though!