From 8885a8720d55bd881e7083adf38a21d73e095e4b Mon Sep 17 00:00:00 2001 From: aamine Date: Sun, 18 Sep 2005 21:38:40 +0000 Subject: [PATCH] * lib/fileutils.rb: method renaming: collect_methods -> collect_method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/fileutils.rb | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8f43e39b00..a59e092e7b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 19 06:38:03 2005 Minero Aoki + + * lib/fileutils.rb: method renaming: collect_methods -> + collect_method. + Mon Sep 19 05:58:59 2005 Minero Aoki * lib/fileutils.rb: use module_function instead of single extend. diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 3171886b0c..36d5f70c0d 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -1480,9 +1480,9 @@ module FileUtils # # Returns an Array of method names which have the option +opt+. # - # p FileUtils.collect_methods(:preserve) #=> ["cp", "cp_r", "copy", "install"] + # p FileUtils.collect_method(:preserve) #=> ["cp", "cp_r", "copy", "install"] # - def FileUtils.collect_methods(opt) + def FileUtils.collect_method(opt) OPT_TABLE.keys.select {|m| OPT_TABLE[m].include?(opt.to_s) } end @@ -1495,7 +1495,7 @@ module FileUtils include FileUtils @fileutils_output = $stderr @fileutils_label = '' - ::FileUtils.collect_methods('verbose').each do |name| + ::FileUtils.collect_method('verbose').each do |name| module_eval(<<-EOS, __FILE__, __LINE__ + 1) def #{name}(*args) super(*fu_update_option(args, :verbose => true)) @@ -1514,7 +1514,7 @@ module FileUtils include FileUtils @fileutils_output = $stderr @fileutils_label = '' - ::FileUtils.collect_methods('noop').each do |name| + ::FileUtils.collect_method('noop').each do |name| module_eval(<<-EOS, __FILE__, __LINE__ + 1) def #{name}(*args) super(*fu_update_option(args, :noop => true)) @@ -1534,7 +1534,7 @@ module FileUtils include FileUtils @fileutils_output = $stderr @fileutils_label = '' - ::FileUtils.collect_methods('noop').each do |name| + ::FileUtils.collect_method('noop').each do |name| module_eval(<<-EOS, __FILE__, __LINE__ + 1) def #{name}(*args) super(*fu_update_option(args, :noop => true, :verbose => true))