# File lib/archive/support/zlib.rb, line 272
    def self.open(delegate, window_bits = nil)
      zr = new(delegate, window_bits)
      return zr unless block_given?

      begin
        yield(zr)
      ensure
        zr.close unless zr.closed?
      end
    end