Class: Tempfile::Closer

Inherits:
Object show all
Defined in:
lib/tempfile.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(tmpfile) ⇒ Closer

Returns a new instance of Closer.



299
300
301
# File 'lib/tempfile.rb', line 299

def initialize(tmpfile)
  @tmpfile = tmpfile
end

Instance Method Details

#call(*args) ⇒ Object



303
304
305
# File 'lib/tempfile.rb', line 303

def call(*args)
  @tmpfile.close
end