summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-22 09:01:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-22 09:01:22 +0000
commit2c6e46896a0542943f353aa1d9a44c54b136fc5a (patch)
tree07183561ebb86e97ae8a3da409ed9c33b7cc4e75 /lib/tempfile.rb
parent260c0e6a2fd3abd90e825034b736e4719c1e8621 (diff)
* 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
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 5eb294e..7765026 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