mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
13dadf3f26
commit
6b3e5bb061
1 changed files with 3 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue