Sha256: 58b62d497540cd1ac88bc74743dc38b6132823028cd45c43b7b5b6d99cff83f3
Contents?: true
Size: 527 Bytes
Versions: 4
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true require 'ostruct' class RTesseract class Configuration < OpenStruct def merge(options) RTesseract::Configuration.new(to_h.merge(options)) end def command @table[:command] 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
4 entries across 4 versions & 1 rubygems