class EacRubyUtils::Fs::Temp::File
def initialize(*tempfile_args)
def initialize(*tempfile_args) file = Tempfile.new(*tempfile_args) path = file.path file.close file.unlink super(path) end
def remove
def remove if directory? rmtree elsif file? unlink end end
def remove!
def remove! remove raise "Tried to remove \"#{self}\", but it yet exists" if exist? end