Sha256: 160fe06644880e5c79e68075c5fa584e786f39d0dfe53cc2666388ddfc34491a
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
require 'tempfile' class WickedPdfTempfile < Tempfile # ensures the Tempfile's filename always keeps its extension def initialize(filename, temp_dir = nil) temp_dir ||= Dir.tmpdir extension = File.extname(filename) basename = File.basename(filename, extension) super([basename, extension], temp_dir) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wicked_pdf-1.0.0 | lib/wicked_pdf/tempfile.rb |