Class: Tempfile::Closer

Inherits:
Object
  • 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.



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

def initialize(tmpfile)
  @tmpfile = tmpfile
end

Instance Method Details

#call(*args) ⇒ Object



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

def call(*args)
  @tmpfile.close
end