module IsoDoc::Generic::Utils

Public Instance Methods

baselocation(loc) click to toggle source
# File lib/isodoc/generic/utils.rb, line 12
def baselocation(loc)
  return nil if loc.nil?
  return "" if loc.empty?
  return loc
  f = defined?(self.class::_file) ? (self.class::_file || __FILE__) :
    __FILE__
  File.expand_path(File.join(
    File.dirname(f), "..", "..", "..", loc))
end
configuration() click to toggle source
# File lib/isodoc/generic/utils.rb, line 4
def configuration
  Metanorma::Generic.configuration
end
fileloc(loc) click to toggle source
# File lib/isodoc/generic/utils.rb, line 8
def fileloc(loc)
  File.join(File.dirname(__FILE__), loc)
end