[前][次][番号順一覧][スレッド一覧]

ruby-changes:41898

From: nobu <ko1@a...>
Date: Mon, 29 Feb 2016 17:35:41 +0900 (JST)
Subject: [ruby-changes:41898] nobu:r53972 (trunk): fileutils.rb: reduce public

nobu	2016-02-29 17:36:29 +0900 (Mon, 29 Feb 2016)

  New Revision: 53972

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53972

  Log:
    fileutils.rb: reduce public
    
    * lib/fileutils.rb (Verbose, NoWrite, DryRun): make extended
      methods public by each one calls.

  Modified files:
    trunk/lib/fileutils.rb
Index: lib/fileutils.rb
===================================================================
--- lib/fileutils.rb	(revision 53971)
+++ lib/fileutils.rb	(revision 53972)
@@ -1700,9 +1700,7 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L1700
     end
     extend self
     class << self
-      ::FileUtils::METHODS.each do |m|
-        public m
-      end
+      public(*::FileUtils::METHODS)
     end
   end
 
@@ -1726,9 +1724,7 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L1724
     end
     extend self
     class << self
-      ::FileUtils::METHODS.each do |m|
-        public m
-      end
+      public(*::FileUtils::METHODS)
     end
   end
 
@@ -1753,9 +1749,7 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L1749
     end
     extend self
     class << self
-      ::FileUtils::METHODS.each do |m|
-        public m
-      end
+      public(*::FileUtils::METHODS)
     end
   end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]