Class: Longleaf::SingleDigestProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/longleaf/candidates/single_digest_provider.rb

Overview

Provides a single set of digests for files

Instance Method Summary collapse

Constructor Details

#initialize(digests) ⇒ SingleDigestProvider

Returns a new instance of SingleDigestProvider.



4
5
6
# File 'lib/longleaf/candidates/single_digest_provider.rb', line 4

def initialize(digests)
  @digests = digests
end

Instance Method Details

#get_digests(file_path) ⇒ Object



8
9
10
11
# File 'lib/longleaf/candidates/single_digest_provider.rb', line 8

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