Class: Dir
- Inherits:
-
Object
- Object
- Dir
- Defined in:
- lib/gnuplotrb/external_classes/dir.rb
Overview
Utility methods for GnuplotRB.
Class Method Summary collapse
-
.gnuplot_tmpname(name) ⇒ Object
Temporary file name.
Class Method Details
.gnuplot_tmpname(name) ⇒ Object
Returns temporary file name.
5 6 7 8 |
# File 'lib/gnuplotrb/external_classes/dir.rb', line 5 def self.gnuplot_tmpname(name) t = Time.now.strftime('%Y%m%d') "#{Dir.tmpdir}/gnuplotrb-#{name}-#{t}-#{$PID}-#{rand(0x100000000).to_s(36)}" end |