From 4ce3e118e776646b07eaba827b3bdf4c4f5a32d6 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 11 Aug 2014 07:17:22 +0000 Subject: dir.c: Dir.exists? is deprecated * dir.c (rb_dir_exists_p): [DOC] Document that Dir.exists? is deprecated. [ruby-core:64135] [Bug #10102] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 176c5f5b01..e99adedaa9 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) { -- cgit v1.2.3