Method: Zip::Entry#==

Defined in:
lib/zip/entry.rb

#==(other) ⇒ Object



464
465
466
467
468
469
470
471
# File 'lib/zip/entry.rb', line 464

def ==(other)
  return false unless other.class == self.class
  # Compares contents of local entry and exposed fields
  keys_equal = %w(compression_method crc compressed_size size name extra filepath).all? do |k|
    other.__send__(k.to_sym) == self.__send__(k.to_sym)
  end
  keys_equal && self.time.dos_equals(other.time)
end