Skip to content
instance method

StringIO#closed_write?

() -> bool
closed_write? → true or false

Returns whether self is closed for writing:

Example
strio = StringIO.new
strio.closed_write? # => false
strio.close_write
strio.closed_write? # => true

Related: StringIO#close_write, StringIO#closed?, StringIO#closed_read?.

See also #closed_read? #close_read #closed? #close_write also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0