Ruby Techniques by Example
summary
Presents concrete Ruby patterns: after reading 10,000 lines the talk shows an extensible class pattern that defines class and instance methods in modules so extensions can Super through ordered plugins, three concrete ways to handle class‑level data (class vars, delegating lookup, copying on subclassing), the stringy vs blocky evals performance/safety tradeoff and a fallback that handles invalid names, DSL fixes for BasicObject constant lookup, exception wrapping that preserves backtraces, and reentrancy-safe transactions.
AI-written summary · about
chapters (15)
- 0:00Start
- 1:32Creating More Easily Extensible Classes
- 1:57Adding Class Instance Methods to a Class
- 3:15Ruby's Method Look Up
- 5:03Extensible Design
- 6:52Class Variable Approach
- 7:36Delegating Approach
- 8:57Safely Defining Methods View Metaprogramming
- 11:48Simple Dsl
- 14:54How To Fix Constant Look Up in Basic Object
- 16:53Scaffolding Extensions
- 18:46Presenting Multiple Backends Using a Unified Interface
- 21:12Exception Class Conversion Method
- 22:03Strings with Eval
- 23:48Reentrant Methods








