Flowdock
method

close

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: ARGF
close() public

Closes the current file and skips to the next in the stream. Trying to close a file that has already been closed causes an IOError to be raised.

For example:

$ ruby argf.rb foo bar

ARGF.filename  #=> "foo"
ARGF.close
ARGF.filename  #=> "bar"
ARGF.close
ARGF.close     #=> closed stream (IOError)
Show source
Register or log in to add new notes.