diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-22 09:01:22 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-22 09:01:22 +0000 |
| commit | 26b7d5a6b039df520b7f7514d1ddbaeb4b82641d (patch) | |
| tree | 07183561ebb86e97ae8a3da409ed9c33b7cc4e75 | |
| parent | fd922458241c49e9000133a9279f6f5f2f7af853 (diff) | |
| download | ruby-26b7d5a6b039df520b7f7514d1ddbaeb4b82641d.tar.gz ruby-26b7d5a6b039df520b7f7514d1ddbaeb4b82641d.tar.xz ruby-26b7d5a6b039df520b7f7514d1ddbaeb4b82641d.zip | |
* lib/tempfile.rb (Tempfile#open): should return a value from the
block (if given). [ruby-core:18394]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/tempfile.rb | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Mon Sep 22 17:39:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/tempfile.rb (Tempfile#open): should return a value from the + block (if given). [ruby-core:18394] + Mon Sep 22 11:17:51 2008 URABE Shyouhei <shyouhei@ruby-lang.org> * include/ruby/encoding.h (enum): ISO C forbids comma at end of diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 5eb294e39..7765026b4 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -187,8 +187,6 @@ class Tempfile < DelegateClass(File) ensure tempfile.close end - - nil else tempfile end |
