class Envjs::TempFile

Public Class Methods

new(pattern, suffix = nil) click to toggle source
# File lib/envjs/tempfile.rb, line 7
def initialize pattern, suffix = nil
  super(pattern)


  if suffix
    new_path = path + "." + suffix
    File.link path, new_path
    File.unlink path
    # blah ... implementation specific ...
    @data[0] = @tmpname = new_path
  end
end

Public Instance Methods

getAbsolutePath() click to toggle source
# File lib/envjs/tempfile.rb, line 20
def getAbsolutePath
  path
end