We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daaa09b commit fcf8b10Copy full SHA for fcf8b10
ext/stringio/stringio.c
@@ -572,9 +572,16 @@ strio_close(VALUE self)
572
* call-seq:
573
* close_read -> nil
574
*
575
- * Closes +self+ for reading; closed-write setting remains unchanged.
+ * Closes +self+ for reading;
576
+ * closed-write setting remains unchanged;
577
+ * returns +nil+:
578
- * Raises IOError if reading is attempted.
579
+ * strio = StringIO.new
580
+ * strio.closed_read? # => false
581
+ * strio.close_read # => nil
582
+ * strio.closed_read? # => true
583
+ * strio.closed_write? # => false
584
+ * strio.read # Raises IOError: not opened for reading
585
586
* Related: StringIO#close, StringIO#close_write.
587
*/
0 commit comments