to_io

ARGF.to_io â IO
Instance Public methods

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>>
doc_ruby_on_rails
2015-03-30 13:43:06
Comments
Leave a Comment

Please login to continue.