Seeks through the tar file until it finds the entry with
name and yields it. Rewinds the tar file to the beginning when
the block terminates.
# File lib/rubygems/package/tar_reader.rb, line 106
def seek(name) # :yields: entry
found = find do |entry|
entry.full_name == name
end
return unless found
return yield found
ensure
rewind
end