==

==(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.

===

===(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.

absolute?

absolute?() Instance Public methods Predicate method for testing whether a path is absolute. It returns true if the pathname begins with a slash. p = Pathname.new('/im/sure') p.absolute? #=> true p = Pathname.new('not/so/sure') p.absolute? #=> false

ascend

ascend() Instance Public methods Iterates over and yields a new Pathname object for each element in the given path in ascending order. Pathname.new('/path/to/some/file.rb').ascend {|v| p v} #<Pathname:/path/to/some/file.rb> #<Pathname:/path/to/some> #<Pathname:/path/to> #<Pathname:/path> #<Pathname:/> Pathname.new('path/to/some/file.rb').ascend {|v| p v} #<Pathname:path/to/some/file.rb> #<Pathname:path/to/some> #<

atime

pathname.atime â time Instance Public methods Returns the last access time for the file. See File.atime.

basename

basename(p1 = v1) Instance Public methods Returns the last component of the path. See File.basename.

binread

pathname.binread([length [, offset]]) â string Instance Public methods Returns all the bytes from the file, or the first N if specified. See IO.binread.

blockdev?

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

chardev?

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

children

children(with_directory=true) Instance Public methods Returns the children of the directory (files and subdirectories, not recursive) as an array of Pathname objects. By default, the returned pathnames will have enough information to access the files. If you set with_directory to false, then the returned pathnames will contain the filename only. For example: pn = Pathname("/usr/lib/ruby/1.8") pn.children # -> [ Pathname:/usr/lib/ruby/1.8/English.rb, Pathname:/usr/