Am I crazy?

written about about 1 year ago |
0 comments

A six-pack to anyone who can explain this behavior…


  require "tempfile" 
  t = Tempfile.new("blah")
  t << "test" 
  puts t.read
  =>
  t.flush
  puts t.read
  =>
  t.close; t.open
  puts t.read
  => test

Leave a comment...

formatting help...