Module: RTesseract::Base
Instance Method Summary collapse
Instance Method Details
#temp_file(ext = '') ⇒ Object
6 7 8 9 10 |
# File 'lib/rtesseract/base.rb', line 6 def temp_file(ext = '') @rand_file ||= "rtesseract_#{SecureRandom.uuid}" Pathname.new(Dir.tmpdir).join("#{@rand_file}#{ext}").to_s end |