each_filename

each_filename() Instance Public methods Iterates over each component of the path. Pathname.new("/usr/bin/ruby").each_filename {|filename| ... } # yields "usr", "bin", and "ruby". Returns an Enumerator if no block was given. enum = Pathname.new("/usr/bin/ruby").each_filename # ... do stuff ... enum.each { |e| ... } # yields "usr", "bin", and "ruby".

each_line

pathname.each_line {|line| ... }pathname.each_line(sep=$/ [, open_args]) {|line| block } â nilpathname.each_line(limit [, open_args]) {|line| block } â nilpathname.each_line(sep, limit [, open_args]) {|line| block } â nilpathname.each_line(...) â an_enumerator Instance Public methods Iterates over each line in the file and yields a String object for each.

entries

entries() Instance Public methods Return the entries (files and subdirectories) in the directory, each as a Pathname object. The results contains just the names in the directory, without any trailing slashes or recursive look-up. pp Pathname.new('/usr/local').entries #=> [#<Pathname:share>, # #<Pathname:lib>, # #<Pathname:..>, # #<Pathname:include>, # #<Pathname:etc>, # #<Pathname:bin>, # #<Pathname:man>, # #<Path

eql?

eql?(p1) Instance Public methods Compare this pathname with other. The comparison is string-based. Be aware that two different paths (foo.txt and ./foo.txt) can refer to the same file.

executable?

executable?() Instance Public methods See FileTest#executable?.

executable_real?

executable_real?() Instance Public methods See FileTest#executable_real?.

exist?

exist?() Instance Public methods See FileTest#exist?.

expand_path

expand_path(p1 = v1) Instance Public methods Returns the absolute path for the file. See File.expand_path.

extname

extname() Instance Public methods Returns the file's extension. See File.extname.

file?

file?() Instance Public methods See FileTest#file?.