diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-04 22:00:31 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-04 22:00:31 +0000 |
commit | 91edcb053b3dd0a86ad7cec0a652d084d6e7dd46 (patch) | |
tree | 3ebfb81d7fdc03904604b2c7148180d7c6b02cec /lib/ftools.rb | |
parent | 4d2d744487d6f2ca97d034c7b7d5c2a4836fc5db (diff) |
Merge RDoc changes from HEAD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/ftools.rb')
-rw-r--r-- | lib/ftools.rb | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/lib/ftools.rb b/lib/ftools.rb index a99c7e713f..5f082331fb 100644 --- a/lib/ftools.rb +++ b/lib/ftools.rb @@ -11,25 +11,22 @@ # # == Description # -# +ftools+ adds several (class, not instance) methods to the File class, for copying, moving, -# deleting, installing, and comparing files, as well as creating a directory path. See the -# File class for details. +# ftools adds several (class, not instance) methods to the File class, for +# copying, moving, deleting, installing, and comparing files, as well as +# creating a directory path. See the File class for details. # -# +fileutils+ contains all or nearly all the same functionality and more, and is a recommended -# option over +ftools+. -# - - +# FileUtils contains all or nearly all the same functionality and more, and +# is a recommended option over ftools # # When you # # require 'ftools' # -# then the File class aquires some utility methods for copying, moving, and deleting files, and -# more. +# then the File class aquires some utility methods for copying, moving, and +# deleting files, and more. # -# See the method descriptions below, and consider using +fileutils+ as it is more -# comprehensive. +# See the method descriptions below, and consider using FileUtils as it is +# more comprehensive. # class File end @@ -96,8 +93,8 @@ class << File # # Moves a file +from+ to +to+ using #syscopy. If +to+ is a directory, - # copies from +from+ to <tt>to/from</tt>. If +verbose+ is true, <tt>from -> to</tt> - # is printed. + # copies from +from+ to <tt>to/from</tt>. If +verbose+ is true, <tt>from -> + # to</tt> is printed. # def move(from, to, verbose = false) to = catname(from, to) @@ -127,7 +124,7 @@ class << File alias mv move # - # Returns +true+ iff the contents of files +from+ and +to+ are + # Returns +true+ if and only if the contents of files +from+ and +to+ are # identical. If +verbose+ is +true+, <tt>from <=> to</tt> is printed. # def compare(from, to, verbose = false) |