Class: Longleaf::SingleDigestProvider
- Inherits:
-
Object
- Object
- Longleaf::SingleDigestProvider
- Defined in:
- lib/longleaf/candidates/single_digest_provider.rb
Overview
Provides a single set of digests for files
Instance Method Summary collapse
- #get_digests(file_path) ⇒ Object
-
#initialize(digests) ⇒ SingleDigestProvider
constructor
A new instance of SingleDigestProvider.
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 |