Method: H2P.tmp_path

Defined in:
lib/h2p.rb

.tmp_path(ext) ⇒ Object



10
11
12
13
14
# File 'lib/h2p.rb', line 10

def self.tmp_path(ext)
  stamp = Time.now.to_f
  @counter ||= 0
  File.join(Dir.tmpdir, "h2p-#{stamp}-#{@counter += 1}.#{ext}")
end