reopen(*args)
  public
  
    
    
Reinitializes strio with the given other_StrIO or string and mode (see
StringIO#new).
   
  
    Show source    
    
      static VALUE
strio_reopen(int argc, VALUE *argv, VALUE self)
{
    rb_io_taint_check(self);
    if (argc == 1 && !RB_TYPE_P(*argv, T_STRING)) {
        return strio_copy(self, *argv);
    }
    return strio_init(argc, argv, StringIO(self), self);
}