Sha256: fb2d24567de0febf615a3bff306e3ee1ae2b40dc1aeb84a64617fff7f93bcd9d

Contents?: true

Size: 252 Bytes

Versions: 3

Compression:

Stored size: 252 Bytes

Contents

module Longleaf
  # Provides a single set of digests for files
  class SingleDigestProvider
    def initialize(digests)
      @digests = digests
    end

    def get_digests(file_path)
      return nil if @digests.nil?
      @digests
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
longleaf-1.1.1 lib/longleaf/candidates/single_digest_provider.rb
longleaf-1.1.0 lib/longleaf/candidates/single_digest_provider.rb
longleaf-1.0.0 lib/longleaf/candidates/single_digest_provider.rb