summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-18 21:02:36 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-18 21:02:36 +0000
commitebce1b4bd61c39030d93c01e7d080b8500be17ff (patch)
tree8430a253a045f5460b5bd5426239182e8a7bb697 /lib/tempfile.rb
parentd6581678cbeab9441cac49e5df41a1e0439df525 (diff)
* lib/tempfile.rb: Document Dir.mkdir and Dir.rmdir. Patch by Clinton
Nixon. [Ruby 1.9 - Bug #4728] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 8bdf086..fbbf576 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -326,9 +326,18 @@ class Tempfile < DelegateClass(File)
end
end
+ # :call-seq:
+ # mkdir(string, [integer]) -> 0
+ #
+ # Synonym for Dir.mkdir.
def mkdir(*args)
Dir.mkdir(*args)
end
+
+ # :call-seq:
+ # rmdir(string) -> 0
+ #
+ # Synonym for Dir.rmdir.
def rmdir(*args)
Dir.rmdir(*args)
end