Method: StringIO#closed?

Defined in:
ext/stringio/stringio.c

#closed?Boolean

Returns true if self is closed for both reading and writing, false otherwise.

Returns:

  • (Boolean)


557
558
559
560
561
562
563
# File 'ext/stringio/stringio.c', line 557

static VALUE
strio_closed(VALUE self)
{
    StringIO(self);
    if (!CLOSED(self)) return Qfalse;
    return Qtrue;
}