Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

ARGF#closed?

ARGF.closed? → true or false

Returns true if the current file has been closed; false otherwise. Use ARGF.close to actually close the current file.

See also #close #each #binmode? #each_byte also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0