Ruby has a lot of tools for processing input line-by-line. But when you look a little closer, it turns out that these methods are for more than just lines of …
Learn how Ruby's -p flag along with a bunch of handy shortcuts can take a script's worth of text filtering and shrink it to a one-liner!
Ruby's open() call has more tricks up its sleeves than you know!
Shortcuts to reading and writing files in Ruby.
Stop writing non-portable Ruby file-management code.
Understand once and for all how, when, and why to open files in binary mode.
A little history lesson about computer text formats
Windows users can feel like second-class-citizens in the Ruby world. Ruby gems and tools often don’t work quite right on Windows hosts. But we can fix this. Making your code …
Today we'll learn how to test code that interacts with the filesystem.