method

new

ruby latest stable - Class: TempIO
new(string = '')
public

Creates a new TempIO that will be initialized to contain string.