Class: Tempfile::Closer
- Inherits:
-
Object
- Object
- Tempfile::Closer
- Defined in:
- lib/tempfile.rb
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.
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 |