The Case Of The Missing Method - A Ruby Mystery Story
summary
A concrete mystery resolution: class methods are stored on an invisible singleton class and method lookup always begins there, demonstrated by pry and ObjectSpace experiments that show creating one class yields two new live objects so ObjectSpace counts reveal surprising behavior. The talk builds a working DSL via instance_eval/DSL to scaffold city subclasses, explains when singleton classes cause hard-to-debug errors, and shows where to look when methods seem to be missing.
AI-written summary · about
chapters (9)
- 0:00Intro
- 2:22Background
- 8:43Chapter 2 Ever heard of Google
- 12:25Chapter 3 Smalltalk
- 15:53Chapter 4 Case Closed
- 16:30Chapter 5 Meeting Ellen
- 24:28Chapter 6 Deer Cells
- 28:42Chapter 7 Ruby Hack Night
- 31:22Chapter 8 Conclusion
related talks
29mThe Case of the Missing Method: A Ruby Mystery Story
31mThe case of the missing method — a Ruby mystery story
34mThe Case of the Missing Method — A Ruby Mystery Story
29mMessenger: The (Complete) Story of Method Lookup
33mVenturing into the Spooky Science of Ruby
18mMetaprogramming: Unraveling the Magic
29mModule Magic
30mRuby Techniques by Example
