# File lib/zip/zip.rb, line 1762definitialize(binstr = nil)
@uid = 0@gid = 0binstrandmerge(binstr)
end
Public Instance Methods
==(other)click to toggle source
# File lib/zip/zip.rb, line 1779def==(other)
@uid==other.uid&&@gid==other.gidend
merge(binstr)click to toggle source
# File lib/zip/zip.rb, line 1769defmerge(binstr)
binstr==""andreturnsize, content = initial_parse(binstr)
# size: 0 for central direcotry. 4 for local headerreturnif(!size||size==0)
uid, gid = content.unpack("vv")
@uid||=uid@gid||=gidend
pack_for_c_dir()click to toggle source
# File lib/zip/zip.rb, line 1788defpack_for_c_dir""end
pack_for_local()click to toggle source
# File lib/zip/zip.rb, line 1784defpack_for_local
[@uid, @gid].pack("vv")
end