Class Locale::Info::Language
In: lib/locale/info/language.rb
Parent: Object

This class contains all the of the ISO information for the ISO 639-3 languages. This class is immutable once constructed.

Methods

Attributes

name  [R] 
scope  [R] 
three_code  [R] 
two_code  [R] 
type  [R] 

Public Class methods

Constructs a new Language instance.

  • code The 2 or 3 digit ISO 639-3 language code.
  • scope A single character that defines the ISO scope of the language - (I)ndividual, (M)acrolanguage, or (S)pecial.
  • type A single character that defines the ISO type of the language - (A)ncient, (C)onstructed, (E)xtinct, (H)istorical, (L)iving, or (S)pecial.
  • name The name of the language.

Public Instance methods

Returns true if the language is an ancient language according to the ISO 639-3 data.

Returns true if the language is a constructed language according to the ISO 639-3 data.

Returns true if the language is an extinct language according to the ISO 639-3 data.

Returns true if the language is an historical language according to the ISO 639-3 data.

Returns true if the language is an individual language according to the ISO 639-3 data.

Returns this object is valid as ISO 639 data.

Returns true if the language is a living language according to the ISO 639-3 data.

Returns true if the language is a macro language according to the ISO 639-3 data.

Returns true if the language is a special language according to the ISO 639-3 data.

Returns true if the language is a special type language according to the ISO 639-3 data.

Returns the two or three code.

[Validate]