Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > pathnameライブラリ > Pathnameクラス > opendir
opendir(&block)
Dir.open(self.to_s, &block) と同じです。
[SEE_ALSO] Dir.open