summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/.document1
-rw-r--r--lib/tmpdir.rb3
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