> > - File .open(dir, "r") .fsync .close if File .method_defined?("fsync")
> > + File .open(dir, "r") {|f| f .sync} if File .method_defined?("fsync")
>
> close メソッドが無いという主旨のエラーだったと思います。
> fsync メソッドは IO クラスで用意されていますが、
> 戻り値が File (あるいは IO) オブジェクトではない (*1) ので
> エラーになると私自身は理解しています。
>
> (*1) http://www.ruby-lang.org/ja/man/html/IO.html#fsync
ああ,なるほど.了解です.取り込んでおきます.
--
nom