Sha256: fed5d6b2b9b808ebe78b11cd6d9904d3c7b294bd734b260af392801013200503

Contents?: true

Size: 460 Bytes

Versions: 3

Compression:

Stored size: 460 Bytes

Contents

# RTesseract
class RTesseract
  # Processor managment
  module Processor
    # Return the processor
    def self.choose_processor!(processor)
      processor =
      if RTesseract::Processor::MiniMagickProcessor.a_name?(processor.to_s)
        MiniMagickProcessor
      elsif RTesseract::Processor::NoneProcessor.a_name?(processor.to_s)
        NoneProcessor
      else
        RMagickProcessor
      end
      processor.setup
      processor
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rtesseract-2.2.0 lib/rtesseract/processor.rb
rtesseract-2.1.0 lib/rtesseract/processor.rb
rtesseract-2.0.1 lib/rtesseract/processor.rb