Created
August 26, 2020 18:57
-
-
Save kstevens715/224663a3d784261cf3d4da4b91c0ddf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tempfile' | |
t = Tempfile.new | |
t.write('data') | |
t.close # comment out to see difference | |
if File.open(t.path).read == 'data' | |
puts 'Tempfile was complete' | |
else | |
puts 'Tempfile missing data' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment