lib/accent-buster/string_extension.rb in accent-buster-1.1.1 vs lib/accent-buster/string_extension.rb in accent-buster-2.0.0

- old
+ new

@@ -1,10 +1,11 @@ module AccentBuster::StringExtension + # @deprecated Use [Buster] or include [AccentBuster] to use #buster method refine String do - ACCENT_DOWNCASE = 'áéíóúâêîôûäëïöüãõñç' - NO_ACCENT_DOWNCASE = 'aeiouaeiouaeiouaonc' - ACCENT_UPCASE = 'ÁÉÍÓÚÂÊÎÔÛÄËÏÖÜÃÕÑÇ' - NO_ACCENT_UPCASE = 'AEIOUAEIOUAEIOUAONC' + ACCENT_DOWNCASE = "áéíóúâêîôûäëïöüãõñç" + NO_ACCENT_DOWNCASE = "aeiouaeiouaeiouaonc" + ACCENT_UPCASE = "ÁÉÍÓÚÂÊÎÔÛÄËÏÖÜÃÕÑÇ" + NO_ACCENT_UPCASE = "AEIOUAEIOUAEIOUAONC" # Convert diacritics chars to their non-diacritic equivalents. # # Works for latin languages only. #