Class: Bogo::EphemeralFile

Inherits:
Tempfile
  • Object
show all
Defined in:
lib/bogo/ephemeral_file.rb

Overview

Tempfile that will destroy itself when closed

Instance Method Summary collapse

Instance Method Details

#closeObject

Override to remove file after close



9
10
11
12
# File 'lib/bogo/ephemeral_file.rb', line 9

def close
  super
  delete
end