# File lib/asciidoctor/path_resolver.rb, line 287
  def join_path segments, root = nil
    if root
      %(#{root}#{segments * SLASH})
    else
      segments * SLASH
    end
  end