A transliterator which accepts a Hash of characters as its translation rule.
# File lib/active_support/vendor/i18n-0.4.1/i18n/backend/transliterator.rb, line 77 def transliterate(string, replacement = nil) string.gsub(/[^\x00-\x7f]/) do |char| approximations[char] || replacement || DEFAULT_REPLACEMENT_CHAR end end
Generated with the Darkfish Rdoc Generator 2.