diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-23 23:39:01 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-23 23:39:01 +0000 |
commit | 2d5d04d85f8e9c9a8ec866bae9fdb23beca41f1e (patch) | |
tree | b1785e22634b64238a9f35cddfa9db25b0042516 /lib/fileutils.rb | |
parent | faffd18540ed172002040979f2d375762932a388 (diff) | |
download | ruby-2d5d04d85f8e9c9a8ec866bae9fdb23beca41f1e.tar.gz ruby-2d5d04d85f8e9c9a8ec866bae9fdb23beca41f1e.tar.xz ruby-2d5d04d85f8e9c9a8ec866bae9fdb23beca41f1e.zip |
* lib/fileutils.rb: fix visibility of FileUtils::NoWrite, Verbose, DryRun (backported from trunk, rev 1.66). [ruby-core:05954]
* test/fileutils/test_nowrite.rb: test it.
* test/fileutils/test_dryrun.rb: new file.
* test/fileutils/test_verbose.rb: new file.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r-- | lib/fileutils.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 8bfaf8bd1..320c49ce9 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -1443,6 +1443,8 @@ module FileUtils end private_module_function :fu_output_message + METHODS = singleton_methods() - ['private_module_function'] + # # Returns an Array of method names which have any options. # @@ -1505,9 +1507,15 @@ module FileUtils def #{name}(*args) super(*fu_update_option(args, :verbose => true)) end + private :#{name} EOS end extend self + class << self + ::FileUtils::METHODS.each do |m| + public m + end + end end # @@ -1524,9 +1532,15 @@ module FileUtils def #{name}(*args) super(*fu_update_option(args, :noop => true)) end + private :#{name} EOS end extend self + class << self + ::FileUtils::METHODS.each do |m| + public m + end + end end # @@ -1544,9 +1558,15 @@ module FileUtils def #{name}(*args) super(*fu_update_option(args, :noop => true, :verbose => true)) end + private :#{name} EOS end extend self + class << self + ::FileUtils::METHODS.each do |m| + public m + end + end end end |