class Webgen::Language
Describes a human language which is uniquely identfied by a three letter code and, optionally, by an alternative three letter or a two letter code.
Attributes
codes[R]
An array containing the language codes for the language.
description[R]
The english description of the language.
Public Class Methods
new(codes, description)
Create a new language. codes
has to be an array containing three strings: the three letter code, the alternative three letter code and the two letter code. If one is not available for the language, it has to be nil
.
Public Instance Methods
code2chars()
The two letter code.
code3chars()
The three letter code.
code3chars_alternative()
The alternative three letter code.
to_s()
The textual representation of the language.
Also aliased as: to_str