each_filename(# :yield: filename) public

Iterates over each component of the path.

Pathname.new("/usr/bin/ruby").each_filename {|filename| ... }
  # yields "usr", "bin", and "ruby".
Show source
Register or log in to add new notes.