From becafe1efb7bf8bf5a324a6005b24e133c0f69a8 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Tue, 10 May 2022 14:13:26 -0700 Subject: [ruby/fileutils] Enhanced RDoc for FileUtils https://github.com/ruby/fileutils/commit/c38fd02372 --- lib/fileutils.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/fileutils.rb') 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: # -- cgit v1.2.1