diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-15 03:41:13 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-15 03:41:13 +0000 |
commit | f7ab018fb56811e9a181593276602a114ba789bb (patch) | |
tree | 705f58ad43d65406801bb1fd37bd6cea28b12640 /lib | |
parent | 4fefa583b3e8ae3a8b95cb309835933dcd0da4e2 (diff) | |
download | ruby-f7ab018fb56811e9a181593276602a114ba789bb.tar.gz ruby-f7ab018fb56811e9a181593276602a114ba789bb.tar.xz ruby-f7ab018fb56811e9a181593276602a114ba789bb.zip |
* lib/tmpdir.rb: merged RDoc patch from Eric Hodel <drbrain at
segment7.net>. [ruby-core:06894]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/.document | 1 | ||||
-rw-r--r-- | lib/tmpdir.rb | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/.document b/lib/.document index 14bb46dee..3978aa934 100644 --- a/lib/.document +++ b/lib/.document @@ -39,5 +39,6 @@ thread.rb thwait.rb time.rb timeout.rb +tmpdir.rb uri yaml.rb diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index bee99c41c..3042ed520 100644 --- a/lib/tmpdir.rb +++ b/lib/tmpdir.rb @@ -24,6 +24,9 @@ class Dir rescue LoadError end + ## + # Returns the operating system's temporary file path. + def Dir::tmpdir tmp = '.' if $SAFE > 0 |