Method: Runestone.normalize
- Defined in:
- lib/runestone.rb
.normalize(string) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/runestone.rb', line 18 def self.normalize(string) string = string.downcase string = string.unicode_normalize! string rescue Encoding::CompatibilityError string end |