CDLUC3/datacite-mapping

View on GitHub
lib/datacite/mapping/namespace_extensions.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'xml/mapping_extensions'

# TODO: port this to xml-mapping_extensions
module XML
  module MappingExtensions
    class Namespace
      def with_prefix(new_prefix)
        Namespace.new(uri: uri, prefix: new_prefix, schema_location: schema_location)
      end
    end
  end
end