/* * call-seq: * strio.closed_read? -> true or false * * Returns +true+ if *strio* is not readable, +false+ otherwise. */ static VALUE strio_closed_read(self) VALUE self; { struct StringIO *ptr = StringIO(self); if (READABLE(ptr)) return Qfalse; return Qtrue; }