Queue, somewhat surprisingly, is not enumerable. Which is all the excuse we need to have some more fun with the Enumerator class, in today's episode.
Today's episode introduces the Queue standard library, and shows how it can be used to coordinate threads.
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 …
There is more than one way to concatenate arrays, but not all ways are created equal. In this episode we'll compare three approaches in terms of both semantics and efficiency.
We've figured out how to read chunks of text backwards from a file, now it's time to tackle searching that text for the beginnings of lines.
A number of Ruby standard library methods return an Enumerator if no block is passed to them. In this episode, we'll learn how to emulate this behavior in our own …
In previous episodes we've touched on Enumerator in passing. This time it'll take center stage, as we explore just what an Enumerator is and what it's good for.
This cautionary episode demonstrates and explains a Hash gotcha that often comes as a surprise.
Somtetimes you need to know if exactly one element in a collection has a given property. For that situation, we have the #one? predicate method.