Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
StringIO#closed?
closed? → true or false
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_closed(VALUE self)
{
StringIO(self);
if (!CLOSED(self)) return Qfalse;
return Qtrue;
}
Returns true if self is closed for both reading and writing, false otherwise.