summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-14 17:20:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-14 17:20:57 +0900
commitb01118f29c6cd4d74b0f7a9c1976c9b242528677 (patch)
tree7af7635435da145dad006a54dd632e611408b6ff /dir.c
parent99355122753c4f2ac002fb55e0b31924e0e1cee4 (diff)
[DOC] Describe Dir.home
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dir.c b/dir.c
index 21b1acada3..63235eea9a 100644
--- a/dir.c
+++ b/dir.c
@@ -3478,6 +3478,9 @@ file_s_fnmatch(int argc, VALUE *argv, VALUE obj)
* call-seq:
* Dir.home(user_name = nil) -> dirpath
*
+ * Retruns the home directory path of the user specified with +user_name+
+ * if it is not +nil+, or the current login user:
+ *
* Dir.home # => "/home/me"
* Dir.home('root') # => "/root"
*