10.5. Conclusion

This chapter provided an overview of I/O in Ruby. We’ve looked at the IO class itself and its descendant File, along with other related classes such as Dir and Pathname. We’ve seen some useful tricks for manipulating IO objects and files.

We’ve also looked at data storage at a slightly higher level—storing data externally as marshaled objects. Finally, we’ve had a short overview of the true database solutions available in Ruby, along with some OOP techniques for interacting with them in easier ways.

Later, we will look at I/O again from the perspective of sockets and network programming. But before getting too deep into that, let’s examine some other topics.

Get The Ruby Way: Solutions and Techniques in Ruby Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.