In today's episode, we'll compare two methods for getting to the body of an email: one imperative; one functional; and both idiomatic Ruby.
Good morning diners! On today's menu, we have a deep exploration of Ruby's Range type. Even if you've used ranges before, you might find something new to chew on. Enjoy!
Today, some options for getting the first N elements from a list.
As our series on representing physical quantities draws to a close, we turn our attention to existing libraries, specifically the Unitwise gem.
It's often desirable compare objects to see which is "lesser" or "greater"; but not all objects are inherently comparable. Today we'll look at a scheme for easily imposing an arbitrary …
In episode 205 we introduced the spaceship (<=>) operator, but we also introduced an incompatibility with how Ruby's builtin comparisons work. Today we'll address this oversight.
In this episode we meet a Ruby standard module that makes it easy to make classes comparable and sortable.
Building on the previous episode on hash tables, today we tackle the concept of hash equality: how Ruby decides if two objects are the same for the purpose of use …
Today's dish is an exploration of how Ruby is able to quickly look up keys in hashes.