O'Reilly logo

Ruby Quick Syntax Reference by Matt Clements

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 14

image

Input/Output

Input/Output within Ruby is the ability to bi-directionally communicate between Ruby and an external resource, such as a file or network resource. It is worth noting that Input/Output is not just restricted to File processes, as often wrongly assumed. Ruby Input/Output is defined from the single base class IO. Derived from the IO class, we then have more specialized, but otherwise similar subclasses, such as File and BasicSocket that deal with the Input/Output for the particular type of resource.

Previously, we have dealt with Standard Input/Output, which allows us to communicate interactively with the user running our ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required