Object
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.
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.
# File lib/webgen/languages.rb, line 20 20: def initialize(codes, description) 21: @codes = codes 22: @description = description 23: end
The two letter code.
# File lib/webgen/languages.rb, line 26 26: def code2chars 27: @codes[2] 28: end
The three letter code.
# File lib/webgen/languages.rb, line 31 31: def code3chars 32: @codes[0] 33: end
The alternative three letter code.
# File lib/webgen/languages.rb, line 36 36: def code3chars_alternative 37: @codes[1] 38: end
The textual representation of the language.
# File lib/webgen/languages.rb, line 41 41: def to_s 42: code2chars || code3chars 43: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.