Class: AnyStyle::Normalizer::Quotes
- Inherits:
-
AnyStyle::Normalizer
- Object
- AnyStyle::Normalizer
- AnyStyle::Normalizer::Quotes
- Defined in:
- lib/anystyle/normalizer/quotes.rb
Constant Summary collapse
- QUOTES =
/^[«‹»›„‚“‟‘‛”’"❛❜❟❝❞⹂〝〞〟\[]|[«‹»›„‚“‟‘‛”’"❛❜❟❝❞⹂〝〞〟\]]$/
Instance Attribute Summary
Attributes inherited from AnyStyle::Normalizer
Instance Method Summary collapse
Methods inherited from AnyStyle::Normalizer
#append, #detect_language, #detect_scripts, #doi_extract, #each_value, #initialize, #keys_for, #map_values, #name, #skip?
Constructor Details
This class inherits a constructor from AnyStyle::Normalizer
Instance Method Details
#normalize(item, **opts) ⇒ Object
7 8 9 10 11 |
# File 'lib/anystyle/normalizer/quotes.rb', line 7 def normalize(item, **opts) each_value(item) do |_, value| value.gsub! QUOTES, '' end end |