Am I crazy?

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

Fork and edit this post on Github.