Sha256: add05fbd91b7583cea1a4db9832bfb5d4f91435014a042b7601f2186daa483a1
Contents?: true
Size: 237 Bytes
Versions: 2
Compression:
Stored size: 237 Bytes
Contents
require 'tmpdir' require 'securerandom' class RTesseract module Base def temp_file(ext = '') @rand_file ||= "rtesseract_#{SecureRandom.uuid}" Pathname.new(Dir.tmpdir).join("#{@rand_file}#{ext}").to_s end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rtesseract-3.0.2 | lib/rtesseract/base.rb |
rtesseract-3.0.1 | lib/rtesseract/base.rb |