uncharted 0.0.5 → 0.0.6
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.
- data/.gitignore +5 -3
- data/.metrics +8 -0
- data/CHANGELOG.md +8 -0
- data/Rakefile +7 -1
- data/lib/{version.rb → uncharted/version.rb} +1 -1
- data/test/country_test.rb +5 -0
- data/test/test_helper.rb +18 -2
- data/uncharted.gemspec +7 -7
- metadata +11 -48
- data/.yardoc/checksums +0 -6
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/Gemfile.lock +0 -21
- data/doc/.yardoc/checksums +0 -0
- data/doc/.yardoc/objects/root.dat +0 -0
- data/doc/.yardoc/proxy_types +0 -0
- data/doc/Uncharted/Country/Field.html +0 -233
- data/doc/Uncharted/Country.html +0 -888
- data/doc/Uncharted/Territory/Field.html +0 -233
- data/doc/Uncharted/Territory.html +0 -809
- data/doc/Uncharted.html +0 -108
- data/doc/_index.html +0 -158
- data/doc/class_list.html +0 -47
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -53
- data/doc/css/style.css +0 -320
- data/doc/doc/_index.html +0 -84
- data/doc/doc/class_list.html +0 -47
- data/doc/doc/css/common.css +0 -1
- data/doc/doc/css/full_list.css +0 -53
- data/doc/doc/css/style.css +0 -320
- data/doc/doc/file_list.html +0 -46
- data/doc/doc/frames.html +0 -13
- data/doc/doc/index.html +0 -84
- data/doc/doc/js/app.js +0 -205
- data/doc/doc/js/full_list.js +0 -150
- data/doc/doc/js/jquery.js +0 -16
- data/doc/doc/method_list.html +0 -46
- data/doc/doc/top-level-namespace.html +0 -93
- data/doc/file.README.html +0 -122
- data/doc/file_list.html +0 -49
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -122
- data/doc/js/app.js +0 -205
- data/doc/js/full_list.js +0 -150
- data/doc/js/jquery.js +0 -16
- data/doc/method_list.html +0 -262
- data/doc/top-level-namespace.html +0 -120
data/doc/Uncharted/Country.html
DELETED
@@ -1,888 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Class: Uncharted::Country
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.2
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
relpath = '..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../_index.html">Index (C)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../Uncharted.html" title="Uncharted (module)">Uncharted</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">Country</span>
|
40
|
-
|
41
|
-
|
42
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="search">
|
46
|
-
|
47
|
-
<a id="class_list_link" href="#">Class List</a>
|
48
|
-
|
49
|
-
<a id="method_list_link" href="#">Method List</a>
|
50
|
-
|
51
|
-
<a id="file_list_link" href="#">File List</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1>Class: Uncharted::Country
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
<dt class="r1">Inherits:</dt>
|
68
|
-
<dd class="r1">
|
69
|
-
<span class="inheritName">Object</span>
|
70
|
-
|
71
|
-
<ul class="fullTree">
|
72
|
-
<li>Object</li>
|
73
|
-
|
74
|
-
<li class="next">Uncharted::Country</li>
|
75
|
-
|
76
|
-
</ul>
|
77
|
-
<a href="#" class="inheritanceTree">show all</a>
|
78
|
-
|
79
|
-
</dd>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<dt class="r2 last">Defined in:</dt>
|
90
|
-
<dd class="r2 last">lib/uncharted/country.rb<span class="defines">,<br />
|
91
|
-
lib/uncharted/territory.rb,<br /> lib/uncharted/adapters/mongoid.rb</span>
|
92
|
-
</dd>
|
93
|
-
|
94
|
-
</dl>
|
95
|
-
<div class="clear"></div>
|
96
|
-
|
97
|
-
<h2>Defined Under Namespace</h2>
|
98
|
-
<p class="children">
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Country/Field.html" title="Uncharted::Country::Field (class)">Field</a></span>
|
104
|
-
|
105
|
-
|
106
|
-
</p>
|
107
|
-
|
108
|
-
|
109
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
110
|
-
<ul class="summary">
|
111
|
-
|
112
|
-
<li class="public ">
|
113
|
-
<span class="summary_signature">
|
114
|
-
|
115
|
-
<a href="#alpha2-instance_method" title="#alpha2 (instance method)">- (Object) <strong>alpha2</strong> </a>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
</span>
|
120
|
-
|
121
|
-
|
122
|
-
<span class="note title readonly">readonly</span>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<span class="summary_desc"><div class='inline'><p>
|
132
|
-
Returns the value of attribute alpha2.
|
133
|
-
</p>
|
134
|
-
</div></span>
|
135
|
-
|
136
|
-
</li>
|
137
|
-
|
138
|
-
|
139
|
-
<li class="public ">
|
140
|
-
<span class="summary_signature">
|
141
|
-
|
142
|
-
<a href="#alpha3-instance_method" title="#alpha3 (instance method)">- (Object) <strong>alpha3</strong> </a>
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
</span>
|
147
|
-
|
148
|
-
|
149
|
-
<span class="note title readonly">readonly</span>
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
<span class="summary_desc"><div class='inline'><p>
|
159
|
-
Returns the value of attribute alpha3.
|
160
|
-
</p>
|
161
|
-
</div></span>
|
162
|
-
|
163
|
-
</li>
|
164
|
-
|
165
|
-
|
166
|
-
<li class="public ">
|
167
|
-
<span class="summary_signature">
|
168
|
-
|
169
|
-
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
</span>
|
174
|
-
|
175
|
-
|
176
|
-
<span class="note title readonly">readonly</span>
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
<span class="summary_desc"><div class='inline'><p>
|
186
|
-
Returns the value of attribute name.
|
187
|
-
</p>
|
188
|
-
</div></span>
|
189
|
-
|
190
|
-
</li>
|
191
|
-
|
192
|
-
|
193
|
-
</ul>
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
<h2>
|
200
|
-
Class Method Summary
|
201
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
202
|
-
</h2>
|
203
|
-
|
204
|
-
<ul class="summary">
|
205
|
-
|
206
|
-
<li class="public ">
|
207
|
-
<span class="summary_signature">
|
208
|
-
|
209
|
-
<a href="#count-class_method" title="count (class method)">+ (Object) <strong>count</strong> </a>
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
</span>
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
223
|
-
|
224
|
-
</li>
|
225
|
-
|
226
|
-
|
227
|
-
<li class="public ">
|
228
|
-
<span class="summary_signature">
|
229
|
-
|
230
|
-
<a href="#countries-class_method" title="countries (class method)">+ (Object) <strong>countries</strong> </a>
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
</span>
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
244
|
-
|
245
|
-
</li>
|
246
|
-
|
247
|
-
|
248
|
-
<li class="public ">
|
249
|
-
<span class="summary_signature">
|
250
|
-
|
251
|
-
<a href="#find-class_method" title="find (class method)">+ (Object) <strong>find</strong>(code) </a>
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
</span>
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
265
|
-
|
266
|
-
</li>
|
267
|
-
|
268
|
-
|
269
|
-
<li class="public ">
|
270
|
-
<span class="summary_signature">
|
271
|
-
|
272
|
-
<a href="#subdivisions-class_method" title="subdivisions (class method)">+ (Object) <strong>subdivisions</strong> </a>
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
</span>
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
286
|
-
|
287
|
-
</li>
|
288
|
-
|
289
|
-
|
290
|
-
</ul>
|
291
|
-
|
292
|
-
<h2>
|
293
|
-
Instance Method Summary
|
294
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
295
|
-
</h2>
|
296
|
-
|
297
|
-
<ul class="summary">
|
298
|
-
|
299
|
-
<li class="public ">
|
300
|
-
<span class="summary_signature">
|
301
|
-
|
302
|
-
<a href="#districts-instance_method" title="#districts (instance method)">- (Object) <strong>districts</strong> </a>
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
</span>
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
316
|
-
|
317
|
-
</li>
|
318
|
-
|
319
|
-
|
320
|
-
<li class="public ">
|
321
|
-
<span class="summary_signature">
|
322
|
-
|
323
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Country) <strong>initialize</strong>(alpha2, alpha3 = nil, name = nil) </a>
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
</span>
|
328
|
-
|
329
|
-
<span class="note title constructor">constructor</span>
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
<span class="summary_desc"><div class='inline'><p>
|
339
|
-
A new instance of Country.
|
340
|
-
</p>
|
341
|
-
</div></span>
|
342
|
-
|
343
|
-
</li>
|
344
|
-
|
345
|
-
|
346
|
-
<li class="public ">
|
347
|
-
<span class="summary_signature">
|
348
|
-
|
349
|
-
<a href="#states-instance_method" title="#states (instance method)">- (Object) <strong>states</strong> </a>
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
</span>
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
363
|
-
|
364
|
-
</li>
|
365
|
-
|
366
|
-
|
367
|
-
<li class="public ">
|
368
|
-
<span class="summary_signature">
|
369
|
-
|
370
|
-
<a href="#subdivisions-instance_method" title="#subdivisions (instance method)">- (Object) <strong>subdivisions</strong> </a>
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
</span>
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
384
|
-
|
385
|
-
</li>
|
386
|
-
|
387
|
-
|
388
|
-
<li class="public ">
|
389
|
-
<span class="summary_signature">
|
390
|
-
|
391
|
-
<a href="#territories-instance_method" title="#territories (instance method)">- (Object) <strong>territories</strong> </a>
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
</span>
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
405
|
-
|
406
|
-
</li>
|
407
|
-
|
408
|
-
|
409
|
-
<li class="public ">
|
410
|
-
<span class="summary_signature">
|
411
|
-
|
412
|
-
<a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
</span>
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
426
|
-
|
427
|
-
</li>
|
428
|
-
|
429
|
-
|
430
|
-
</ul>
|
431
|
-
|
432
|
-
|
433
|
-
<div id="constructor_details" class="method_details_list">
|
434
|
-
<h2>Constructor Details</h2>
|
435
|
-
|
436
|
-
<div class="method_details first">
|
437
|
-
<p class="signature first" id="initialize-instance_method">
|
438
|
-
|
439
|
-
- (<tt><span class='object_link'><a href="" title="Uncharted::Country (class)">Country</a></span></tt>) <strong>initialize</strong>(alpha2, alpha3 = nil, name = nil)
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
</p><div class="docstring">
|
444
|
-
<div class="discussion">
|
445
|
-
<p>
|
446
|
-
A new instance of Country
|
447
|
-
</p>
|
448
|
-
|
449
|
-
|
450
|
-
</div>
|
451
|
-
</div>
|
452
|
-
<div class="tags">
|
453
|
-
|
454
|
-
</div><table class="source_code">
|
455
|
-
<tr>
|
456
|
-
<td>
|
457
|
-
<pre class="lines">
|
458
|
-
|
459
|
-
|
460
|
-
7
|
461
|
-
8
|
462
|
-
9
|
463
|
-
10
|
464
|
-
11
|
465
|
-
12</pre>
|
466
|
-
</td>
|
467
|
-
<td>
|
468
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/country.rb', line 7</span>
|
469
|
-
|
470
|
-
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id alpha2'>alpha2</span><span class='comma'>,</span> <span class='id alpha3'>alpha3</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
471
|
-
<span class='ivar'>@alpha2</span> <span class='op'>=</span> <span class='id alpha2'>alpha2</span>
|
472
|
-
<span class='ivar'>@alpha3</span> <span class='op'>=</span> <span class='id alpha3'>alpha3</span>
|
473
|
-
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id name'>name</span>
|
474
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id class'>class</span><span class='period'>.</span><span class='id countries'>countries</span><span class='lbracket'>[</span><span class='id alpha2'>alpha2</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span>
|
475
|
-
<span class='kw'>end</span></pre>
|
476
|
-
</td>
|
477
|
-
</tr>
|
478
|
-
</table>
|
479
|
-
</div>
|
480
|
-
|
481
|
-
</div>
|
482
|
-
|
483
|
-
<div id="instance_attr_details" class="attr_details">
|
484
|
-
<h2>Instance Attribute Details</h2>
|
485
|
-
|
486
|
-
|
487
|
-
<span id=""></span>
|
488
|
-
<span id="alpha2-instance_method"></span>
|
489
|
-
<div class="method_details first">
|
490
|
-
<p class="signature first" id="alpha2-instance_method">
|
491
|
-
|
492
|
-
- (<tt>Object</tt>) <strong>alpha2</strong> <span class="extras">(readonly)</span>
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
</p><div class="docstring">
|
497
|
-
<div class="discussion">
|
498
|
-
<p>
|
499
|
-
Returns the value of attribute alpha2
|
500
|
-
</p>
|
501
|
-
|
502
|
-
|
503
|
-
</div>
|
504
|
-
</div>
|
505
|
-
<div class="tags">
|
506
|
-
|
507
|
-
</div><table class="source_code">
|
508
|
-
<tr>
|
509
|
-
<td>
|
510
|
-
<pre class="lines">
|
511
|
-
|
512
|
-
|
513
|
-
5
|
514
|
-
6
|
515
|
-
7</pre>
|
516
|
-
</td>
|
517
|
-
<td>
|
518
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/country.rb', line 5</span>
|
519
|
-
|
520
|
-
<span class='kw'>def</span> <span class='id alpha2'>alpha2</span>
|
521
|
-
<span class='ivar'>@alpha2</span>
|
522
|
-
<span class='kw'>end</span></pre>
|
523
|
-
</td>
|
524
|
-
</tr>
|
525
|
-
</table>
|
526
|
-
</div>
|
527
|
-
|
528
|
-
|
529
|
-
<span id=""></span>
|
530
|
-
<span id="alpha3-instance_method"></span>
|
531
|
-
<div class="method_details ">
|
532
|
-
<p class="signature " id="alpha3-instance_method">
|
533
|
-
|
534
|
-
- (<tt>Object</tt>) <strong>alpha3</strong> <span class="extras">(readonly)</span>
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
</p><div class="docstring">
|
539
|
-
<div class="discussion">
|
540
|
-
<p>
|
541
|
-
Returns the value of attribute alpha3
|
542
|
-
</p>
|
543
|
-
|
544
|
-
|
545
|
-
</div>
|
546
|
-
</div>
|
547
|
-
<div class="tags">
|
548
|
-
|
549
|
-
</div><table class="source_code">
|
550
|
-
<tr>
|
551
|
-
<td>
|
552
|
-
<pre class="lines">
|
553
|
-
|
554
|
-
|
555
|
-
5
|
556
|
-
6
|
557
|
-
7</pre>
|
558
|
-
</td>
|
559
|
-
<td>
|
560
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/country.rb', line 5</span>
|
561
|
-
|
562
|
-
<span class='kw'>def</span> <span class='id alpha3'>alpha3</span>
|
563
|
-
<span class='ivar'>@alpha3</span>
|
564
|
-
<span class='kw'>end</span></pre>
|
565
|
-
</td>
|
566
|
-
</tr>
|
567
|
-
</table>
|
568
|
-
</div>
|
569
|
-
|
570
|
-
|
571
|
-
<span id=""></span>
|
572
|
-
<span id="name-instance_method"></span>
|
573
|
-
<div class="method_details ">
|
574
|
-
<p class="signature " id="name-instance_method">
|
575
|
-
|
576
|
-
- (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
</p><div class="docstring">
|
581
|
-
<div class="discussion">
|
582
|
-
<p>
|
583
|
-
Returns the value of attribute name
|
584
|
-
</p>
|
585
|
-
|
586
|
-
|
587
|
-
</div>
|
588
|
-
</div>
|
589
|
-
<div class="tags">
|
590
|
-
|
591
|
-
</div><table class="source_code">
|
592
|
-
<tr>
|
593
|
-
<td>
|
594
|
-
<pre class="lines">
|
595
|
-
|
596
|
-
|
597
|
-
5
|
598
|
-
6
|
599
|
-
7</pre>
|
600
|
-
</td>
|
601
|
-
<td>
|
602
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/country.rb', line 5</span>
|
603
|
-
|
604
|
-
<span class='kw'>def</span> <span class='id name'>name</span>
|
605
|
-
<span class='ivar'>@name</span>
|
606
|
-
<span class='kw'>end</span></pre>
|
607
|
-
</td>
|
608
|
-
</tr>
|
609
|
-
</table>
|
610
|
-
</div>
|
611
|
-
|
612
|
-
</div>
|
613
|
-
|
614
|
-
|
615
|
-
<div id="class_method_details" class="method_details_list">
|
616
|
-
<h2>Class Method Details</h2>
|
617
|
-
|
618
|
-
|
619
|
-
<div class="method_details first">
|
620
|
-
<p class="signature first" id="count-class_method">
|
621
|
-
|
622
|
-
+ (<tt>Object</tt>) <strong>count</strong>
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
</p><table class="source_code">
|
627
|
-
<tr>
|
628
|
-
<td>
|
629
|
-
<pre class="lines">
|
630
|
-
|
631
|
-
|
632
|
-
18
|
633
|
-
19
|
634
|
-
20</pre>
|
635
|
-
</td>
|
636
|
-
<td>
|
637
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/country.rb', line 18</span>
|
638
|
-
|
639
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id count'>count</span>
|
640
|
-
<span class='id countries'>countries</span><span class='period'>.</span><span class='id count'>count</span>
|
641
|
-
<span class='kw'>end</span></pre>
|
642
|
-
</td>
|
643
|
-
</tr>
|
644
|
-
</table>
|
645
|
-
</div>
|
646
|
-
|
647
|
-
<div class="method_details ">
|
648
|
-
<p class="signature " id="countries-class_method">
|
649
|
-
|
650
|
-
+ (<tt>Object</tt>) <strong>countries</strong>
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
</p><table class="source_code">
|
655
|
-
<tr>
|
656
|
-
<td>
|
657
|
-
<pre class="lines">
|
658
|
-
|
659
|
-
|
660
|
-
26
|
661
|
-
27
|
662
|
-
28</pre>
|
663
|
-
</td>
|
664
|
-
<td>
|
665
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/country.rb', line 26</span>
|
666
|
-
|
667
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id countries'>countries</span>
|
668
|
-
<span class='ivar'>@countries</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
669
|
-
<span class='kw'>end</span></pre>
|
670
|
-
</td>
|
671
|
-
</tr>
|
672
|
-
</table>
|
673
|
-
</div>
|
674
|
-
|
675
|
-
<div class="method_details ">
|
676
|
-
<p class="signature " id="find-class_method">
|
677
|
-
|
678
|
-
+ (<tt>Object</tt>) <strong>find</strong>(code)
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
</p><table class="source_code">
|
683
|
-
<tr>
|
684
|
-
<td>
|
685
|
-
<pre class="lines">
|
686
|
-
|
687
|
-
|
688
|
-
22
|
689
|
-
23
|
690
|
-
24</pre>
|
691
|
-
</td>
|
692
|
-
<td>
|
693
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/country.rb', line 22</span>
|
694
|
-
|
695
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id find'>find</span><span class='lparen'>(</span><span class='id code'>code</span><span class='rparen'>)</span>
|
696
|
-
<span class='id countries'>countries</span><span class='lbracket'>[</span><span class='id code'>code</span><span class='rbracket'>]</span>
|
697
|
-
<span class='kw'>end</span></pre>
|
698
|
-
</td>
|
699
|
-
</tr>
|
700
|
-
</table>
|
701
|
-
</div>
|
702
|
-
|
703
|
-
<div class="method_details ">
|
704
|
-
<p class="signature " id="subdivisions-class_method">
|
705
|
-
|
706
|
-
+ (<tt>Object</tt>) <strong>subdivisions</strong>
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
</p><table class="source_code">
|
711
|
-
<tr>
|
712
|
-
<td>
|
713
|
-
<pre class="lines">
|
714
|
-
|
715
|
-
|
716
|
-
23
|
717
|
-
24
|
718
|
-
25</pre>
|
719
|
-
</td>
|
720
|
-
<td>
|
721
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/territory.rb', line 23</span>
|
722
|
-
|
723
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id subdivisions'>subdivisions</span>
|
724
|
-
<span class='const'>Territory</span><span class='period'>.</span><span class='id subdivisions'>subdivisions</span>
|
725
|
-
<span class='kw'>end</span></pre>
|
726
|
-
</td>
|
727
|
-
</tr>
|
728
|
-
</table>
|
729
|
-
</div>
|
730
|
-
|
731
|
-
</div>
|
732
|
-
|
733
|
-
<div id="instance_method_details" class="method_details_list">
|
734
|
-
<h2>Instance Method Details</h2>
|
735
|
-
|
736
|
-
|
737
|
-
<div class="method_details first">
|
738
|
-
<p class="signature first" id="districts-instance_method">
|
739
|
-
|
740
|
-
- (<tt>Object</tt>) <strong>districts</strong>
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
</p><table class="source_code">
|
745
|
-
<tr>
|
746
|
-
<td>
|
747
|
-
<pre class="lines">
|
748
|
-
|
749
|
-
|
750
|
-
19
|
751
|
-
20
|
752
|
-
21</pre>
|
753
|
-
</td>
|
754
|
-
<td>
|
755
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/territory.rb', line 19</span>
|
756
|
-
|
757
|
-
<span class='kw'>def</span> <span class='id districts'>districts</span>
|
758
|
-
<span class='id subdivisions'>subdivisions</span><span class='lbracket'>[</span><span class='symbol'>:district</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
759
|
-
<span class='kw'>end</span></pre>
|
760
|
-
</td>
|
761
|
-
</tr>
|
762
|
-
</table>
|
763
|
-
</div>
|
764
|
-
|
765
|
-
<div class="method_details ">
|
766
|
-
<p class="signature " id="states-instance_method">
|
767
|
-
|
768
|
-
- (<tt>Object</tt>) <strong>states</strong>
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
</p><table class="source_code">
|
773
|
-
<tr>
|
774
|
-
<td>
|
775
|
-
<pre class="lines">
|
776
|
-
|
777
|
-
|
778
|
-
15
|
779
|
-
16
|
780
|
-
17</pre>
|
781
|
-
</td>
|
782
|
-
<td>
|
783
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/territory.rb', line 15</span>
|
784
|
-
|
785
|
-
<span class='kw'>def</span> <span class='id states'>states</span>
|
786
|
-
<span class='id subdivisions'>subdivisions</span><span class='lbracket'>[</span><span class='symbol'>:state</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
787
|
-
<span class='kw'>end</span></pre>
|
788
|
-
</td>
|
789
|
-
</tr>
|
790
|
-
</table>
|
791
|
-
</div>
|
792
|
-
|
793
|
-
<div class="method_details ">
|
794
|
-
<p class="signature " id="subdivisions-instance_method">
|
795
|
-
|
796
|
-
- (<tt>Object</tt>) <strong>subdivisions</strong>
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
</p><table class="source_code">
|
801
|
-
<tr>
|
802
|
-
<td>
|
803
|
-
<pre class="lines">
|
804
|
-
|
805
|
-
|
806
|
-
7
|
807
|
-
8
|
808
|
-
9</pre>
|
809
|
-
</td>
|
810
|
-
<td>
|
811
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/territory.rb', line 7</span>
|
812
|
-
|
813
|
-
<span class='kw'>def</span> <span class='id subdivisions'>subdivisions</span>
|
814
|
-
<span class='ivar'>@subdivisions</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
815
|
-
<span class='kw'>end</span></pre>
|
816
|
-
</td>
|
817
|
-
</tr>
|
818
|
-
</table>
|
819
|
-
</div>
|
820
|
-
|
821
|
-
<div class="method_details ">
|
822
|
-
<p class="signature " id="territories-instance_method">
|
823
|
-
|
824
|
-
- (<tt>Object</tt>) <strong>territories</strong>
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
</p><table class="source_code">
|
829
|
-
<tr>
|
830
|
-
<td>
|
831
|
-
<pre class="lines">
|
832
|
-
|
833
|
-
|
834
|
-
11
|
835
|
-
12
|
836
|
-
13</pre>
|
837
|
-
</td>
|
838
|
-
<td>
|
839
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/territory.rb', line 11</span>
|
840
|
-
|
841
|
-
<span class='kw'>def</span> <span class='id territories'>territories</span>
|
842
|
-
<span class='id subdivisions'>subdivisions</span><span class='lbracket'>[</span><span class='symbol'>:territory</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
843
|
-
<span class='kw'>end</span></pre>
|
844
|
-
</td>
|
845
|
-
</tr>
|
846
|
-
</table>
|
847
|
-
</div>
|
848
|
-
|
849
|
-
<div class="method_details ">
|
850
|
-
<p class="signature " id="to_s-instance_method">
|
851
|
-
|
852
|
-
- (<tt>Object</tt>) <strong>to_s</strong>
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
</p><table class="source_code">
|
857
|
-
<tr>
|
858
|
-
<td>
|
859
|
-
<pre class="lines">
|
860
|
-
|
861
|
-
|
862
|
-
14
|
863
|
-
15
|
864
|
-
16</pre>
|
865
|
-
</td>
|
866
|
-
<td>
|
867
|
-
<pre class="code"><span class="info file"># File 'lib/uncharted/country.rb', line 14</span>
|
868
|
-
|
869
|
-
<span class='kw'>def</span> <span class='id to_s'>to_s</span>
|
870
|
-
<span class='ivar'>@alpha2</span>
|
871
|
-
<span class='kw'>end</span></pre>
|
872
|
-
</td>
|
873
|
-
</tr>
|
874
|
-
</table>
|
875
|
-
</div>
|
876
|
-
|
877
|
-
</div>
|
878
|
-
|
879
|
-
</div>
|
880
|
-
|
881
|
-
<div id="footer">
|
882
|
-
Generated on Tue Aug 30 16:02:30 2011 by
|
883
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
884
|
-
0.7.2 (ruby-1.9.2).
|
885
|
-
</div>
|
886
|
-
|
887
|
-
</body>
|
888
|
-
</html>
|