class I18n::Locale::Tag
- I18n::Locale::Tag
- Reference
- Object
Overview
A locale tag.
This class allows to manipulate locale tags and locale tag parents.
Defined in:
i18n/locale/tag.crConstructors
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. -
#parent : self | Nil
Returns the direct parent tag or
nil
if none is available. -
#parents : Array(self)
Returns all the available parent tags for the considered locale tags.
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
Returns true
if this reference is the same as other. Invokes same?
.
Returns all the available parent tags for the considered locale tags.
An empty array is returned if the considered locale tags does not have any parents.
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.