class AnyStyle::Normalizer::Unicode

Attributes

form[RW]

Public Class Methods

new(form: :nfkc) click to toggle source
Calls superclass method AnyStyle::Normalizer::new
   # File lib/anystyle/normalizer/unicode.rb
30 def initialize(form: :nfkc)
31   super()
32   @form = form
33 end

Public Instance Methods

normalize(item, **opts) click to toggle source
   # File lib/anystyle/normalizer/unicode.rb
35 def normalize(item, **opts)
36   map_values(item) do |_, value|
37     value.unicode_normalize(form)
38   end
39 end