Method: I18n::Inflector::API_Strict#each_token_true
- Defined in:
- lib/i18n-inflector/api_strict.rb
permalink #each_token_true(kind) ⇒ LazyHashEnumerator #each_token_true(kind, locale) ⇒ LazyHashEnumerator Also known as: each_true_token
Note:
It returns only true tokens, not aliases.
Iterates through inflection tokens belonging to a strict kind and their values.
498 499 500 501 |
# File 'lib/i18n-inflector/api_strict.rb', line 498 def each_token_true(kind=nil, locale=nil, &block) kind = kind.to_s.empty? ? nil : kind.to_sym data_safe(locale).each_true_token(kind, &block) end |