Bug #10102
closed[PATCH] dir.c: [DOC] Document that Dir.exists? is deprecated
Description
I noticed Dir.exists? was undocumented, so I thought Dir.exists? should be marked as deprecated just like File.exists? is marked as deprecated. If its unneeded, feel free to ignore this patch.
Thanks for your guide zzak :D
http://documenting-ruby.org/step-by-step-guide.html
Files
Updated by shevegen (Robert A. Heiler) over 9 years ago
I think the reasoning given here makes sense and is consistent.
matz explained that the question that should be asked is "object, do you exist" (singular, specific to the object at hand) rather than the english sentence question "does this object exist / if object exists?"
Updated by mcfiredrill (Tony Miller) over 9 years ago
Robert A. Heiler wrote:
I think the reasoning given here makes sense and is consistent.
matz explained that the question that should be asked is "object, do you exist" (singular, specific to the object at hand) rather than the english sentence question "does this object exist / if object exists?"
Its already been deprecated, I'm just clearing up the documentation. File.exists? is marked as deprecated in the documentation in the exact same way.
Updated by nobu (Nobuyoshi Nakada) over 9 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r47134.
dir.c: Dir.exists? is deprecated
- dir.c (rb_dir_exists_p): [DOC] Document that Dir.exists? is
deprecated. [ruby-core:64135] [Bug #10102]