summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 11:39:05 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 11:39:05 +0000
commitb3b6698e2f05ddf186e71153f81b76098222a6b0 (patch)
tree326af10c35fdfd62996ded123e901b9f80f9c4be /lib/tempfile.rb
parent4fbc270cd5116dcfc0dc8677c5c0937e20addcf9 (diff)
* 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
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
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)