立石です。

以下fj.lang.rubyのニュースと同じものですが
メーリングリストの方にも流します。

私(04月12日18時):
ttate>>j8197602 / ed.noda.sut.ac.jpさん(04月12日16時):
ttate>>j8197602>>File.stat(pathname)のpathnameの型はなんでしょうか?
ttate>>j8197602>>ドキュメントだけからはわかりませんでした。
ttate>>j8197602>>Stringを渡すと、File.stat(filename)が呼ばれるようです。
ttate>>
ttate>>file.cをみてみると
ttate>>
ttate>>static VALUE
ttate>>file_s_stat(obj, fname)
ttate>>    VALUE obj, fname;
ttate>>{
ttate>>    struct stat st;
ttate>>
ttate>>    Check_SafeStr(fname);
ttate>>    if (stat(RSTRING(fname)->ptr, &st) == -1) {
ttate>>        rb_sys_fail(RSTRING(fname)->ptr);
ttate>>    }
ttate>>    return stat_new(&st);
ttate>>}
ttate>>
ttate>>となっていて、さらに
ttate>>
ttate>>rb_define_singleton_method(cFile,"stat",file_s_stat,1);
ttate>>
ttate>>となっています。
ttate>>たしかに2要素の配列が返ることがないのですがこれはドキュメント
ttate>>の間違いなのか、rubyに付け忘れたのでしょうか?
----------------------------------------------
Name	Takaaki Tateishi
E-Mail 	ttate / jaist.ac.jp
URL	http://www.pluto.dti.ne.jp/~tateishi/
Org	School of Information Science
	Japan Advanced Institute of Science and Technology (JAIST)