Tag: strings
Episode #381: Integer To String
Today, a little computer-science problem offers some useful insights.
Episode #352: String Justify
In this episode, we'll learn how to do basic tabular text layouts without resorting to printf-style format specifiers.
Episode #247: Multiline Strings
Today we'll compare a few different ways to quote large, multi-line blocks of text.
Episode #222: String Partition
Today we look at a lesser-known but handy pair of methods on Strings.
Episode #196: String Templates
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 …
Episode #195: Advanced String Formats
Following on from the last episode, today we look at some more advanced uses of Ruby's string formatting features.
Episode #194: String Format
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 …
Episode #107: String Subscript Assignment
In today's episode, we learn a wonderfully convenient way to substitute text.
Episode #099: String Subscript Regex
Today the focus is on a convenient way to extract substrings using regular expressions. We glossed over this technique briefly in an earlier episode, but now it's front and center.