method

skip

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: ARGF
skip() public

Sets the current file to the next file in ARGV. If there aren’t any more files it has no effect.

For example:

$ ruby argf.rb foo bar
ARGF.filename  #=> "foo"
ARGF.skip
ARGF.filename  #=> "bar"
Show source
Register or log in to add new notes.