Class: Tempfile::FinalizerManager
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/tempfile.rb |
Class Method Summary
- .new(path) ⇒ FinalizerManager constructor
Instance Attribute Summary
- #unlinked rw
Instance Method Summary
Constructor Details
.new(path) ⇒ FinalizerManager
Instance Attribute Details
#unlinked (rw)
[ GitHub ]# File 'lib/tempfile.rb', line 371
attr_accessor :unlinked
Instance Method Details
#call(object_id)
[ GitHub ]#register(obj, file)
[ GitHub ]# File 'lib/tempfile.rb', line 380
def register(obj, file) ObjectSpace.undefine_finalizer(obj) ObjectSpace.define_finalizer(obj, self) @open_files[obj.object_id] = file end