The Case of the Missing Method: A Ruby Mystery Story
summary
A debugging detective story that proves the concrete claim: that what look like class methods live on an object's singleton class, not on its superclass. Reproductions use pry and IRB, an object_space probe that shows class creation increments by two, and a small "where" routine that walks ancestors to locate methods. A DSL example builds per-city behavior by adding methods into instance singleton classes. Useful if encountering mysterious method lookup or Rails/DSL magic.
AI-written summary · about
chapters (12)
- 0:00Introduction to the mystery
- 1:55Mike’s urgent request
- 6:31First investigation dead end
- 8:16Fresh leads at coworking space
- 10:26Smalltalk lecture breakthrough
- 13:40Solving the case for Mike
- 14:44Learning about singleton classes
- 16:29Ellen’s DSL demonstration
- 21:33Why singleton classes matter
- 24:21Jenny’s betrayal revealed
- 25:47Empowering Mike with knowledge
- 26:09Two months later update
related talks
33mThe 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
