Parent

Class Index [+]

Quicksearch

I18n::Backend::Transliterator::ProcTransliterator

A transliterator which accepts a Proc as its transliteration rule.

Public Class Methods

new(rule) click to toggle source
    # File lib/i18n/backend/transliterator.rb, line 29
29:         def initialize(rule)
30:           @rule = rule
31:         end

Public Instance Methods

transliterate(string, replacement = nil) click to toggle source
    # File lib/i18n/backend/transliterator.rb, line 33
33:         def transliterate(string, replacement = nil)
34:           @rule.call(string)
35:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.