instance method add

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18 Private

Signature

add(hash)

Add transliteration rules to the approximations hash.

Parameters

hash req
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/transliterator.rb, line 91
          def add(hash)
            hash.keys.each {|key| hash[key.to_s] = hash.delete(key).to_s}
            approximations.merge! hash
          end

Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/transliterator.rb line 91 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::Backend::Transliterator::HashTransliterator

Type at least 2 characters to search.

↑↓ navigate · open · esc close