CrystalAV::Engine
Inherits CrystalAV::CHandler < Reference < Object
Engine wraps up lower level ClamAV calls in an object. This class manages those details to create a simplified interface. Instances of this class are expected to be long lived, since loading and compiling an engine is expensive (6 seconds on this machine).
Calling Engine.run ensures that the AV Engine resources are freed when virus scanning operations are completed.
Class methods
load
Sourceload
Sourcerun
SourceInstance methods
close
Sourcescan(filename)
Source