autoclose?()
Returns true if the underlying file descriptor of ios will be closed automatically at its finalization, otherwise false.
static VALUE rb_io_autoclose_p(VALUE io) { rb_io_t *fptr = RFILE(io)->fptr; rb_io_check_closed(fptr); return (fptr->mode & FMODE_PREP) ? Qfalse : Qtrue; }