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