module HtmlFromPdf::Helpers

Public Instance Methods

create_dir(dir_path) click to toggle source
# File lib/html_from_pdf/helpers.rb, line 8
def create_dir(dir_path)
  FileUtils.mkdir_p dir_path
end
default_file_path(format = :html) click to toggle source
# File lib/html_from_pdf/helpers.rb, line 3
def default_file_path(format = :html)
  file_name = "#{Time.now.strftime('%m_%d_%Y__%H_%M_%S')}.#{format}"
  File.join('/tmp/html_from_pdf', file_name)
end