Method: I18n::Inflector::API_Strict#delete_database
- Defined in:
- lib/i18n-inflector/api_strict.rb
permalink #delete_database(locale)
Note:
It detaches the database from I18n::Inflector::API_Strict instance. Other objects referring to it directly may still use it.
This method returns an undefined value.
Deletes a strict inflections database for the specified locale.
103 104 105 106 107 108 |
# File 'lib/i18n-inflector/api_strict.rb', line 103 def delete_database(locale) locale = prep_locale(locale) return nil if @idb[locale].nil? @inflected_locales_cache.clear @idb[locale] = nil end |