Sha256: ca0497f07207aa707c6dfd9cb109f894734dd59a8eff7a3adbeeafb18f8c6234
Contents?: true
Size: 489 Bytes
Versions: 3
Compression:
Stored size: 489 Bytes
Contents
require 'ostruct' class RTesseract class Configuration < OpenStruct def merge(options) RTesseract::Configuration.new(self.to_h.merge(options)) end end class << self def config @config ||= RTesseract::Configuration.new( command: 'tesseract', debug_file: '/dev/null' ) end def configure yield(config) if block_given? end def reset_config! @config = nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rtesseract-3.0.2 | lib/rtesseract/configuration.rb |
rtesseract-3.0.1 | lib/rtesseract/configuration.rb |
rtesseract-3.0.0 | lib/rtesseract/configuration.rb |