Today's episode introduces the concept of thread-local variables, and shows how they can be put to use in an ActiveRecord-like library.
This episode takes a look at some potentially surprising rules for how Ruby looks up constants. Notes: "Everything you ever wanted to know about constant lookup in Ruby", by Conrad …
Today, some thoughts on writing class-level attribute accessors.
In this episode we tackle how to override base class methods while cleanly passing through multiple base-class arguments. Notes: Paul Battley on Destructuring Assignment in Ruby
Sometimes a block or method may receive arguments that you just don't care about. This episode introduces the idiomatic Ruby way to indicate that certain arguments should be ignored.
Today we take a look at a related feature to Ruby's "splat" operator: the ability to recursively destructure arrays using grouped assignment.
In today's episode we discover how to make an arbitrary object implicitly "splat"-able.
Delving further into Ruby's destructuring assignment, or "splat", mechanism, today we look at some cases where Ruby performs splatting without an explicit '*' operator.
It's a library! No, it's an executable! Relax, your Ruby files can be both require-able libraries and executables!