Ruby is all about giving coders choices. What if you could give users of your code the choice between positional or keyword arguments, or some mix of …
The quickness and convenience of Ruby Struct with the expressiveness of keyword arguments? Learn how to make the most of this relatively recent Ruby a…
For such similar and broadly useful data structures, Struct and Hash are surprisingly incompatible. In this episode we look at some ways to smooth ove…
In previous episodes we've used the Struct class in passing to quickly construct classes. This time, we put Struct in the spotlight, and put it throug…