closed?()
Returns true if the current file has been closed; false otherwise. Use ARGF.close to actually close the current file.
static VALUE argf_closed(VALUE argf) { next_argv(); ARGF_FORWARD(0, 0); return rb_io_closed(ARGF.current_file); }