From 6b3e5bb0616f96f7d10096df0b50e73056956443 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 29 Feb 2016 08:36:29 +0000 Subject: [PATCH] fileutils.rb: reduce public * lib/fileutils.rb (Verbose, NoWrite, DryRun): make extended methods public by each one calls. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/fileutils.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 01b38ecda3..dc781a3876 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -1700,9 +1700,7 @@ module FileUtils end extend self class << self - ::FileUtils::METHODS.each do |m| - public m - end + public(*::FileUtils::METHODS) end end @@ -1726,9 +1724,7 @@ module FileUtils end extend self class << self - ::FileUtils::METHODS.each do |m| - public m - end + public(*::FileUtils::METHODS) end end @@ -1753,9 +1749,7 @@ module FileUtils end extend self class << self - ::FileUtils::METHODS.each do |m| - public m - end + public(*::FileUtils::METHODS) end end