Method: I18n::Inflector::API_Strict#token_description
- Defined in:
- lib/i18n-inflector/api_strict.rb
#token_description(token, kind) ⇒ String? #token_description(token, kind, locale) ⇒ String?
Note:
If the given token
is really an alias it returns the description of the true token that it points to.
Gets the description of the given inflection token belonging to a strict kind.
589 590 591 592 593 |
# File 'lib/i18n-inflector/api_strict.rb', line 589 def token_description(*args) token, kind, locale = tkl_args(args) return nil if (token.nil? || kind.nil?) data_safe(locale).get_description(token, kind) end |