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