In today's episode we explore methods for unindenting text. Along the way, we'll learn some tricks and play some code golf.
Today we'll compare a few different ways to quote large, multi-line blocks of text.
In this episode, we look into how to get the most out of the Regexp#match method.
Today we look at a lesser-known but handy pair of methods on Strings.
Today we look at Ruby's grep method, and explore the idea of matching objects by example.
Today's episode demonstrates an easy way to build big regular expressions out of little ones.
Have you ever wanted a way to customize the format of certain generated strings, but felt like ERB or some other templating language was overkill? If so, today's episode should …
Following on from the last episode, today we look at some more advanced uses of Ruby's string formatting features.
Sometimes Kernel#puts and string interpolation doesn't give us the level of control we want over our program's output. When we need to control numeric formatting and field widths, we need …