Sha256: 77b4c5bedff097fae86f202a238fdb24ed3bec1e3b5b5a3d064f7a53bb169ad8
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
require 'clam_chowder/backend/clamd' require 'clam_chowder/backend/stub' module ClamChowder module Backend class << self def add(name, klass) @backends ||= {} @backends[name] = klass end def lookup(name) @backends[name] end end add(:clamd, ::ClamChowder::Backend::Clamd) add(:stub, ::ClamChowder::Backend::Stub) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clam_chowder-0.0.2 | lib/clam_chowder/backend.rb |
clam_chowder-0.0.1 | lib/clam_chowder/backend.rb |