Home > Articles > Programming > Ruby

  • Print
  • + Share This
This chapter is from the book

2.10 Using Strings as IO Objects

Besides sprintf and scanf, there is another way to fake input/output to a string—the StringIO class.

Because this is a very IO-like object, we cover it in a later chapter. See Section 10.1.24, “Treating a String as a File.”

  • + Share This
  • 🔖 Save To Your Account