Sha256: 515ea0d00041b198851569b4558fbbed341849363203cf8475ec93c3c3cfe553

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

require 'open3'

class RTesseract
  module Text
    def self.run(source, errors, options)
      text = RTesseract::Command.new(source, 'stdout', errors, options).run
      text = text.gsub("\f", '') if text.is_a?(String)
      text
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtesseract-3.1.3 lib/rtesseract/text.rb