Posts Tagged “string”

Using a String as a File in Ruby

by john on June 3, 2008

The ability to treat a string as a file can often be quite handy. Generally this most useful when classes/methods expect a file object as an input type. With Ruby, you can use the StringIO library to use a string (…)

Read the rest of this entry »