locale 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. data/ChangeLog +6 -0
  2. data/Rakefile +82 -80
  3. data/lib/locale/driver/jruby.rb +4 -10
  4. data/lib/locale/driver/win32.rb +25 -6
  5. data/lib/locale/tag/irregular.rb +1 -1
  6. data/lib/locale/version.rb +1 -1
  7. data/test/test_driver_jruby.rb +43 -0
  8. data/test/test_driver_win32.rb +65 -0
  9. data/test/test_tag.rb +181 -120
  10. metadata +4 -76
  11. data/benchmark/benchmark.rb +0 -34
  12. data/benchmark/benchmark_2.0.1.txt +0 -7
  13. data/doc/classes/Locale.html +0 -1244
  14. data/doc/classes/Locale/Driver.html +0 -374
  15. data/doc/classes/Locale/Driver/CGI.html +0 -536
  16. data/doc/classes/Locale/Driver/Env.html +0 -439
  17. data/doc/classes/Locale/Driver/JRuby.html +0 -389
  18. data/doc/classes/Locale/Driver/Posix.html +0 -430
  19. data/doc/classes/Locale/Driver/Win32.html +0 -398
  20. data/doc/classes/Locale/Driver/Win32Table.html +0 -355
  21. data/doc/classes/Locale/Info.html +0 -585
  22. data/doc/classes/Locale/Info/Language.html +0 -763
  23. data/doc/classes/Locale/Info/Region.html +0 -470
  24. data/doc/classes/Locale/Tag.html +0 -433
  25. data/doc/classes/Locale/Tag/Cldr.html +0 -523
  26. data/doc/classes/Locale/Tag/Common.html +0 -624
  27. data/doc/classes/Locale/Tag/Irregular.html +0 -423
  28. data/doc/classes/Locale/Tag/Posix.html +0 -612
  29. data/doc/classes/Locale/Tag/Rfc.html +0 -581
  30. data/doc/classes/Locale/Tag/Simple.html +0 -721
  31. data/doc/classes/Locale/TagList.html +0 -826
  32. data/doc/classes/Locale/Util.html +0 -506
  33. data/doc/classes/Locale/Util/Memoizable.html +0 -355
  34. data/doc/created.rid +0 -1
  35. data/doc/files/ChangeLog.html +0 -537
  36. data/doc/files/README_rdoc.html +0 -565
  37. data/doc/files/lib/locale/driver/cgi_rb.html +0 -341
  38. data/doc/files/lib/locale/driver/env_rb.html +0 -353
  39. data/doc/files/lib/locale/driver/jruby_rb.html +0 -353
  40. data/doc/files/lib/locale/driver/posix_rb.html +0 -341
  41. data/doc/files/lib/locale/driver/win32_rb.html +0 -348
  42. data/doc/files/lib/locale/driver/win32_table_rb.html +0 -341
  43. data/doc/files/lib/locale/info/language_rb.html +0 -352
  44. data/doc/files/lib/locale/info/region_rb.html +0 -352
  45. data/doc/files/lib/locale/info_rb.html +0 -353
  46. data/doc/files/lib/locale/tag/cldr_rb.html +0 -348
  47. data/doc/files/lib/locale/tag/common_rb.html +0 -348
  48. data/doc/files/lib/locale/tag/irregular_rb.html +0 -348
  49. data/doc/files/lib/locale/tag/posix_rb.html +0 -341
  50. data/doc/files/lib/locale/tag/rfc_rb.html +0 -348
  51. data/doc/files/lib/locale/tag/simple_rb.html +0 -348
  52. data/doc/files/lib/locale/tag_rb.html +0 -378
  53. data/doc/files/lib/locale/taglist_rb.html +0 -348
  54. data/doc/files/lib/locale/util/memoizable_rb.html +0 -359
  55. data/doc/files/lib/locale/version_rb.html +0 -341
  56. data/doc/files/lib/locale_rb.html +0 -363
  57. data/doc/fr_class_index.html +0 -22
  58. data/doc/fr_file_index.html +0 -23
  59. data/doc/fr_method_index.html +0 -99
  60. data/doc/index.html +0 -1
  61. data/doc/rdoc-style.css +0 -320
  62. data/lib/locale/util/memoizable.rb.20090328 +0 -96
  63. data/lib/locale/util/memoizable.rb.old +0 -91
  64. data/replace.rb +0 -21
  65. data/test.rb +0 -28
  66. data/test/test.rb +0 -7
  67. data/test/tmp.txt +0 -20
  68. data/test2.rb +0 -14
  69. data/test3.rb +0 -12
