Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
StringIO#closed_read?
() -> bool
closed_read? → true or false
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_closed_read(VALUE self)
{
StringIO(self);
if (READABLE(self)) return Qfalse;
return Qtrue;
}
Returns true if self is closed for reading, false otherwise.