mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Describe Dir.home
This commit is contained in:
parent
9935512275
commit
b01118f29c
1 changed files with 3 additions and 0 deletions
3
dir.c
3
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"
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue