diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-23 19:14:16 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-23 19:14:16 +0000 |
| commit | 0c2bb38bda52d399afb792eee289b91a4e45b110 (patch) | |
| tree | 2d0de607276de9f51f7502cdff7c9052c5fdd983 /lib/tempfile.rb | |
| parent | ef667644a892ca9fefa756c18576d265ce2fac88 (diff) | |
| download | ruby-0c2bb38bda52d399afb792eee289b91a4e45b110.tar.gz ruby-0c2bb38bda52d399afb792eee289b91a4e45b110.tar.xz ruby-0c2bb38bda52d399afb792eee289b91a4e45b110.zip | |
* object.c (rb_mod_cvar_get): new method Module#class_variable_get.
* object.c (rb_mod_cvar_set): ditto (Module#class_variable_set).
* eval.c (rb_thread_atfork): 1.9 warns no more for thread
termination. [ruby-dev:23212]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tempfile.rb')
| -rw-r--r-- | lib/tempfile.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb index f5dc801b2..2169a20ec 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -77,7 +77,8 @@ class Tempfile < SimpleDelegator def _close # :nodoc: @tmpfile.close if @tmpfile @data[1] = @tmpfile = nil - end + @data = @tmpname = nil + end protected :_close # Closes the file. If the optional flag is true, unlinks the file |
