Method: I18n::Inflector::API_Strict#tokens_raw
- Defined in:
- lib/i18n-inflector/api_strict.rb
permalink #tokens_raw(kind) ⇒ Hash #tokens_raw(kind, locale) ⇒ Hash Also known as: raw_tokens
Note:
You may deduce whether the returned values are aliases or true tokens by testing if a value is a kind of Symbol or a String.
Gets available inflection tokens belonging to a strict kind and their values.
473 474 475 |
# File 'lib/i18n-inflector/api_strict.rb', line 473 def tokens_raw(kind=nil, locale=nil) each_token_raw(kind, locale).to_h end |