Project

General

Profile

ActionsLike0

Feature #4970

closed

FileUtils refactored

Added by trans (Thomas Sawyer) over 13 years ago. Updated over 12 years ago.

Status:
Closed
Assignee:
-
Target version:
[ruby-core:37761]

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

noname (500 Bytes) noname Anonymous, 02/16/2012 03:23 AM

Related issues 1 (0 open1 closed)

Related to Ruby - Bug #7958: include FileUtils::Verbose gives NoMethodError when installing files with a different modeCloseddrbrain (Eric Hodel)02/26/2013Actions

Added by h.shirosaki (Hiroshi Shirosaki) about 13 years ago

Revision 5cfba33a

  • lib/fileutils.rb: revert a line modified accidentally at r34669.
    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

ActionsLike0

Also available in: Atom PDF