Yes, &…: Ruby’s Secret Talent for Improvisation
summary
Explains concrete Ruby behavior: examples show blocks passed via yield, converting with &block into a Proc and calling with call, and using stabby lambdas; demonstrates strict arity for lambdas, flexible ignored args for blocks/Procs, and the surprising proc return escapes that triggers unexpected return / local jump errors; shows factory-style lexical captures working and REPL demos that sometimes raise syntax or argument errors so the code both succeeds and intentionally fails to teach.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 0:54Improv basics and Ruby’s yes-and
- 3:46Ruby blocks as scene partners
- 10:08Accepting offers with block arity
- 15:04Procs and lambdas as improv styles
- 21:03Lexical scope and function composition
- 21:24How Ruby exits scenes
- 25:35Summary








