Skip to content

Instantly share code, notes, and snippets.

@DeTeam
Created March 1, 2012 18:56
Show Gist options
  • Save DeTeam/1952199 to your computer and use it in GitHub Desktop.
Save DeTeam/1952199 to your computer and use it in GitHub Desktop.
tmp = Tempfile.new("out")
tmp << "things"
tmp.close
puts File.read(tmp.path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment