diff options
author | BurdetteLamar <burdettelamar@yahoo.com> | 2022-05-10 14:13:26 -0700 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-05-11 23:00:04 +0900 |
commit | becafe1efb7bf8bf5a324a6005b24e133c0f69a8 (patch) | |
tree | 45bf51e5e9e156fee4376229dcc0ea77e38d3709 /lib/fileutils.rb | |
parent | dde9db64e08916ddc2bcb4c64de8f53a3def9e87 (diff) | |
download | ruby-becafe1efb7bf8bf5a324a6005b24e133c0f69a8.tar.gz |
[ruby/fileutils] Enhanced RDoc for FileUtils
https://github.com/ruby/fileutils/commit/c38fd02372
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r-- | lib/fileutils.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 7167eb3068..c987909ffb 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -169,7 +169,7 @@ module FileUtils # # Returns +true+ if the file at path +new+ - # is newer than all the files at paths in array +old_list+.; + # is newer than all the files at paths in array +old_list+; # +false+ otherwise: # # FileUtils.uptodate?('Rakefile', ['Gemfile', 'README.md']) # => true @@ -195,7 +195,8 @@ module FileUtils private_module_function :remove_trailing_slash # - # Creates directories at the paths in the given +list+ (an array of strings); + # Creates directories at the paths in the given +list+ + # (an array of strings or a single string); # returns +list+. # # With no keyword arguments, creates a directory at each +path+ in +list+ @@ -203,6 +204,7 @@ module FileUtils # see {Dir.mkdir}[https://docs.ruby-lang.org/en/master/Dir.html#method-c-mkdir]: # # FileUtils.mkdir(%w[tmp0 tmp1]) # => ["tmp0", "tmp1"] + # FileUtils.mkdir('tmp4') # => ["tmp4"] # # Keyword arguments: # |