From 834620b105247e391b84ae2fb005221117b788b3 Mon Sep 17 00:00:00 2001 From: Tony Miller Date: Thu, 31 Jul 2014 15:11:41 +0900 Subject: [PATCH] dir.c: [DOC] Document that Dir.exists? is deprecated --- dir.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dir.c b/dir.c index 176c5f5..f49260c 100644 --- a/dir.c +++ b/dir.c @@ -2211,7 +2211,6 @@ dir_s_home(int argc, VALUE *argv, VALUE obj) /* * call-seq: * Dir.exist?(file_name) -> true or false - * Dir.exists?(file_name) -> true or false * * Returns true if the named file is a directory, * false otherwise. @@ -2223,6 +2222,12 @@ rb_file_directory_p() } #endif +/* + * call-seq: + * Dir.exists?(file_name) -> true or false + * + * Deprecated method. Don't use. + */ static VALUE rb_dir_exists_p(VALUE obj, VALUE fname) { -- 1.8.5.2 (Apple Git-48)