lib/stringex/localization/converter.rb in stringex-2.5.2 vs lib/stringex/localization/converter.rb in stringex-2.6.0

- old
+ new

@@ -57,12 +57,16 @@ conversions.each do |conversion| send conversion end end - protected + protected + def unreadable_control_characters + string.gsub! expressions.unreadable_control_characters, '' + end + def abbreviations string.gsub! expressions.abbreviation do |x| x.gsub '.', '' end end @@ -105,11 +109,11 @@ expressions.vulgar_fractions.each do |key, expression| string.gsub! expression, translate(key, :vulgar_fractions) end end - private + private def expressions ConversionExpressions end @@ -120,6 +124,6 @@ def translate(key, scope = :characters) Localization.translate scope, key end end end -end \ No newline at end of file +end