Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
ARGF#closed?
ARGF.closed? → true or false
io.c
View on GitHub ↗
static VALUE
argf_closed(VALUE argf)
{
next_argv();
ARGF_FORWARD(0, 0);
return rb_io_closed_p(ARGF.current_file);
}
Returns true if the current file has been closed; false otherwise. Use ARGF.close to actually close the current file.