Module: ClamChowder
- Defined in:
- lib/clam_chowder.rb,
lib/clam_chowder/backend.rb,
lib/clam_chowder/scanner.rb,
lib/clam_chowder/version.rb,
lib/clam_chowder/response.rb,
lib/clam_chowder/backend/stub.rb,
lib/clam_chowder/backend/clamd.rb
Defined Under Namespace
Modules: Backend Classes: Response, ScanException, Scanner
Constant Summary collapse
- VERSION =
"0.0.2"
Class Attribute Summary collapse
-
.default_backend ⇒ Object
Returns the value of attribute default_backend.
Class Method Summary collapse
Class Attribute Details
.default_backend ⇒ Object
Returns the value of attribute default_backend.
7 8 9 |
# File 'lib/clam_chowder.rb', line 7 def default_backend @default_backend end |
Class Method Details
.infected_stream?(io) ⇒ Boolean
9 10 11 12 13 14 |
# File 'lib/clam_chowder.rb', line 9 def infected_stream?(io) response = Scanner.new(default_backend).scan_io(io) response.infected? rescue => e raise ScanException.new(e) end |