filename

filename

ri

 ------------------------------------------------- Pathname#each_filename
      each_filename( {|s| ...}
 ------------------------------------------------------------------------
      Iterates over each component of the path.
 
        Pathname.new("/usr/bin/ruby").each_filename {|filename| ... }
          # yields "usr", "bin", and "ruby".
 

refe

 ARGF.filename Readline.filename_quote_characters
 Readline.filename_quote_characters=
 TMail::FilePort.filename