fork download
  1. require 'tempfile'
  2. f = Tempfile.new 'test'
  3. puts f.path
  4. f.write 'hello, world'
  5. f.rewind
  6. puts f.read
  7. f.close
  8. f.unlink
Success #stdin #stdout 0.04s 7716KB
stdin
Standard input is empty
stdout
/tmp/pYSklP/test20150214-16413-o4bg9f
hello, world