Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > pathnameライブラリ > Pathnameクラス > each_child

instance method Pathname#each_child

each_child(with_directory = true) -> Enumerator
each_child(with_directory = true) {|pathname| ...} -> [Pathname]

self.children(with_directory).each と同じです。

[PARAM] with_directory:
偽を指定するとファイル名のみ返します。デフォルトは真です。

[SEE_ALSO] Pathname#children

class Pathname