Sha256: d08adb3a736477a50eee5eb56ca57a3b34fdc91b642ed4f7d145fdbf14d54ed1

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 Bytes

Contents

module Ddr
  module Antivirus
    module Adapters

      def self.get_adapter 
        require_relative "adapters/#{Ddr::Antivirus.scanner_adapter}_scanner_adapter"
        adapter_name = "#{Ddr::Antivirus.scanner_adapter.to_s.capitalize}ScannerAdapter"
        klass = self.const_get(adapter_name.to_sym, false)
        klass.new
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ddr-antivirus-1.3.3 lib/ddr/antivirus/adapters.rb
ddr-antivirus-1.3.2 lib/ddr/antivirus/adapters.rb
ddr-antivirus-1.3.1 lib/ddr/antivirus/adapters.rb
ddr-antivirus-1.3.0 lib/ddr/antivirus/adapters.rb