Home > Articles > Programming > Ruby

📄 Contents

  • 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