From 2c6e46896a0542943f353aa1d9a44c54b136fc5a Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 22 Sep 2008 09:01:22 +0000 Subject: [PATCH] * lib/tempfile.rb (Tempfile#open): should return a value from the block (if given). [ruby-core:18394] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/tempfile.rb | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 57081a4a30..a129059be7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 22 17:39:25 2008 Yukihiro Matsumoto + + * 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 * include/ruby/encoding.h (enum): ISO C forbids comma at end of diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 5eb294e390..7765026b47 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