Advanced Ruby Class Design
summary
Three concrete examples: a lazy FileList for rake that uses delegation and to_ary rather than inheriting from Array to avoid unresolved concatenation bugs; builder that implements a blank_slate by undefining Object methods and patching method_added and append_features to hide late additions; and a Node-based translator that executes Ruby to build SQL fragments (using parse_tree mentioned as an alternative) but breaks on short‑circuit operators like && and || and suffers obvious performance pitfalls when it loads whole tables.
AI-written summary · about
chapters (6)
- 0:00Introduction and background
- 2:23Philosophy of Ruby design
- 10:55Master of disguise example
- 23:29Blank slate technique
- 36:28Capturing code execution
- 59:32Conclusion








