Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions ext/stringio/stringio.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,16 @@ strio_close_write(VALUE self)
* call-seq:
* closed? -> true or false
*
* Returns +true+ if +self+ is closed for both reading and writing,
* +false+ otherwise.
* Returns whether +self+ is closed for both reading and writing:
*
* strio = StringIO.new
* strio.closed? # => false # Open for reading and writing.
* strio.close_read
* strio.closed? # => false # Still open for writing.
* strio.close_write
* strio.closed? # => true # Now closed for both.
*
* Related: StringIO.closed_read?, StringIO.closed_write?.
*/
static VALUE
strio_closed(VALUE self)
Expand Down