Module: Metanorma::Plugin::Datastruct::PathResolver
- Included in:
- BaseStructuredTextPreprocessor, Content, SourceExtractor
- Defined in:
- lib/metanorma/plugin/datastruct/path_resolver.rb
Instance Method Summary collapse
Instance Method Details
#relative_file_path(document, file_path) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/metanorma/plugin/datastruct/path_resolver.rb', line 7 def relative_file_path(document, file_path) docfile_directory = File.dirname( document.attributes["docfile"] || ".", ) document .path_resolver .system_path(file_path, docfile_directory) end |