= 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) { struct StringIO *ptr = StringIO(self); if (!READABLE(ptr)) { rb_raise(rb_eIOError, "closing non-duplex IO for reading"); } ptr->flags &= ~FMODE_READABLE; return Qnil; }