roma-client 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/{CHANGELOG → CHANGELOG.md} +8 -5
  3. data/Gemfile.lock +23 -15
  4. data/README.md +62 -0
  5. data/Rakefile +3 -3
  6. data/doc/CHANGELOG_md.html +119 -0
  7. data/doc/README_md.html +161 -0
  8. data/doc/Roma/Client/ClientPool.html +716 -0
  9. data/doc/Roma/Client/ClientRoutingTable.html +495 -0
  10. data/doc/Roma/Client/ConPool.html +484 -0
  11. data/doc/Roma/Client/Plugin/Alist.html +1276 -0
  12. data/doc/Roma/Client/Plugin/Map.html +531 -0
  13. data/doc/Roma/Client/Plugin/MapCount.html +401 -0
  14. data/doc/Roma/Client/Plugin.html +95 -0
  15. data/doc/Roma/Client/Proxy/ClientHandler.html +273 -0
  16. data/doc/Roma/Client/Proxy/Conpool.html +394 -0
  17. data/doc/Roma/Client/Proxy/Daemon.html +305 -0
  18. data/doc/Roma/Client/Proxy/RomaHandler.html +217 -0
  19. data/doc/Roma/Client/Proxy.html +95 -0
  20. data/doc/Roma/Client/RomaClient.html +1339 -0
  21. data/doc/Roma/Client/Sender.html +482 -0
  22. data/doc/Roma/Client/Stats.html +162 -0
  23. data/doc/Roma/Client/VERSION.html +141 -0
  24. data/doc/Roma/Client.html +95 -0
  25. data/doc/Roma/Logging/RLogger/ExtLogDev.html +159 -0
  26. data/doc/Roma/Logging/RLogger/ExtShiftAge.html +95 -0
  27. data/doc/Roma/Logging/RLogger/ExtTrace.html +109 -0
  28. data/doc/Roma/Logging/RLogger/Severity.html +139 -0
  29. data/doc/Roma/Logging/RLogger.html +786 -0
  30. data/doc/Roma/Logging.html +95 -0
  31. data/doc/Roma/Routing/RoutingData/RandomNodeListMaker.html +311 -0
  32. data/doc/Roma/Routing/RoutingData.html +912 -0
  33. data/doc/Roma/Routing.html +95 -0
  34. data/doc/Roma.html +95 -0
  35. data/doc/created.rid +20 -0
  36. data/doc/css/fonts.css +167 -0
  37. data/doc/css/rdoc.css +590 -0
  38. data/doc/fonts/Lato-Light.ttf +0 -0
  39. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  40. data/doc/fonts/Lato-Regular.ttf +0 -0
  41. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  42. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  43. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  44. data/doc/images/add.png +0 -0
  45. data/doc/images/arrow_up.png +0 -0
  46. data/doc/images/brick.png +0 -0
  47. data/doc/images/brick_link.png +0 -0
  48. data/doc/images/bug.png +0 -0
  49. data/doc/images/bullet_black.png +0 -0
  50. data/doc/images/bullet_toggle_minus.png +0 -0
  51. data/doc/images/bullet_toggle_plus.png +0 -0
  52. data/doc/images/date.png +0 -0
  53. data/doc/images/delete.png +0 -0
  54. data/doc/images/find.png +0 -0
  55. data/doc/images/loadingAnimation.gif +0 -0
  56. data/doc/images/macFFBgHack.png +0 -0
  57. data/doc/images/package.png +0 -0
  58. data/doc/images/page_green.png +0 -0
  59. data/doc/images/page_white_text.png +0 -0
  60. data/doc/images/page_white_width.png +0 -0
  61. data/doc/images/plugin.png +0 -0
  62. data/doc/images/ruby.png +0 -0
  63. data/doc/images/tag_blue.png +0 -0
  64. data/doc/images/tag_green.png +0 -0
  65. data/doc/images/transparent.png +0 -0
  66. data/doc/images/wrench.png +0 -0
  67. data/doc/images/wrench_orange.png +0 -0
  68. data/doc/images/zoom.png +0 -0
  69. data/doc/index.html +210 -0
  70. data/doc/js/darkfish.js +161 -0
  71. data/doc/js/jquery.js +4 -0
  72. data/doc/js/navigation.js +142 -0
  73. data/doc/js/navigation.js.gz +0 -0
  74. data/doc/js/search.js +109 -0
  75. data/doc/js/search_index.js +1 -0
  76. data/doc/js/search_index.js.gz +0 -0
  77. data/doc/js/searcher.js +228 -0
  78. data/doc/js/searcher.js.gz +0 -0
  79. data/doc/table_of_contents.html +972 -0
  80. data/lib/roma/client/rclient.rb +2 -1
  81. data/lib/roma/client/sender.rb +2 -2
  82. data/lib/roma/client/version.rb +1 -1
  83. data/lib/roma/client.rb +0 -21
  84. metadata +84 -10
  85. data/README +0 -17
