Eliminating astonishment with a special Ruby idiom for object creation.
A new feature in Ruby 2.3 makes it easier to compare hashes by value.
Ever wanted to have fancy pattern-matching in Ruby like that found in languages like Erlang or Elixir? Well, today we'll construct the ability to do just that!
We know that Value Objects are useful; today we'll meet a gem that makes them easier to build.
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.
Today's episode deals with the concepts of identity and equality - what makes one object equal to another.
Sometimes we'd like to treat Ruby arrays like sets, in which each item is unique. Today's dish shows how!
Ruby has both symbolic and English forms of the logical "and" and "or" operators. Which one to choose may seem like a matter of taste, but that assumption can get …
This episode looks at Ruby's logical XOR operator, and how it can be useful in checking that a method was called with the correct optional arguments.
Today's dish combines the great flavor of Ruby's 'case' statement with a little Proc seasoning and a threequals demiglace!