SEPARATOR_PATTERN | = | ( if File::ALT_SEPARATOR |
Predicate method for testing whether a path is absolute. It returns true if the pathname begins with a slash.
List File.split, but preserves the file separators.
FileTest.chop_basename('/usr/lib') #=> ['/usr/', 'lib'] FileTest.chop_basename('/') #=> nil
Returns Array of `[pre-basename, basename]` or `nil`.
This method is here simply to support the relative? and absolute? methods.