Method: AnyStyle::ParserCore#normalize

Defined in:
lib/anystyle/parser.rb

#normalize(hash, **opts) ⇒ Object



68
69
70
71
72
73
74
75
76
77
# File 'lib/anystyle/parser.rb', line 68

def normalize(hash, **opts)
  normalizers.each do |n|
    begin
      hash = n.normalize(hash, **opts) unless n.skip?
    rescue => e
      warn "Error in #{n.name} normalizer: #{e.message}"
    end
  end
  hash
end