class Metanorma::Generic::Configuration

def absolute_path(value, root_path)

def absolute_path(value, root_path)
  case value
  when Hash then absolute_path1(value, root_path)
  when Array then absolute_path1_array(value, root_path)
  when String
    if !value.empty? && !Pathname.new(value).absolute?
      Pathname.new(File.join(root_path, value)).cleanpath.to_s
    else value
    end
  else value
  end
end