[DOC] Describe Dir.home

This commit is contained in:
Nobuyoshi Nakada 2023-11-14 17:20:57 +09:00
parent 9935512275
commit b01118f29c
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465

3
dir.c
View file

@ -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"
*