Project

General

Profile

Actions

Bug #10102

closed

[PATCH] dir.c: [DOC] Document that Dir.exists? is deprecated

Added by mcfiredrill (Tony Miller) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
Target version:
-
ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
[ruby-core:64135]

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0