Skip to content

Commit

Permalink
* lib/tempfile.rb: Fix example file paths in docs for tempfile.
Browse files Browse the repository at this point in the history
  ruby#5


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Feb 28, 2011
1 parent 1c4c00a commit b38b837
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Feb 28 13:02:15 2011 Danial Pearce <[email protected]>

* 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 <[email protected]>

* ext/openssl/ossl_cipher.c (ossl_cipher_init): typo fix.
Expand Down
6 changes: 3 additions & 3 deletions lib/tempfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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+.
Expand All @@ -110,7 +110,7 @@ class Tempfile < DelegateClass(File)
# come from environment variables (e.g. <tt>$TMPDIR</tt>).
#
# 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
Expand Down

0 comments on commit b38b837

Please sign in to comment.