ARGF.file รข IO or File object
Instance Public methods
Returns the current file as an IO
or File
object.
#<IO:<STDIN>> is returned when the current file is STDIN.
For example:
$ echo "foo" > foo $ echo "bar" > bar $ ruby argf.rb foo bar ARGF.file #=> #<File:foo> ARGF.read(5) #=> "foo\nb" ARGF.file #=> #<File:bar>
Please login to continue.