Class: Tempfile::Closer
Overview
:nodoc:
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(tmpfile) ⇒ Closer
constructor
A new instance of Closer.
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 |