Method: I18n::Inflector::API_Strict#has_kind?
- Defined in:
- lib/i18n-inflector/api_strict.rb
permalink #has_kind?(kind) ⇒ Boolean #has_kind?(kind, locale) ⇒ Boolean
Tests if a strict kind exists.
221 222 223 224 |
# File 'lib/i18n-inflector/api_strict.rb', line 221 def has_kind?(kind, locale=nil) return false if (kind.nil? || kind.to_s.empty?) data_safe(locale).has_kind?(kind.to_sym) end |