In this episode we finally discover why the Timeout module is unsafe, and a facility new in Ruby 2.0 that makes dealing with thread interruptions much less error-prone.
Last episode we looked at a simple way to test if a method executes a block as intended that will work in any test framework. But if your tool of …
Today's episode answers the question: how do you test that a block passed to a method is executed as intended?
A refactoring episode, showing how to replace exceptions-as-flow-control with the "catch" and "throw" methods.
Today we take a look at a related feature to Ruby's "splat" operator: the ability to recursively destructure arrays using grouped assignment.
Delving further into Ruby's destructuring assignment, or "splat", mechanism, today we look at some cases where Ruby performs splatting without an explicit '*' operator.
Ruby supports a limited form of destructuring assignment, in the form of the "splat" operator. In today's episode we go over splat basics, in order to lay a foundation for …
In this, the first of two episodes on the 'break' keyword, we look at how it can be applied beyond breaking out of loops.