Module: Cocina::Models::Mapping::Normalizers::Base

Included in:
ModsNormalizer
Defined in:
lib/cocina/models/mapping/normalizers/base.rb

Overview

Shared methods available to normalizer class instances

Instance Method Summary collapse

Instance Method Details

#regenerate_ng_xml(xml) ⇒ Object



9
10
11
# File 'lib/cocina/models/mapping/normalizers/base.rb', line 9

def regenerate_ng_xml(xml)
  @ng_xml = Nokogiri::XML(xml) { |config| config.default_xml.noblanks }
end