Ruby Internals
summary
MRI keeps one rule: method dispatch always works the same way, so class pointers and method tables determine behavior. MRI implements instance-specific behavior by spinning up singleton classes on the fly with super pointers back to the original class. Modules insert include classes (thin wrappers whose method table points to the module) so multiple mixins don’t collide. Fixednums/symbols and true/false/nil use special value encodings (nil id 4, true id 2). JRuby and Rubinius implement these concepts differently for JVM and reimplemented engines.
AI-written summary · about
chapters (9)
- 0:00Start
- 6:30Ruby Hacking Guide
- 7:13Method Dispatch
- 21:38Singleton Classes
- 32:41The Inheritance Hierarchy
- 36:38Class Methods on Modules
- 41:57Boba Fett
- 43:50Class Initialization
- 47:51Questions








