# File lib/ogginfo.rb, line 100 def close if tag != @original_tag path = File.join(Dir.tmpdir, "ruby-ogginfo_#{$$}.ogg") tempfile = File.new(path, "wb") File.open(@filename, "rb") do | input | replace_tags(input, tempfile, tag) end tempfile.close FileUtils.mv(path, @filename) end end