instance method
StringIO#closed_write?
() -> bool
closed_write? → true or false
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_closed_write(VALUE self)
{
StringIO(self);
if (WRITABLE(self)) return Qfalse;
return Qtrue;
}
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?.