At Thu, 14 Jun 2001 01:35:03 +0900, matz wrote: > In message "[ruby-dev:13564] Dir::open(){}" > on 01/06/13, Keiju ISHITSUKA <keiju / ishitsuka.com> writes: > > |Dir::openですがイテレータとして用いたときの戻り値の仕様をFileと同じにし > |ません? > > 1.7ならそうなってますよ。 1.7 の doc/NEWS にも : ((<Dir>)).open Changed to return what the block returns when a block is given, just as ((<File>)).open does. (It always returned (({nil})) in 1.6 and prior) と書いてあります。(て、私は RWiki の日本語版を翻訳しただけですが) -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "Freeze this moment a little bit longer, make each impression a little bit stronger.. Experience slips away -- Time stand still"