Language features, syntax, and gotchas.
Category: Language
Episode #037: Proc and Threequals
Today's dish combines the great flavor of Ruby's 'case' statement with a little Proc seasoning and a threequals demiglace!
Episode #036: Blocks, Procs, and Lambdas
How is a Proc different from a Lambda? When do you use one over the other? And how to blocks fit into all this? Today's episode attemptes to answer these …
Episode #035: Callable
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 …
Episode #033: Classes and Constants
On the menu today is an exploration of what, exactly, happens when we define a class in Ruby.
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.
Episode #022: Inline Rescue
Putting a rescue at the end of a line can get you into unexpected trouble. In this episode we'll look at why, as well as at the one case where …