Metaprogramming? Not good enough!
summary
Claims that Ruby can host a fully extensible object model implemented in userland using BasicObject plus about five core methods (add_method, lookup, build_object, delegate, send) and a few tiny classes, and demonstrates it works: builds a tiny object system, an intercepting_behavior for logging and retrying flaky calls, and a multiple‑inheritance behavior that searches parent arrays, all running as live Ruby examples.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:46What makes Ruby
- 2:33Happiness
- 3:57Object Models
- 4:53State and Behavior
- 8:51Overview
- 9:05Build Object
- 9:15Inheritance
- 9:32Naming Methods
- 9:55Basic Object
- 10:30Core Methods
- 16:30Add Method
- 19:10Review
- 22:40New Object Models
- 27:51Multiple Inheritance
- 31:16Object Model vs Ruby
- 31:51Why do this
- 33:13Give this a try
related talks
25mIn Defense of Ruby Metaprogramming
18mMetaprogramming: Unraveling the Magic
29mAll I'd Wanted to Know about Ruby's Object Model Starting Out...and Mooar!!!
26mMeta-programming for Dummies
34mMetaprogramming for generalists
42mYou gotta try this
47mExtreme Object-Oriented Ruby
30mRuby Techniques by Example
