Method: I18n::Inflector::InflectionData_Strict#has_token?

Defined in:
lib/i18n-inflector/inflection_data_strict.rb

#has_token?(token, kind) ⇒ Boolean

Tests if the given token (or alias) of the given strict kind is present.

Parameters:

  • token (Symbol)

    the identifier of a token

  • kind (Symbol)

    the identifier of a kind

Returns:

  • (Boolean)

    true if the given token (which may be an alias) exists and if kind of the given kind

[View source]

118
119
120
# File 'lib/i18n-inflector/inflection_data_strict.rb', line 118

def has_token?(token, kind)
 @tokens[kind].has_key?(token)
end