Sha256: 3adc147b8365109210639a5ff04fc547dad71bfb17f270c681748fb2fd224f6e

Contents?: true

Size: 373 Bytes

Versions: 12

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

require 'recog/matcher'
require 'recog/formatter'
require 'recog/match_reporter'

module Recog
  module MatcherFactory
    def self.build(options)
      formatter = Formatter.new(options, $stdout)
      reporter  = MatchReporter.new(options, formatter)
      Matcher.new(options.fingerprints, reporter, options.multi_match)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
recog-3.1.13 lib/recog/matcher_factory.rb
recog-3.1.12 lib/recog/matcher_factory.rb
recog-3.1.11 lib/recog/matcher_factory.rb
recog-3.1.10 lib/recog/matcher_factory.rb
recog-3.1.9 lib/recog/matcher_factory.rb
recog-3.1.8 lib/recog/matcher_factory.rb
recog-3.1.7 lib/recog/matcher_factory.rb
recog-3.1.6 lib/recog/matcher_factory.rb
recog-3.1.5 lib/recog/matcher_factory.rb
recog-3.1.4 lib/recog/matcher_factory.rb
recog-3.1.3 lib/recog/matcher_factory.rb
recog-3.1.2 lib/recog/matcher_factory.rb