pipe?() Instance Public methods See FileTest#pipe?.
pathname.read([length [, offset]]) â stringpathname.read([length [, offset]], open_args) â string Instance Public methods Returns all data from the file, or the first N bytes if specified. See IO.read.
readable?() Instance Public methods See FileTest#readable?.
readable_real?() Instance Public methods See FileTest#readable_real?.
pathname.readlines(sep=$/ [, open_args]) â arraypathname.readlines(limit [, open_args]) â arraypathname.readlines(sep, limit [, open_args]) â array Instance Public methods Returns all the lines from the file. See IO.readlines.
readlink() Instance Public methods Read symbolic link. See File.readlink.
realdirpath(p1 = v1) Instance Public methods Returns the real (absolute) pathname of self in the actual filesystem. Does not contain symlinks or useless dots, .. and .. The last component of the real pathname can be nonexistent.
realpath(p1 = v1) Instance Public methods Returns the real (absolute) pathname for self in the actual filesystem. Does not contain symlinks or useless dots, .. and .. All components of the pathname must exist when this method is called.
relative?() Instance Public methods The opposite of #absolute? It returns false if the pathname begins with a slash. p = Pathname.new('/im/sure') p.relative? #=> false p = Pathname.new('not/so/sure') p.relative? #=> true
relative_path_from(base_directory) Instance Public methods Returns a relative path from the given base_directory to the receiver. If self is absolute, then base_directory must be absolute too. If self is relative, then base_directory must be relative too. This method doesn't access the filesystem. It assumes no symlinks. ArgumentError is raised when it cannot find a relative path.
Page 788 of 11844