Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

StringIO#close_write

strio.close_write → nil

Closes the write end of a StringIO. Will raise an IOError if the receiver is not writeable.

See also #close_read #each #closed_write? #each_byte also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0