ActionsLike0
Feature #4970
closedFileUtils refactored
Description
I've been working with FileUtils a good bit, and concluded it could use some refactoring to make the code clearer and easier to work with. Here is the pull request:
https://github.com/ruby/ruby/pull/30
Essentially, I have removed the method definition loops that occur at the end of the script and replaced them with a simple call (define_command
) made for each command as it is defined. This allowed me to use extend self
all the way through, rather than having to use module_function
in FileUtils and extend self
in the Verbose, NoWrite and DryRun "submodules".
Files
ActionsLike0
This fixes mingw test errors in TestDir_M17N.
[ruby-core:42728] [Feature #4970]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e