Many different kinds of Ruby objects respond to #call. Today's dish is a demonstration of how this fact can be harnessed to easily swap out different implementations of a collaborator …
Category: Episodes
Episode #034: Struct from Hash
For such similar and broadly useful data structures, Struct and Hash are surprisingly incompatible. In this episode we look at some ways to smooth over their differences, and answer a …
Episode #033: Classes and Constants
On the menu today is an exploration of what, exactly, happens when we define a class in Ruby.
Episode #032: Hash Default Blocks
Following on to the episodes about #fetch, today's episode answers the question: what do we do when we want the same defaulting behavior everwhere a Hash is used?
Episode #031: Observer Variations
Today we revisit episode 21, and try out several different takes on registering observer callbacks inline.
Episode #030: Backticks
Celebrate Friday with a stupid Ruby trick! In this epsiode we discover one of Ruby's most overlooked operators, and overload it just because we can.
Episode #029: Redirecting Output
This episode takes a look at two different methods for redirecting standard out and standard error - one simple and quick, one more comprehensive.