module StringExt
Constants
- ACCENTS
- CASES
- UNACCENT_REPLACEMENTS
- VERSION
Public Instance Methods
downcase(string)
click to toggle source
# File lib/string_ext.rb, line 45 def downcase(string) string.tr(CASES[:upcase], CASES[:downcase]).downcase end
unaccented(string)
click to toggle source
# File lib/string_ext.rb, line 49 def unaccented(string) string.tr(UNACCENT_REPLACEMENTS[:accented], UNACCENT_REPLACEMENTS[:unaccented]) end
upcase(string)
click to toggle source
# File lib/string_ext.rb, line 41 def upcase(string) string.tr(CASES[:downcase], CASES[:upcase]).upcase end