class Fingerprint::SparseRecordSet

This record set dynamically computes data from the disk as required.

Public Class Methods

new(scanner) click to toggle source
Calls superclass method Fingerprint::RecordSet::new
# File lib/fingerprint/record.rb, line 269
def initialize(scanner)
        super()
        
        @scanner = scanner
end

Public Instance Methods

lookup(path) click to toggle source
# File lib/fingerprint/record.rb, line 275
def lookup(path)
        if @paths.key?(path)
                return @paths[path]
        else
                @paths[path] = @scanner.scan_path(path)
        end
end