names=each_filename
visibility=public
kind=defined

--- each_filename {|v| ... } -> nil
self のパス名要素毎にブロックを実行します。

    require 'pathname'

    Pathname.new("/foo/../bar").each_filename {|v| p v}

    # => "foo"
         ".."
         "bar"

