Sha256: f5c12a87b240914b8f0493dd832646800175a8fa30d89100324e0d011bffa0b3
Contents?: true
Size: 299 Bytes
Versions: 15
Compression:
Stored size: 299 Bytes
Contents
require 'tempfile' class WickedPdfTempfile < Tempfile # Replaces Tempfile's +make_tmpname+ with one that honors file extensions. def make_tmpname(basename, n) extension = File.extname(basename) sprintf("%s_%d_%d%s", File.basename(basename, extension), $$, n.to_i, extension) end end
Version data entries
15 entries across 15 versions & 2 rubygems