@@ -0,0 +1,531 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset=" UTF-8">
6
+
7
+ <title>module Roma::Client::Plugin::Map - ROMA documents</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../../../";
11
+ </script>
12
+
13
+ <script src="../../../js/jquery.js"></script>
14
+ <script src="../../../js/darkfish.js"></script>
15
+
16
+ <link href="../../../css/fonts.css" rel="stylesheet">
17
+ <link href="../../../css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="module">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../../../index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../../../table_of_contents.html#pages">Pages</a>
31
+ <a href="../../../table_of_contents.html#classes">Classes</a>
32
+ <a href="../../../table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+
58
+
59
+
60
+ <!-- Method Quickref -->
61
+ <div id="method-list-section" class="nav-section">
62
+ <h3>Methods</h3>
63
+
64
+ <ul class="link-list" role="directory">
65
+
66
+ <li ><a href="#method-i-map_clear">#map_clear</a>
67
+
68
+ <li ><a href="#method-i-map_delete">#map_delete</a>
69
+
70
+ <li ><a href="#method-i-map_empty-3F">#map_empty?</a>
71
+
72
+ <li ><a href="#method-i-map_get">#map_get</a>
73
+
74
+ <li ><a href="#method-i-map_key-3F">#map_key?</a>
75
+
76
+ <li ><a href="#method-i-map_keys">#map_keys</a>
77
+
78
+ <li ><a href="#method-i-map_set">#map_set</a>
79
+
80
+ <li ><a href="#method-i-map_size">#map_size</a>
81
+
82
+ <li ><a href="#method-i-map_to_s">#map_to_s</a>
83
+
84
+ <li ><a href="#method-i-map_value-3F">#map_value?</a>
85
+
86
+ <li ><a href="#method-i-map_values">#map_values</a>
87
+
88
+ </ul>
89
+ </div>
90
+
91
+ </div>
92
+ </nav>
93
+
94
+ <main role="main" aria-labelledby="module-Roma::Client::Plugin::Map">
95
+ <h1 id="module-Roma::Client::Plugin::Map" class="module">
96
+ module Roma::Client::Plugin::Map
97
+ </h1>
98
+
99
+ <section class="description">
100
+
101
+ </section>
102
+
103
+
104
+
105
+
106
+ <section id="5Buntitled-5D" class="documentation-section">
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
117
+ <header>
118
+ <h3>Public Instance Methods</h3>
119
+ </header>
120
+
121
+
122
+ <div id="method-i-map_clear" class="method-detail ">
123
+
124
+ <div class="method-heading">
125
+ <span class="method-name">map_clear</span><span
126
+ class="method-args">(key)</span>
127
+
128
+ <span class="method-click-advice">click to toggle source</span>
129
+
130
+ </div>
131
+
132
+
133
+ <div class="method-description">
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <div class="method-source-code" id="map_clear-source">
141
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 21</span>
142
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_clear</span>(<span class="ruby-identifier">key</span>)
143
+ <span class="ruby-identifier">sender</span>(<span class="ruby-value">:oneline_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-string">&quot;map_clear %s&quot;</span>)
144
+ <span class="ruby-keyword">end</span></pre>
145
+ </div>
146
+
147
+ </div>
148
+
149
+
150
+
151
+
152
+ </div>
153
+
154
+
155
+ <div id="method-i-map_delete" class="method-detail ">
156
+
157
+ <div class="method-heading">
158
+ <span class="method-name">map_delete</span><span
159
+ class="method-args">(key, mapkey)</span>
160
+
161
+ <span class="method-click-advice">click to toggle source</span>
162
+
163
+ </div>
164
+
165
+
166
+ <div class="method-description">
167
+
168
+
169
+
170
+
171
+
172
+
173
+ <div class="method-source-code" id="map_delete-source">
174
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 17</span>
175
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_delete</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">mapkey</span>)
176
+ <span class="ruby-identifier">sender</span>(<span class="ruby-value">:oneline_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-node">&quot;map_delete %s #{mapkey}&quot;</span>)
177
+ <span class="ruby-keyword">end</span></pre>
178
+ </div>
179
+
180
+ </div>
181
+
182
+
183
+
184
+
185
+ </div>
186
+
187
+
188
+ <div id="method-i-map_empty-3F" class="method-detail ">
189
+
190
+ <div class="method-heading">
191
+ <span class="method-name">map_empty?</span><span
192
+ class="method-args">(key)</span>
193
+
194
+ <span class="method-click-advice">click to toggle source</span>
195
+
196
+ </div>
197
+
198
+
199
+ <div class="method-description">
200
+
201
+
202
+
203
+
204
+
205
+
206
+ <div class="method-source-code" id="map_empty-3F-source">
207
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 54</span>
208
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_empty?</span>(<span class="ruby-identifier">key</span>)
209
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:oneline_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-string">&quot;map_empty? %s&quot;</span>)
210
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span> <span class="ruby-operator">==</span> <span class="ruby-string">&#39;true&#39;</span>
211
+ <span class="ruby-keyword">true</span>
212
+ <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">ret</span> <span class="ruby-operator">==</span> <span class="ruby-string">&#39;false&#39;</span>
213
+ <span class="ruby-keyword">false</span>
214
+ <span class="ruby-keyword">else</span>
215
+ <span class="ruby-identifier">ret</span>
216
+ <span class="ruby-keyword">end</span>
217
+ <span class="ruby-keyword">end</span></pre>
218
+ </div>
219
+
220
+ </div>
221
+
222
+
223
+
224
+
225
+ </div>
226
+
227
+
228
+ <div id="method-i-map_get" class="method-detail ">
229
+
230
+ <div class="method-heading">
231
+ <span class="method-name">map_get</span><span
232
+ class="method-args">(key, mapkey)</span>
233
+
234
+ <span class="method-click-advice">click to toggle source</span>
235
+
236
+ </div>
237
+
238
+
239
+ <div class="method-description">
240
+
241
+
242
+
243
+
244
+
245
+
246
+ <div class="method-source-code" id="map_get-source">
247
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 11</span>
248
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_get</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">mapkey</span>)
249
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-node">&quot;map_get %s #{mapkey}&quot;</span>)
250
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span><span class="ruby-operator">==</span><span class="ruby-keyword">nil</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
251
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>]
252
+ <span class="ruby-keyword">end</span></pre>
253
+ </div>
254
+
255
+ </div>
256
+
257
+
258
+
259
+
260
+ </div>
261
+
262
+
263
+ <div id="method-i-map_key-3F" class="method-detail ">
264
+
265
+ <div class="method-heading">
266
+ <span class="method-name">map_key?</span><span
267
+ class="method-args">(key, mapkey)</span>
268
+
269
+ <span class="method-click-advice">click to toggle source</span>
270
+
271
+ </div>
272
+
273
+
274
+ <div class="method-description">
275
+
276
+
277
+
278
+
279
+
280
+
281
+ <div class="method-source-code" id="map_key-3F-source">
282
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 31</span>
283
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_key?</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">mapkey</span>)
284
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:oneline_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-node">&quot;map_key? %s #{mapkey}&quot;</span>)
285
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span> <span class="ruby-operator">==</span> <span class="ruby-string">&#39;true&#39;</span>
286
+ <span class="ruby-keyword">true</span>
287
+ <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">ret</span> <span class="ruby-operator">==</span> <span class="ruby-string">&#39;false&#39;</span>
288
+ <span class="ruby-keyword">false</span>
289
+ <span class="ruby-keyword">else</span>
290
+ <span class="ruby-identifier">ret</span>
291
+ <span class="ruby-keyword">end</span>
292
+ <span class="ruby-keyword">end</span></pre>
293
+ </div>
294
+
295
+ </div>
296
+
297
+
298
+
299
+
300
+ </div>
301
+
302
+
303
+ <div id="method-i-map_keys" class="method-detail ">
304
+
305
+ <div class="method-heading">
306
+ <span class="method-name">map_keys</span><span
307
+ class="method-args">(key)</span>
308
+
309
+ <span class="method-click-advice">click to toggle source</span>
310
+
311
+ </div>
312
+
313
+
314
+ <div class="method-description">
315
+
316
+
317
+
318
+
319
+
320
+
321
+ <div class="method-source-code" id="map_keys-source">
322
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 65</span>
323
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_keys</span>(<span class="ruby-identifier">key</span>)
324
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-string">&quot;map_keys %s&quot;</span>)
325
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
326
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>] = <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_i</span>
327
+ <span class="ruby-identifier">ret</span>
328
+ <span class="ruby-keyword">end</span></pre>
329
+ </div>
330
+
331
+ </div>
332
+
333
+
334
+
335
+
336
+ </div>
337
+
338
+
339
+ <div id="method-i-map_set" class="method-detail ">
340
+
341
+ <div class="method-heading">
342
+ <span class="method-name">map_set</span><span
343
+ class="method-args">(key, mapkey, value, expt = 0)</span>
344
+
345
+ <span class="method-click-advice">click to toggle source</span>
346
+
347
+ </div>
348
+
349
+
350
+ <div class="method-description">
351
+
352
+
353
+
354
+
355
+
356
+
357
+ <div class="method-source-code" id="map_set-source">
358
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 6</span>
359
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_set</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">mapkey</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">expt</span> = <span class="ruby-value">0</span>)
360
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
361
+ <span class="ruby-identifier">sender</span>(<span class="ruby-value">:oneline_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>, <span class="ruby-node">&quot;map_set %s #{mapkey} 0 #{expt} #{value.length}&quot;</span>)
362
+ <span class="ruby-keyword">end</span></pre>
363
+ </div>
364
+
365
+ </div>
366
+
367
+
368
+
369
+
370
+ </div>
371
+
372
+
373
+ <div id="method-i-map_size" class="method-detail ">
374
+
375
+ <div class="method-heading">
376
+ <span class="method-name">map_size</span><span
377
+ class="method-args">(key)</span>
378
+
379
+ <span class="method-click-advice">click to toggle source</span>
380
+
381
+ </div>
382
+
383
+
384
+ <div class="method-description">
385
+
386
+
387
+
388
+
389
+
390
+
391
+ <div class="method-source-code" id="map_size-source">
392
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 25</span>
393
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_size</span>(<span class="ruby-identifier">key</span>)
394
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:oneline_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-string">&quot;map_size %s&quot;</span>)
395
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\d+/</span>
396
+ <span class="ruby-identifier">ret</span>
397
+ <span class="ruby-keyword">end</span></pre>
398
+ </div>
399
+
400
+ </div>
401
+
402
+
403
+
404
+
405
+ </div>
406
+
407
+
408
+ <div id="method-i-map_to_s" class="method-detail ">
409
+
410
+ <div class="method-heading">
411
+ <span class="method-name">map_to_s</span><span
412
+ class="method-args">(key)</span>
413
+
414
+ <span class="method-click-advice">click to toggle source</span>
415
+
416
+ </div>
417
+
418
+
419
+ <div class="method-description">
420
+
421
+
422
+
423
+
424
+
425
+
426
+ <div class="method-source-code" id="map_to_s-source">
427
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 79</span>
428
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_to_s</span>(<span class="ruby-identifier">key</span>)
429
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-string">&quot;map_to_s %s&quot;</span>)
430
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
431
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>]
432
+ <span class="ruby-keyword">end</span></pre>
433
+ </div>
434
+
435
+ </div>
436
+
437
+
438
+
439
+
440
+ </div>
441
+
442
+
443
+ <div id="method-i-map_value-3F" class="method-detail ">
444
+
445
+ <div class="method-heading">
446
+ <span class="method-name">map_value?</span><span
447
+ class="method-args">(key, value)</span>
448
+
449
+ <span class="method-click-advice">click to toggle source</span>
450
+
451
+ </div>
452
+
453
+
454
+ <div class="method-description">
455
+
456
+
457
+
458
+
459
+
460
+
461
+ <div class="method-source-code" id="map_value-3F-source">
462
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 42</span>
463
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_value?</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
464
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
465
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:oneline_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>, <span class="ruby-node">&quot;map_value? %s #{value.length}&quot;</span>)
466
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span> <span class="ruby-operator">==</span> <span class="ruby-string">&#39;true&#39;</span>
467
+ <span class="ruby-keyword">true</span>
468
+ <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">ret</span> <span class="ruby-operator">==</span> <span class="ruby-string">&#39;false&#39;</span>
469
+ <span class="ruby-keyword">false</span>
470
+ <span class="ruby-keyword">else</span>
471
+ <span class="ruby-identifier">ret</span>
472
+ <span class="ruby-keyword">end</span>
473
+ <span class="ruby-keyword">end</span></pre>
474
+ </div>
475
+
476
+ </div>
477
+
478
+
479
+
480
+
481
+ </div>
482
+
483
+
484
+ <div id="method-i-map_values" class="method-detail ">
485
+
486
+ <div class="method-heading">
487
+ <span class="method-name">map_values</span><span
488
+ class="method-args">(key)</span>
489
+
490
+ <span class="method-click-advice">click to toggle source</span>
491
+
492
+ </div>
493
+
494
+
495
+ <div class="method-description">
496
+
497
+
498
+
499
+
500
+
501
+
502
+ <div class="method-source-code" id="map_values-source">
503
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/map.rb, line 72</span>
504
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">map_values</span>(<span class="ruby-identifier">key</span>)
505
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-string">&quot;map_values %s&quot;</span>)
506
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
507
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>] = <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_i</span>
508
+ <span class="ruby-identifier">ret</span>
509
+ <span class="ruby-keyword">end</span></pre>
510
+ </div>
511
+
512
+ </div>
513
+
514
+
515
+
516
+
517
+ </div>
518
+
519
+
520
+ </section>
521
+
522
+ </section>
523
+ </main>
524
+
525
+
526
+ <footer id="validator-badges" role="contentinfo">
527
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
528
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
529
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
530
+ </footer>
531
+