Method: I18n::Inflector::API_Strict#kind
- Defined in:
- lib/i18n-inflector/api_strict.rb
permalink #kind(token, kind) ⇒ Symbol? #kind(token, kind, locale) ⇒ Symbol?
Gets a kind of the given token
(which may be an alias) belonging to a strict kind.
365 366 367 368 |
# File 'lib/i18n-inflector/api_strict.rb', line 365 def kind(token, kind=nil, locale=nil) return nil if (token.nil? || kind.nil? || token.to_s.empty? || kind.to_s.empty?) data_safe(locale).get_kind(token.to_sym, kind.to_sym) end |