From: Shugo Maeda Date: 2001-04-09T11:54:36+09:00 Subject: [ruby-dev:12803] File::Stat.new 前田です。 $ ruby -e 'p File::Stat.new.mtime' -e:1:in `mtime': wrong argument type File::Stat (expected Data) (TypeError) from -e:1 というのはnewをundefするか、 --- file.c 2001/03/28 08:43:24 1.53 +++ file.c 2001/04/09 02:51:40 @@ -2350,6 +2350,7 @@ rb_define_global_function("test", rb_f_test, -1); rb_cStat = rb_define_class_under(rb_cFile, "Stat", rb_cObject); + rb_define_singleton_method(rb_cStat, "new", rb_file_s_stat, 1); rb_include_module(rb_cStat, rb_mComparable); とした方がよいのではないでしょうか。 -- 前田 修吾