method

open

v1_8_7_72 - Show latest stable - Class: Tempfile
open(*args)
public

If no block is given, this is a synonym for new().

If a block is given, it will be passed tempfile as an argument, and the tempfile will automatically be closed when the block terminates. In this case, open() returns nil.