summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/tempfile.rb9
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cd2078e8fc1..b4a3dd2b448 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu May 19 06:02:21 2011 Eric Hodel <drbrain@segment7.net>
+
+ * lib/tempfile.rb: Document Dir.mkdir and Dir.rmdir. Patch by Clinton
+ Nixon. [Ruby 1.9 - Bug #4728]
+
Thu May 19 05:57:52 2011 Eric Hodel <drbrain@segment7.net>
* encoding.c: Improve documentation for Encoding#default_external and
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 8bdf086b337..fbbf576b36e 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