Method: I18n::Inflector::InflectionData_Strict#has_alias?

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

#has_alias?(alias_name, kind) ⇒ Boolean

Tests if the given alias of the given strict kind is really an alias.

Parameters:

  • alias_name (Symbol)

    the identifier of an alias

  • kind (Symbol)

    the identifier of a kind

Returns:

  • (Boolean)

    true if the given alias is really an alias being a kind of the given kind, false otherwise

[View source]

147
148
149
# File 'lib/i18n-inflector/inflection_data_strict.rb', line 147

def has_alias?(alias_name, kind)
  not @tokens[kind][alias_name][:target].nil?
end