ruby-changes:71795
From: BurdetteLamar <ko1@a...>
Date: Wed, 11 May 2022 23:00:18 +0900 (JST)
Subject: [ruby-changes:71795] becafe1efb (master): [ruby/fileutils] Enhanced RDoc for FileUtils
https://git.ruby-lang.org/ruby.git/commit/?id=becafe1efb From becafe1efb7bf8bf5a324a6005b24e133c0f69a8 Mon Sep 17 00:00:00 2001 From: BurdetteLamar <burdettelamar@y...> 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(-) 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 https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L169 # # 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 https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L195 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 https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L204 # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/