From b38b83706653bf07cf9c24e91d6bf691abe4b8a6 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Mon, 28 Feb 2011 04:16:16 +0000 Subject: [PATCH] * lib/tempfile.rb: Fix example file paths in docs for tempfile. https://github.com/ruby/ruby/pull/5 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/tempfile.rb | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6796616cc9cbcf..cc8da5bfd8cbe5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 28 13:02:15 2011 Danial Pearce + + * lib/tempfile.rb: Fix example file paths in docs for tempfile. + https://github.com/ruby/ruby/pull/5 + Mon Feb 28 12:56:18 2011 URABE Shyouhei * ext/openssl/ossl_cipher.c (ossl_cipher_init): typo fix. diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 54f00de2b080fe..8bdf086b33729f 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -96,11 +96,11 @@ class Tempfile < DelegateClass(File) # element, and end with the second element. For example: # # file = Tempfile.new('hello') - # file.path # => something like: "/tmp/foo2843-8392-92849382--0" + # file.path # => something like: "/tmp/hello2843-8392-92849382--0" # # # Use the Array form to enforce an extension in the filename: # file = Tempfile.new(['hello', '.jpg']) - # file.path # => something like: "/tmp/foo2843-8392-92849382--0.jpg" + # file.path # => something like: "/tmp/hello2843-8392-92849382--0.jpg" # # The temporary file will be placed in the directory as specified # by the +tmpdir+ parameter. By default, this is +Dir.tmpdir+. @@ -110,7 +110,7 @@ class Tempfile < DelegateClass(File) # come from environment variables (e.g. $TMPDIR). # # file = Tempfile.new('hello', '/home/aisaka') - # file.path # => something like: "/home/aisaka/foo2843-8392-92849382--0" + # file.path # => something like: "/home/aisaka/hello2843-8392-92849382--0" # # You can also pass an options hash. Under the hood, Tempfile creates # the temporary file using +File.open+. These options will be passed to