TIL: tempfile in ruby, use it for easy garbage collection afterwards
Today, I was working on a script at work where I ultimately needed to export a 2MB file and although this isn’t a large file, I know I will forget about getting rid of it so while searching around, I came across tempfile. Tempfile simply will be garbage collected