class Asciidoctor::PathResolver

def posixify path

returns a String path with any backslashes replaced with forward slashes

path - the String path to normalize

Public: Normalize path by converting any backslashes to forward slashes
def posixify path
  if path
    @file_separator == BACKSLASH && (path.include? BACKSLASH) ? (path.tr BACKSLASH, SLASH) : path
  else
    ''
  end
end