Project

General

Profile

Bug #1694 » tempfile-open.patch

no6v (Nobuhiro IMAI), 06/26/2009 10:16 PM

View differences:

lib/tempfile.rb (working copy)
#
# 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.
# terminates. The call returns the value of the block.
def open(*args)
tempfile = new(*args)
    (1-1/1)