Method: I18n::Inflector::InflectionData_Strict#has_kind?

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

#has_kind?(kind) ⇒ Boolean

Tests if a strict kind exists.

Parameters:

  • kind (Symbol)

    the identifier of a kind

Returns:

  • (Boolean)

    true if the given kind exists


126
127
128
# File 'lib/i18n-inflector/inflection_data_strict.rb', line 126

def has_kind?(kind)
  @tokens.has_key?(kind)
end