method
open
v1_9_3_125 -
Show latest stable
- Class:
File
open(*args)public
With no associated block, File.open is a synonym for File.new. If the optional code block is given, it will be passed the opened file as an argument, and the File object will automatically be closed when the block terminates. In this instance, File.open returns the value of the block.