@@ -1,763 +0,0 @@
1
- <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Locale::Info::Language</title><link type="text/css" href="../../.././rdoc-style.css" media="screen" rel="stylesheet"/><script type="text/javascript">
2
- // Allison template
3
- // Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
4
-
5
- var href_base = '../../.././rdoc-style.css'.replace(/(.*\/).*/, '$1'); // inline js is good for something
6
-
7
- function $(id) {
8
- if (document.getElementById)
9
- elem = document.getElementById(id);
10
- else if ( document.all )
11
- elem = eval("document.all." + id);
12
- else
13
- return false;
14
- return elem;
15
- }
16
-
17
- function toggle(id) {
18
- elem = $(id);
19
- elemStyle = elem.style;
20
- if (elemStyle.display == "block") {
21
- elemStyle.display = "none"
22
- } else {
23
- elemStyle.display = "block"
24
- }
25
- return true;
26
- }
27
-
28
- function toggleText(id) {
29
- elem = $(id)
30
- if (m = elem.innerHTML.match(/(Hide)(.*)/)) {
31
- elem.innerHTML = "Show" + m[2];
32
- } else if (m = elem.innerHTML.match(/(Show)(.*)/)) {
33
- elem.innerHTML = "Hide" + m[2];
34
- }
35
- return true;
36
- }
37
-
38
- function span(s, klass) {
39
- return '<span class="' + klass + '">' + s + '</span>';
40
- }
41
-
42
- function highlightSymbols() {
43
- pres = document.getElementsByTagName('pre');
44
- for(var i = 0; i < pres.length; i++) {
45
- pre = pres[i];
46
- spans = pre.getElementsByTagName('span');
47
- for(var k = 0; k < spans.length; k++) {
48
- span = spans[k];
49
- if (span.className.match(/ruby-identifier/)) {
50
- if (span.innerHTML.match(/^:/)) {
51
- span.className += " ruby-symbol";
52
- }
53
- }
54
- }
55
- }
56
- }
57
-
58
- function hasClass(obj) {
59
- var result = false;
60
- if (obj.getAttributeNode("class") != null) {
61
- result = obj.getAttributeNode("class").value;
62
- }
63
- return result;
64
- }
65
-
66
- function stripe() {
67
- var even = true;
68
- var color = "#e4ebed";
69
- var tables = document.getElementsByTagName('table');
70
- if (tables.length == 0) { return; }
71
- for (var h = 0; h < tables.length; h++) {
72
- var trs = tables[h].getElementsByTagName("tr");
73
- for (var i = 0; i < trs.length; i++) {
74
- var tds = trs[i].getElementsByTagName("td");
75
- for (var j = 0; j < tds.length; j++) {
76
- if (hasClass(tds[j]) != "first") {
77
- var mytd = tds[j];
78
- if (even) {
79
- mytd.style.backgroundColor = color;
80
- }
81
- }
82
- }
83
- even = ! even;
84
- }
85
- }
86
- }
87
-
88
- function ajaxGet(url) {
89
- url = (href_base + url).replace('/./', '/')
90
- var req = false;
91
-
92
- if (window.ActiveXObject) {
93
- try {
94
- // stupid hack because IE7 disables local Ajax with the native xmlhttprequest object
95
- // for security purposes. Yet ActiveX still works. Thanks, Microsoft. I hate you. Die.
96
- req = new ActiveXObject("MSXML2.XMLHTTP.3.0");
97
- } catch (e) {
98
- try {
99
- /* IE 6 and maybe 5, don't know, don't care */
100
- req = new ActiveXObject("Msxml2.XMLHTTP");
101
- } catch (e) {
102
- try {
103
- req = new ActiveXObject("Microsoft.XMLHTTP");
104
- } catch (e) {
105
- req = false;
106
- }
107
- }
108
- }
109
- }
110
-
111
- /* real browsers */
112
- if (!req && window.XMLHttpRequest) {
113
- try {
114
- req = new XMLHttpRequest();
115
- } catch (e) {
116
- req = false;
117
- }
118
- }
119
-
120
- if (req) {
121
- req.open('GET', url, false);
122
- req.send(null);
123
- return req.responseText;
124
- } else {
125
- return "Ajax error";
126
- }
127
- }
128
-
129
-
130
- function addEvent(elm, evType, fn, useCapture) {
131
- if (elm.addEventListener) {
132
- elm.addEventListener(evType, fn, useCapture);
133
- return true;
134
- } else if (elm.attachEvent) {
135
- var r = elm.attachEvent('on' + evType, fn);
136
- return r;
137
- } else {
138
- elm['on' + evType] = fn;
139
- }
140
- }
141
-
142
- function insertIndices() {
143
- pages = ["class", "file", "method"]
144
- for (x in pages) {
145
- $(pages[x]).innerHTML += ajaxGet('fr_' + pages[x] + '_index.html').replace(/(href=")/g, '$1' + href_base);
146
- }
147
- /* mouseoverify method links */
148
- links = $('method').getElementsByTagName('a');
149
- for (var x = 0; x < links.length; x++) {
150
- if (m = links[x].innerHTML.match(/(.*)\s\((.*)\)/)) {
151
- links[x].innerHTML = m[1] + '<br>';
152
- links[x].title = m[2];
153
- }
154
- }
155
- /* this is stupid */
156
- $('class').style.display = "block";
157
- $('file').style.display = "block";
158
-
159
- /* has to be here because IE7 does not guarantee the onLoad callback order */
160
- abbreviateIndicesInner(["class", "file"], 25, "a");
161
- /* same, linkTitle() depends on the class link list */
162
- linkTitle();
163
- }
164
-
165
- function abbreviateIndices() {
166
- var ids = ["defined_in", "child_of", "includes", "requires", "method", "methods"];
167
- abbreviateIndicesInner(ids, 25, 'a');
168
- abbreviateIndicesInner(ids, 25, 'span');
169
- }
170
-
171
- function abbreviateIndicesInner(indices, amount, tag) {
172
- for (var x = 0; x < indices.length; x++) {
173
- var the_index = $(indices[x]);
174
- if (the_index) {
175
- links = the_index.getElementsByTagName(tag);
176
- for (var y = 0; y < links.length; y++) {
177
- var link = links[y];
178
- if (link.getElementsByTagName('span').length == 0 && link.getElementsByTagName('a').length == 0) {
179
- // avoid nesting
180
- link.innerHTML = link.innerHTML.replace(/<br>|\n/gi, '');
181
- link.title = link.innerHTML;
182
- link.innerHTML = abbreviate(link.innerHTML, amount) + '<br>';
183
- }
184
- }
185
- }
186
- }
187
- }
188
-
189
- function linkTitle() {
190
-
191
- /* grab the correct title element from the index */
192
- var index_page = ajaxGet('index.html');
193
- title_text = index_page.match(/<title>(.*)<\/title>/m)[1];
194
- document.title = title_text + " - " + document.title;
195
- var p = $('header').getElementsByTagName('p')[0]
196
- if (p.innerHTML.match(/^\s*$/)) {
197
- p.innerHTML = title_text;
198
- } else {
199
- p.innerHTML = title_text + ": " + p.innerHTML;
200
- }
201
-
202
- /* set the link properly */
203
- title_link = index_page.match(/<a\s+href="(.*?)"/)[1];
204
- var element = $('title');
205
- var item_type = "";
206
- var item_name = "";
207
- if (m = element.innerHTML.match(/(Class:|Module:|File:)\s*(.*)/)) {
208
- item_type = m[1];
209
- item_name = m[2];
210
- } else {
211
- item_name = element.innerHTML;
212
- }
213
- element.innerHTML = '<a href="' + href_base + title_link + '">' + item_type + " " + abbreviate(item_name, 45) + '</a>';
214
- element.getElementsByTagName('a')[0].title = item_name
215
-
216
- /* breadcrumb navigation */
217
- items = item_name.split("::");
218
- items_new = item_name.split("::");
219
- file_links = $('class').getElementsByTagName('a');
220
- for (var x = 0; x < items.length - 1; x++ ){
221
- var item = items[x];
222
- link = ("/classes/" + items.slice(0,x).join("/") + "/" + item + ".html").replace('//', '/');
223
- regex = new RegExp(RegExp.escape(link) + '$');
224
- for (var y = 0; y < file_links.length; y++) {
225
- if (file_links[y].href.match(regex)) {
226
- items_new[x] = '<a href="' + href_base + link + '">' + item + '</a>';
227
- break;
228
- }
229
- }
230
- }
231
- $('item_name').innerHTML = item_type + ' ' + items_new.join(" :: ");
232
- }
233
-
234
- function abbreviate(s, size) {
235
- while (s.length > size) {
236
- var old_s = s;
237
- s = s.replace(/\s|\n/mg, '');
238
- s = s.replace(/([A-Z])[a-z]+/m, '$1');
239
- if (!s || old_s == s) {
240
- return "..." + s.substring(s.length - size, s.length);
241
- }
242
- }
243
- return s;
244
- }
245
-
246
- function disableSubmit(event) {
247
- var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
248
- if (keyCode == 13) {
249
- return false;
250
- } else {
251
- return true;
252
- }
253
- }
254
-
255
- function filterList(id, s, event) {
256
-
257
- /* some weak escaping */
258
- s = s.replace(/[^\w\d\.\_\-\/\:\=\[\]\?\!]/g, '');
259
- s = RegExp.escape(s);
260
-
261
- var show_all = false;
262
- if (s.match(/^\s*$/)) {
263
- show_all = true;
264
- }
265
-
266
- links = $(id).getElementsByTagName('a')
267
- regex = new RegExp(s, 'i');
268
-
269
- for (var x = 0; x < links.length; x++) {
270
- var link = links[x];
271
- if (show_all) {
272
- link.style.display = 'inline';
273
- } else {
274
- if (link.innerHTML.match(regex)) {
275
- link.style.display = 'inline';
276
- } else {
277
- link.style.display = 'none';
278
- }
279
- }
280
- }
281
- return true;
282
- }
283
-
284
- RegExp.escape = function(text) {
285
- if (!arguments.callee.sRE) {
286
- var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\'];
287
- arguments.callee.sRE = new RegExp(
288
- '(\\' + specials.join('|\\') + ')', 'g'
289
- );
290
- }
291
- return text.replace(arguments.callee.sRE, '\\$1');
292
- }
293
-
294
- function hacks() {
295
- // show the spacer if necessary,
296
- divs = document.getElementsByTagName('div');
297
- for(var x = 0; x < divs.length; x++) {
298
- if (divs[x].className && divs[x].className.match(/top/)) {
299
- document.getElementById('spacer').style.display = 'block';
300
- }
301
- }
302
- // remove extra colons from tables
303
- tds = document.getElementsByTagName('td');
304
- for(var x = 0; x < tds.length; x++) {
305
- str = tds[x].innerHTML
306
- if (str.charAt(str.length - 1) == ":") {
307
- tds[x].innerHTML = str.slice(0, str.length - 1)
308
- }
309
- }
310
- }
311
-
312
- addEvent(window, 'load', insertIndices, false);
313
- addEvent(window, 'load', abbreviateIndices, false);
314
- addEvent(window, 'load', stripe, false);
315
- addEvent(window, 'load', highlightSymbols, false);
316
- addEvent(window, 'load', hacks, false);
317
- </script></head><body><div id="container"><div class="curve" id="preheader_curve_0"></div><div class="curve" id="preheader_curve_1"></div><div class="curve" id="preheader_curve_2"></div><div class="curve" id="preheader_curve_3"></div><div class="curve" id="preheader_curve_4"></div><div class="curve" id="preheader_curve_5"></div><div id="header"><p>
318
- </p><span><h1 id="title">
319
- Class: Locale::Info::Language
320
- </h1></span></div><div class="clear"></div><div id="left">
321
- <div class="navigation darker top" id="child_of"><h3>Child of</h3><span>
322
-
323
- Object
324
- </span></div>
325
-
326
- <div class="navigation darker top" id="defined_in"><h3>Defined in</h3>
327
-
328
- <a href="../../../files/lib/locale/info/language_rb.html">lib/locale/info/language.rb</a>
329
-
330
- </div>
331
-
332
-
333
-
334
- <div class="navigation top" id="methods"><h3>Methods</h3>
335
-
336
-
337
- <a href='#M000068'>
338
- ancient?<br/>
339
- </a>
340
-
341
-
342
-
343
-
344
- <a href='#M000065'>
345
- constructed?<br/>
346
- </a>
347
-
348
-
349
-
350
-
351
- <a href='#M000067'>
352
- extinct?<br/>
353
- </a>
354
-
355
-
356
-
357
-
358
- <a href='#M000069'>
359
- historical?<br/>
360
- </a>
361
-
362
-
363
-
364
-
365
- <a href='#M000062'>
366
- individual?<br/>
367
- </a>
368
-
369
-
370
-
371
-
372
- <a href='#M000072'>
373
- iso_language?<br/>
374
- </a>
375
-
376
-
377
-
378
-
379
- <a href='#M000066'>
380
- living?<br/>
381
- </a>
382
-
383
-
384
-
385
-
386
- <a href='#M000063'>
387
- macro?<br/>
388
- </a>
389
-
390
-
391
-
392
-
393
- <a href='#M000061'>
394
- new<br/>
395
- </a>
396
-
397
-
398
-
399
-
400
- <a href='#M000064'>
401
- special?<br/>
402
- </a>
403
-
404
-
405
-
406
-
407
- <a href='#M000070'>
408
- special_type?<br/>
409
- </a>
410
-
411
-
412
-
413
-
414
- <a href='#M000071'>
415
- to_s<br/>
416
- </a>
417
-
418
-
419
- </div>
420
- <div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('class', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_class"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('file', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_file"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('method', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_method"></input></form></div></div></div><div id="content">
421
- <h1 id="item_name">Class: Locale::Info::Language</h1>
422
-
423
- <div id="description"><p>
424
- This class contains all the of the ISO information for the ISO 639-3
425
- languages. This class is immutable once constructed.
426
- </p>
427
- </div>
428
-
429
-
430
-
431
-
432
- <p></p>
433
-
434
-
435
-
436
-
437
- <h1>Attributes</h1><p><table><tr><th>Name</th><th>Read/write?</th></tr>
438
- <tr>
439
- <td class="highlight">name</td>
440
-
441
-
442
-
443
-
444
- <td class="normal">R</td>
445
- </tr>
446
- <tr>
447
- <td class="highlight">scope</td>
448
-
449
-
450
-
451
-
452
- <td class="normal">R</td>
453
- </tr>
454
- <tr>
455
- <td class="highlight">three_code</td>
456
-
457
-
458
-
459
-
460
- <td class="normal">R</td>
461
- </tr>
462
- <tr>
463
- <td class="highlight">two_code</td>
464
-
465
-
466
-
467
-
468
- <td class="normal">R</td>
469
- </tr>
470
- <tr>
471
- <td class="highlight">type</td>
472
-
473
-
474
-
475
-
476
- <td class="normal">R</td>
477
- </tr>
478
- </table></p>
479
-
480
-
481
- <h1>Public Class Methods</h1>
482
-
483
-
484
- <a class="small" name="M000061"><br/></a>
485
- <div class="method_block"><h3>
486
- <a href='#M000061'>
487
-
488
-
489
- new
490
-
491
- (two_code, three_code, scope, type, name)
492
-
493
- </a>
494
- </h3>
495
- <p>
496
- Constructs a <a href="Language.html#M000061">new</a> <a
497
- href="Language.html">Language</a> instance.
498
- </p>
499
- <ul>
500
- <li>code The 2 or 3 digit ISO 639-3 language code.
501
-
502
- </li>
503
- <li>scope A single character that defines the ISO scope of the language -
504
- <tt>(I)ndividual</tt>, <tt>(M)acrolanguage</tt>, or <tt>(S)pecial</tt>.
505
-
506
- </li>
507
- <li>type A single character that defines the ISO type of the language -
508
- <tt>(A)ncient</tt>, <tt>(C)onstructed</tt>, <tt>(E)xtinct</tt>,
509
- <tt>(H)istorical</tt>, <tt>(L)iving</tt>, or <tt>(S)pecial</tt>.
510
-
511
- </li>
512
- <li>name The name of the language.
513
-
514
- </li>
515
- </ul>
516
-
517
- <p class="source_link" id="M000061-show-link"><a href="#" onclick="toggle('M000061-source'); toggleText('M000061-link'); return false;" id="M000061-link">Show source...</a></p><div class="source" id="M000061-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 34</span>
518
- 34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">two_code</span>, <span class="ruby-identifier">three_code</span>, <span class="ruby-identifier">scope</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">name</span>)
519
- 35: <span class="ruby-ivar">@two_code</span>, <span class="ruby-ivar">@three_code</span>, <span class="ruby-ivar">@scope</span>, <span class="ruby-ivar">@type</span>, <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">two_code</span>, <span class="ruby-identifier">three_code</span>, <span class="ruby-identifier">scope</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">name</span>
520
- 36:
521
- 37: <span class="ruby-ivar">@individual</span> = (<span class="ruby-identifier">scope</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;I&quot;</span>)
522
- 38: <span class="ruby-ivar">@macro</span> = (<span class="ruby-identifier">scope</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;M&quot;</span>)
523
- 39: <span class="ruby-ivar">@special</span> = (<span class="ruby-identifier">scope</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;S&quot;</span>)
524
- 40: <span class="ruby-ivar">@constructed</span> = (<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;C&quot;</span>)
525
- 41: <span class="ruby-ivar">@living</span> = (<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;L&quot;</span>)
526
- 42: <span class="ruby-ivar">@extinct</span> = (<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;E&quot;</span>)
527
- 43: <span class="ruby-ivar">@ancient</span> = (<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;A&quot;</span>)
528
- 44: <span class="ruby-ivar">@historical</span> = (<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;H&quot;</span>)
529
- 45: <span class="ruby-ivar">@special_type</span> = (<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;S&quot;</span>)
530
- 46: <span class="ruby-keyword kw">end</span></pre></div>
531
- </div>
532
-
533
-
534
- <h1>Public Instance Methods</h1>
535
-
536
-
537
- <a class="small" name="M000068"><br/></a>
538
- <div class="method_block"><h3>
539
- <a href='#M000068'>
540
-
541
-
542
- ancient?
543
-
544
- ()
545
-
546
- </a>
547
- </h3>
548
- <p>
549
- Returns true if the language is an ancient language according to the ISO
550
- 639-3 data.
551
- </p>
552
-
553
- <p class="source_link" id="M000068-show-link"><a href="#" onclick="toggle('M000068-source'); toggleText('M000068-link'); return false;" id="M000068-link">Show source...</a></p><div class="source" id="M000068-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 67</span>
554
- 67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ancient?</span>; <span class="ruby-ivar">@ancient</span>; <span class="ruby-keyword kw">end</span></pre></div>
555
- </div>
556
-
557
- <a class="small" name="M000065"><br/></a>
558
- <div class="method_block"><h3>
559
- <a href='#M000065'>
560
-
561
-
562
- constructed?
563
-
564
- ()
565
-
566
- </a>
567
- </h3>
568
- <p>
569
- Returns true if the language is a constructed language according to the ISO
570
- 639-3 data.
571
- </p>
572
-
573
- <p class="source_link" id="M000065-show-link"><a href="#" onclick="toggle('M000065-source'); toggleText('M000065-link'); return false;" id="M000065-link">Show source...</a></p><div class="source" id="M000065-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 58</span>
574
- 58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">constructed?</span>; <span class="ruby-ivar">@constructed</span>; <span class="ruby-keyword kw">end</span></pre></div>
575
- </div>
576
-
577
- <a class="small" name="M000067"><br/></a>
578
- <div class="method_block"><h3>
579
- <a href='#M000067'>
580
-
581
-
582
- extinct?
583
-
584
- ()
585
-
586
- </a>
587
- </h3>
588
- <p>
589
- Returns true if the language is an extinct language according to the ISO
590
- 639-3 data.
591
- </p>
592
-
593
- <p class="source_link" id="M000067-show-link"><a href="#" onclick="toggle('M000067-source'); toggleText('M000067-link'); return false;" id="M000067-link">Show source...</a></p><div class="source" id="M000067-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 64</span>
594
- 64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extinct?</span>; <span class="ruby-ivar">@extinct</span>; <span class="ruby-keyword kw">end</span></pre></div>
595
- </div>
596
-
597
- <a class="small" name="M000069"><br/></a>
598
- <div class="method_block"><h3>
599
- <a href='#M000069'>
600
-
601
-
602
- historical?
603
-
604
- ()
605
-
606
- </a>
607
- </h3>
608
- <p>
609
- Returns true if the language is an historical language according to the ISO
610
- 639-3 data.
611
- </p>
612
-
613
- <p class="source_link" id="M000069-show-link"><a href="#" onclick="toggle('M000069-source'); toggleText('M000069-link'); return false;" id="M000069-link">Show source...</a></p><div class="source" id="M000069-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 70</span>
614
- 70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">historical?</span>; <span class="ruby-ivar">@historical</span>; <span class="ruby-keyword kw">end</span></pre></div>
615
- </div>
616
-
617
- <a class="small" name="M000062"><br/></a>
618
- <div class="method_block"><h3>
619
- <a href='#M000062'>
620
-
621
-
622
- individual?
623
-
624
- ()
625
-
626
- </a>
627
- </h3>
628
- <p>
629
- Returns true if the language is an individual language according to the ISO
630
- 639-3 data.
631
- </p>
632
-
633
- <p class="source_link" id="M000062-show-link"><a href="#" onclick="toggle('M000062-source'); toggleText('M000062-link'); return false;" id="M000062-link">Show source...</a></p><div class="source" id="M000062-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 49</span>
634
- 49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">individual?</span>; <span class="ruby-ivar">@individual</span>; <span class="ruby-keyword kw">end</span></pre></div>
635
- </div>
636
-
637
- <a class="small" name="M000072"><br/></a>
638
- <div class="method_block"><h3>
639
- <a href='#M000072'>
640
-
641
-
642
- iso_language?
643
-
644
- ()
645
-
646
- </a>
647
- </h3>
648
- <p>
649
- Returns this object is valid as ISO 639 data.
650
- </p>
651
-
652
- <p class="source_link" id="M000072-show-link"><a href="#" onclick="toggle('M000072-source'); toggleText('M000072-link'); return false;" id="M000072-link">Show source...</a></p><div class="source" id="M000072-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 81</span>
653
- 81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">iso_language?</span>
654
- 82: <span class="ruby-ivar">@@lang_two_codes</span>[<span class="ruby-identifier">two_code</span>] <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@@lang_three_codes</span>[<span class="ruby-identifier">three_code</span>] <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
655
- 83: <span class="ruby-keyword kw">end</span></pre></div>
656
- </div>
657
-
658
- <a class="small" name="M000066"><br/></a>
659
- <div class="method_block"><h3>
660
- <a href='#M000066'>
661
-
662
-
663
- living?
664
-
665
- ()
666
-
667
- </a>
668
- </h3>
669
- <p>
670
- Returns true if the language is a living language according to the ISO
671
- 639-3 data.
672
- </p>
673
-
674
- <p class="source_link" id="M000066-show-link"><a href="#" onclick="toggle('M000066-source'); toggleText('M000066-link'); return false;" id="M000066-link">Show source...</a></p><div class="source" id="M000066-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 61</span>
675
- 61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">living?</span>; <span class="ruby-ivar">@living</span>; <span class="ruby-keyword kw">end</span></pre></div>
676
- </div>
677
-
678
- <a class="small" name="M000063"><br/></a>
679
- <div class="method_block"><h3>
680
- <a href='#M000063'>
681
-
682
-
683
- macro?
684
-
685
- ()
686
-
687
- </a>
688
- </h3>
689
- <p>
690
- Returns true if the language is a macro language according to the ISO 639-3
691
- data.
692
- </p>
693
-
694
- <p class="source_link" id="M000063-show-link"><a href="#" onclick="toggle('M000063-source'); toggleText('M000063-link'); return false;" id="M000063-link">Show source...</a></p><div class="source" id="M000063-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 52</span>
695
- 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">macro?</span>; <span class="ruby-ivar">@macro</span>; <span class="ruby-keyword kw">end</span></pre></div>
696
- </div>
697
-
698
- <a class="small" name="M000064"><br/></a>
699
- <div class="method_block"><h3>
700
- <a href='#M000064'>
701
-
702
-
703
- special?
704
-
705
- ()
706
-
707
- </a>
708
- </h3>
709
- <p>
710
- Returns true if the language is a special language according to the ISO
711
- 639-3 data.
712
- </p>
713
-
714
- <p class="source_link" id="M000064-show-link"><a href="#" onclick="toggle('M000064-source'); toggleText('M000064-link'); return false;" id="M000064-link">Show source...</a></p><div class="source" id="M000064-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 55</span>
715
- 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">special?</span>; <span class="ruby-ivar">@special</span>; <span class="ruby-keyword kw">end</span></pre></div>
716
- </div>
717
-
718
- <a class="small" name="M000070"><br/></a>
719
- <div class="method_block"><h3>
720
- <a href='#M000070'>
721
-
722
-
723
- special_type?
724
-
725
- ()
726
-
727
- </a>
728
- </h3>
729
- <p>
730
- Returns true if the language is a special type language according to the
731
- ISO 639-3 data.
732
- </p>
733
-
734
- <p class="source_link" id="M000070-show-link"><a href="#" onclick="toggle('M000070-source'); toggleText('M000070-link'); return false;" id="M000070-link">Show source...</a></p><div class="source" id="M000070-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 73</span>
735
- 73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">special_type?</span>; <span class="ruby-ivar">@special_type</span>; <span class="ruby-keyword kw">end</span></pre></div>
736
- </div>
737
-
738
- <a class="small" name="M000071"><br/></a>
739
- <div class="method_block"><h3>
740
- <a href='#M000071'>
741
-
742
-
743
- to_s
744
-
745
- ()
746
-
747
- </a>
748
- </h3>
749
- <p>
750
- Returns the two or three code.
751
- </p>
752
-
753
- <p class="source_link" id="M000071-show-link"><a href="#" onclick="toggle('M000071-source'); toggleText('M000071-link'); return false;" id="M000071-link">Show source...</a></p><div class="source" id="M000071-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 76</span>
754
- 76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
755
- 77: <span class="ruby-identifier">two_code</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">tree_code</span>
756
- 78: <span class="ruby-keyword kw">end</span></pre></div>
757
- </div>
758
-
759
-
760
-
761
-
762
-
763
- </div><div class="clear" id="footer">Generated on May 9, 2009 / Allison 2 &copy; 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a></div></div></body></html>