[#40498] autoload SYMBOL, XX.rb — keiju@... (Keiju ISHITSUKA)
けいじゅ@いしつかです.
8 messages
2005/01/08
[#40501] getopt — keiju@... (Keiju ISHITSUKA)
けいじゅ@いしつかです.
6 messages
2005/01/08
[#40519] What is singletonclass.superclass ? — sheepman <sheepman@...>
こんにちは、sheepman です。
6 messages
2005/01/11
[#40523] Re: アクセス情報の取得について — yuushi44@...
酒匂様、神戸様
4 messages
2005/01/12
[#40546] Net::IMAPの中のinlenって何ですか? — 内木場 美次 <uchikoba@...>
はじめまして。Rubyを始めて2ヶ月ちょっとの
6 messages
2005/01/20
[#40551] Net::IMAPで既に存在するディレクトリが削除できない — 内木場 美次 <uchikoba@...>
お疲れ様です。内木場です。
13 messages
2005/01/21
[#40571] dupとfrozen — Chikara Takamatsu <c_takamatu@...>
始めまして。高松と申します。
5 messages
2005/01/25
[#40580] enum 定数する場合のイディオム — Hiroshi Takagi <gollum@...>
高木@関西のネットワーク屋%Ruby novice monk です。
12 messages
2005/01/27
[#40581] Re: enum 定数する場合のイディオム
— "U.Nakamura" <usa@...>
2005/01/27
こんにちは、なかむら(う)です。
[ruby-list:40568] Re: リファレンスのFileUtils.rmの記述に誤り?
From:
sheepman <sheepman@...>
Date:
2005-01-23 14:23:06 UTC
List:
ruby-list #40568
こんばんは、sheepman です。
追加です。 FileUtils.chown_R の定義の引数も間違っているようです。
Index: fileutils.rb
===================================================================
RCS file: /src/ruby/lib/fileutils.rb,v
retrieving revision 1.51
diff -u -r1.51 fileutils.rb
--- fileutils.rb 1 Jan 2005 08:59:48 -0000 1.51
+++ fileutils.rb 23 Jan 2005 14:19:04 -0000
@@ -321,7 +321,7 @@
# Options: noop verbose
#
# Same as
- # #ln_s(src, dest, :force)
+ # #ln_s(src, dest, :force => true)
#
def ln_sf(src, dest, options = {})
fu_check_options options, :noop, :verbose
@@ -370,7 +370,7 @@
#
# # Examples of copying several files to target directory.
# FileUtils.cp_r %w(mail.rb field.rb debug/), site_ruby + '/tmail'
- # FileUtils.cp_r Dir.glob('*.rb'), '/home/aamine/lib/ruby', :noop, :verbose
+ # FileUtils.cp_r Dir.glob('*.rb'), '/home/aamine/lib/ruby', { :noop => true, :verbose => true}
#
# # If you want to copy all contents of a directory instead of the
# # directory itself, c.f. src/x -> dest/x, src/y -> dest/y,
@@ -651,7 +651,7 @@
# Options: noop verbose
#
# Same as
- # #rm(list, :force)
+ # #rm(list, :force => true)
#
def rm_f(list, options = {})
fu_check_options options, :noop, :verbose
@@ -861,7 +861,7 @@
# FileUtils.chown_R 'www', 'www', '/var/www/htdocs'
# FileUtils.chown_R 'cvs', 'cvs', '/var/cvs', :verbose => true
#
- def chown_R(mode, list, options = {})
+ def chown_R(user, group, list, options = {})
fu_check_options options, :noop, :verbose
list = fu_list(list)
fu_output_message sprintf('chown -R %s%s',
--
sheepman / TAMURA Takashi
sheepman@tcn.zaq.ne.jp http://sheepman.parfait.ne.jp/