lib/zipr/archive.rb
# Description:
#   Loads the known checksums for this archive from the checksum file.
# Returns:
#   A hash of all known checksums for the archive.
Loads the known checksums for this archive from the checksum file.
Returns:
A hash of all known checksums for the archive.
Loads the known checksums for this archive from the checksum file . Returns : A hash of all known checksums for the archive .
def load_checksum_file
      @checksums = if ::File.exist?(@checksum_path) 
                     file_content = ::File.read(@checksum_path)
                     JSON.parse(file_content)
                   else
                     {}
                   end
    end
def load_checksum_file @checksums = if :: File . exist? ( @checksum_path ) file_content = :: File . read ( @checksum_path ) JSON . parse ( file_content ) else { } end end
Description:
Loads the known checksums for this archive from the checksum file.
Description : Loads the known checksums for this archive from the checksum file .
# Read the checksums file if it hasn't been read yet