# File lib/mp3info.rb, line 162 def self.hastag1?(filename_or_io) if filename_or_io.is_a?(StringIO) io = filename_or_io io.rewind else io = File.new(filename_or_io, "rb") end hastag1 = false begin io.seek(-TAG1_SIZE, File::SEEK_END) hastag1 = io.read(3) == "TAG" ensure io.close if io.is_a?(File) end hastag1 end