Method: I18n::Inflector::InflectionData#has_default_token?

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

#has_default_token?(kind) ⇒ Boolean

Tests if a kind has a default token assigned.

Parameters:

  • kind (Symbol)

    the identifier of a kind

Returns:

  • (Boolean)

    true if there is a default token of the given kind

[View source]

135
136
137
# File 'lib/i18n-inflector/inflection_data.rb', line 135

def has_default_token?(kind)
  @defaults.has_key?(kind)
end