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 |
# 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? file_url = "file://#{Dir.pwd}/#{url_path}" unless %r{^file://} =~ file_url file_url end |