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 …
Tag: files

Episode #638
Ruby as a Filter
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!

Episode #485: Subprocesses Part 10: Open Pipe
Ruby's open() call has more tricks up its sleeves than you know!

Episode #470: Binary Mode
Understand once and for all how, when, and why to open files in binary mode.

How to make your Ruby code work on Windows PCs
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 …

Episode #314: Filesystem Testing
Today we'll learn how to test code that interacts with the filesystem.