Sha256: 3ee817caef73c2d8f8e25e046c350213a31ffc421a1d6689fcf5e2940f2a0cfc
Contents?: true
Size: 288 Bytes
Versions: 1
Compression:
Stored size: 288 Bytes
Contents
# frozen_string_literal: true require 'tmpdir' require 'securerandom' require 'pathname' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtesseract-3.1.0 | lib/rtesseract/base.rb |