Mixed Argument Struct

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 …

Keyword Argument Struct

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…

Values

Quick, easy, minimal immutable Value Objects in Ruby

Custom Splat

In today's episode we discover how to make an arbitrary object implicitly "splat"-able.

Struct from Hash

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…

OpenStruct

This episode focuses on OpenStruct, which makes it easy to create ad-hoc value objects from hashes.

Struct

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…