Flowdock
method

to_io

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: ARGF
to_io() public

Returns an IO object representing the current file. This will be a File object unless the current file is a stream such as STDIN.

For example:

ARGF.to_io    #=> #<File:glark.txt>
ARGF.to_io    #=> #<IO:<STDIN>>
Show source
Register or log in to add new notes.