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 52ea222 commit 947e5baCopy full SHA for 947e5ba
ext/stringio/stringio.c
@@ -651,7 +651,14 @@ strio_closed_read(VALUE self)
651
* call-seq:
652
* closed_write? -> true or false
653
*
654
- * Returns +true+ if +self+ is closed for writing, +false+ otherwise.
+ * Returns whether +self+ is closed for writing:
655
+ *
656
+ * strio = StringIO.new
657
+ * strio.closed_write? # => false
658
+ * strio.close_write
659
+ * strio.closed_write? # => true
660
661
+ * Related: StringIO#close_write, StringIO#closed?, StringIO#closed_read?.
662
*/
663
static VALUE
664
strio_closed_write(VALUE self)
0 commit comments