Module: Metanorma::Output::Utils
- Defined in:
- lib/metanorma/output/utils.rb
Class Method Summary collapse
Class Method Details
.file_path(url_path) ⇒ Object
7 8 9 10 11 12 13 |
# 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 |