= private = protected
close_write()
Closes the write end of a StringIO. Will raise an IOError if the strio is not writeable.
static VALUE strio_close_write(VALUE self) { StringIO(self); if (!WRITABLE(self)) { rb_raise(rb_eIOError, "closing non-duplex IO for writing"); } RBASIC(self)->flags &= ~STRIO_WRITABLE; return Qnil; }