Sha256: 9aad62b26e8ad22af26c52db1c763c779c984cf53ad9a8b58961b26457c5f72d
Contents?: true
Size: 498 Bytes
Versions: 3
Compression:
Stored size: 498 Bytes
Contents
require_relative "scan_result" module Ddr::Antivirus # # @abstract Subclass and override {#scan} to implement a scanner adapter. # class ScannerAdapter # Scan a file path for viruses. # # @param path [String] file path to scan. # @return [Ddr::Antivirus::ScanResult] the result of the scan. def scan(path) raise NotImplementedError, "Adapters must implement the `scan' method." end private def logger Ddr::Antivirus.logger end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ddr-antivirus-3.0.0 | lib/ddr/antivirus/scanner_adapter.rb |
ddr-antivirus-3.0.0.rc1 | lib/ddr/antivirus/scanner_adapter.rb |
ddr-antivirus-2.2.0 | lib/ddr/antivirus/scanner_adapter.rb |