Method: BugFix::Tempfile#close
- Defined in:
- lib/zip/tempfile_bugfixed.rb
#close(unlink_now = false) ⇒ Object
Closes the file. If the optional flag is true, unlinks the file after closing.
If you don’t explicitly unlink the temporary file, the removal will be delayed until the object is finalized.
90 91 92 93 94 95 96 |
# File 'lib/zip/tempfile_bugfixed.rb', line 90 def close(unlink_now=false) if unlink_now close! else _close end end |