class I18n::Backend::Transliterator::ProcTransliterator
A transliterator which accepts a Proc as its transliteration rule.
def initialize(rule)
def initialize(rule) @rule = rule end
def transliterate(string, replacement = nil)
def transliterate(string, replacement = nil) @rule.call(string) end