module Metanorma::Output::Utils
Public Class Methods
file_path(url_path)
click to toggle source
# File lib/metanorma/output/utils.rb, line 7 def file_path(url_path) file_url = url_path file_url = "file://#{url_path}" if Pathname.new(file_url).absolute? %r{^file://}.match?(file_url) or file_url = "file://#{Dir.pwd}/#{url_path}" file_url end