File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -600,11 +600,16 @@ strio_close_read(VALUE self)
600600 * call-seq:
601601 * close_write -> nil
602602 *
603- * Closes +self+ for writing; closed-read setting remains unchanged.
603+ * Closes +self+ for writing; closed-read setting remains unchanged; returns +nil+:
604604 *
605- * Raises IOError if writing is attempted.
605+ * strio = StringIO.new
606+ * strio.closed_write? # => false
607+ * strio.close_write # => nil
608+ * strio.closed_write? # => true
609+ * strio.closed_read? # => false
610+ * strio.write('foo') # Raises IOError: not opened for writing
606611 *
607- * Related: StringIO#close, StringIO#close_read.
612+ * Related: StringIO#close, StringIO#close_read, StringIO#closed_write? .
608613 */
609614static VALUE
610615strio_close_write (VALUE self )
You can’t perform that action at this time.
0 commit comments