From b3b6698e2f05ddf186e71153f81b76098222a6b0 Mon Sep 17 00:00:00 2001 From: yugui Date: Mon, 13 Jul 2009 11:39:05 +0000 Subject: [PATCH] * lib/tempfile (Tempfile.open): rdoc. patch by Nobuhiro IMAI. #1694 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tempfile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 46803b20f2..a00208cd7c 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -190,7 +190,7 @@ class Tempfile < DelegateClass(File) # # If a block is given, it will be passed tempfile as an argument, # and the tempfile will automatically be closed when the block - # terminates. In this case, open() returns nil. + # terminates. The call returns the value of the block. def open(*args) tempfile = new(*args)