method

new

ruby latest stable - Class: StringIO
new(*args)
public

Creates new StringIO instance from with string and mode.