Sha256: bc0d6da8f39cc97401f622d13baf48d4e38c75df3dc763b9e8fffc209dcb400f
Contents?: true
Size: 374 Bytes
Versions: 26
Compression:
Stored size: 374 Bytes
Contents
require "pathname" module Metanorma module Output module Utils class << self 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 end end end end
Version data entries
26 entries across 26 versions & 2 rubygems