In today's episode, we put together several of the small bits of Ruby lore we've learned in order to build a simple and pragmatic mail templating system.
Category: Episodes
Episode #249: Unindent
In today's episode we explore methods for unindenting text. Along the way, we'll learn some tricks and play some code golf.
Episode #248: Min By
In this episode, we'll look at an easy way to find items in a collection with the lowest (or highest) of some attribute. And at how we can apply this …
Episode #247: Multiline Strings
Today we'll compare a few different ways to quote large, multi-line blocks of text.
Episode #246: Values At
Today's dish is a quick little refactoring that demonstrates working with multiple values pulled from a Hash.
Episode #244: Drop While
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.
Episode #243: Replace Parameter with Option
In this episode we take a method with a large and unweildy signature, and begin to pull parameters out into configurable options.