Module: RTesseract::Base
Instance Method Summary collapse
Instance Method Details
#remove_tmp_file(absolute_file_path) ⇒ Object
13 14 15 |
# File 'lib/rtesseract/base.rb', line 13 def remove_tmp_file(absolute_file_path) File.delete(absolute_file_path) if File.file?(absolute_file_path) end |
#temp_file_path ⇒ Object
9 10 11 |
# File 'lib/rtesseract/base.rb', line 9 def temp_file_path Pathname.new(Dir.tmpdir).join("rtesseract_#{SecureRandom.uuid}").to_s end |