tempfile-open.patch

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

Download (496 Bytes)

lib/tempfile.rb (working copy)
190 190
    #
191 191
    # If a block is given, it will be passed tempfile as an argument,
192 192
    # and the tempfile will automatically be closed when the block
193
    # terminates.  In this case, open() returns nil.
193
    # terminates.  The call returns the value of the block.
194 194
    def open(*args)
195 195
      tempfile = new(*args)
196 196