class Asciidoctor::PathResolver

def join_path segments, root = nil

separator and prepending the root, if specified
returns a String path formed by joining the segments using the posix file

root - a String path root (optional, default: nil)
segments - a String Array of path segments

a relative path.
if specified, to construct an absolute path. Otherwise join the segments as
how to work with paths specified this way, regardless of OS). Use the root,
Public: Join the segments using the posix file separator (since Ruby knows
def join_path segments, root = nil
  root ? %(#{root}#{segments.join SLASH}) : (segments.join SLASH)
end