From f7ab018fb56811e9a181593276602a114ba789bb Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 15 Dec 2005 03:41:13 +0000 Subject: * lib/tmpdir.rb: merged RDoc patch from Eric Hodel . [ruby-core:06894] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/.document | 1 + lib/tmpdir.rb | 3 +++ 2 files changed, 4 insertions(+) (limited to 'lib') 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 -- cgit