method

reopen

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

Reinitializes strio with the given other_StrIO or string and mode (see StringIO#new).