Question : ruby temporary files
Answered by : kiril-klein
require "tempfile"
# Creates a file and returns the file object.
file = Tempfile.new ""
file << "Hello, World!"
file.close
Source : https://softwareengineering.stackexchange.com/questions/314796/should-temporary-files-be-saved-to-tmp-or-the-current-working-directory | Last Update : Sat, 26 Feb 22