= private = protected
close_read()
Closes the read end of a StringIO. Will raise an IOError if the strio is not readable.
static VALUE strio_close_read(VALUE self) { StringIO(self); if (!READABLE(self)) { rb_raise(rb_eIOError, "closing non-duplex IO for reading"); } RBASIC(self)->flags &= ~STRIO_READABLE; return Qnil; }