Skip to content
instance method

StringIO#closed_read?

() -> bool
closed_read? → true or false

Returns whether self is closed for reading:

Example
strio = StringIO.new
strio.closed_read?   # => false
strio.close_read
strio.closed_read?   # => true

Related: StringIO#closed?, StringIO#closed_write?, StringIO#close_read.

See also #closed? #closed_write? #close #close_read also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0