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,1276 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset=" UTF-8">
6
+
7
+ <title>module Roma::Client::Plugin::Alist - 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-alist_at">#alist_at</a>
67
+
68
+ <li ><a href="#method-i-alist_clear">#alist_clear</a>
69
+
70
+ <li ><a href="#method-i-alist_delete">#alist_delete</a>
71
+
72
+ <li ><a href="#method-i-alist_delete_at">#alist_delete_at</a>
73
+
74
+ <li ><a href="#method-i-alist_empty-3F">#alist_empty?</a>
75
+
76
+ <li ><a href="#method-i-alist_expired_swap_and_insert">#alist_expired_swap_and_insert</a>
77
+
78
+ <li ><a href="#method-i-alist_expired_swap_and_push">#alist_expired_swap_and_push</a>
79
+
80
+ <li ><a href="#method-i-alist_expired_swap_and_sized_insert">#alist_expired_swap_and_sized_insert</a>
81
+
82
+ <li ><a href="#method-i-alist_expired_swap_and_sized_push">#alist_expired_swap_and_sized_push</a>
83
+
84
+ <li ><a href="#method-i-alist_first">#alist_first</a>
85
+
86
+ <li ><a href="#method-i-alist_gets">#alist_gets</a>
87
+
88
+ <li ><a href="#method-i-alist_gets_with_time">#alist_gets_with_time</a>
89
+
90
+ <li ><a href="#method-i-alist_include-3F">#alist_include?</a>
91
+
92
+ <li ><a href="#method-i-alist_index">#alist_index</a>
93
+
94
+ <li ><a href="#method-i-alist_insert">#alist_insert</a>
95
+
96
+ <li ><a href="#method-i-alist_join">#alist_join</a>
97
+
98
+ <li ><a href="#method-i-alist_join_with_time">#alist_join_with_time</a>
99
+
100
+ <li ><a href="#method-i-alist_last">#alist_last</a>
101
+
102
+ <li ><a href="#method-i-alist_length">#alist_length</a>
103
+
104
+ <li ><a href="#method-i-alist_pop">#alist_pop</a>
105
+
106
+ <li ><a href="#method-i-alist_push">#alist_push</a>
107
+
108
+ <li ><a href="#method-i-alist_shift">#alist_shift</a>
109
+
110
+ <li ><a href="#method-i-alist_sized_insert">#alist_sized_insert</a>
111
+
112
+ <li ><a href="#method-i-alist_sized_push">#alist_sized_push</a>
113
+
114
+ <li ><a href="#method-i-alist_swap_and_insert">#alist_swap_and_insert</a>
115
+
116
+ <li ><a href="#method-i-alist_swap_and_push">#alist_swap_and_push</a>
117
+
118
+ <li ><a href="#method-i-alist_swap_and_sized_insert">#alist_swap_and_sized_insert</a>
119
+
120
+ <li ><a href="#method-i-alist_swap_and_sized_push">#alist_swap_and_sized_push</a>
121
+
122
+ <li ><a href="#method-i-alist_to_json">#alist_to_json</a>
123
+
124
+ <li ><a href="#method-i-alist_to_s">#alist_to_s</a>
125
+
126
+ <li ><a href="#method-i-alist_update_at">#alist_update_at</a>
127
+
128
+ </ul>
129
+ </div>
130
+
131
+ </div>
132
+ </nav>
133
+
134
+ <main role="main" aria-labelledby="module-Roma::Client::Plugin::Alist">
135
+ <h1 id="module-Roma::Client::Plugin::Alist" class="module">
136
+ module Roma::Client::Plugin::Alist
137
+ </h1>
138
+
139
+ <section class="description">
140
+
141
+ </section>
142
+
143
+
144
+
145
+
146
+ <section id="5Buntitled-5D" class="documentation-section">
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
157
+ <header>
158
+ <h3>Public Instance Methods</h3>
159
+ </header>
160
+
161
+
162
+ <div id="method-i-alist_at" class="method-detail ">
163
+
164
+ <div class="method-heading">
165
+ <span class="method-name">alist_at</span><span
166
+ class="method-args">(key, index)</span>
167
+
168
+ <span class="method-click-advice">click to toggle source</span>
169
+
170
+ </div>
171
+
172
+
173
+ <div class="method-description">
174
+
175
+
176
+
177
+
178
+
179
+
180
+ <div class="method-source-code" id="alist_at-source">
181
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 6</span>
182
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_at</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">index</span>)
183
+ <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;alist_at %s #{index}&quot;</span>)
184
+ <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>
185
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>]
186
+ <span class="ruby-keyword">end</span></pre>
187
+ </div>
188
+
189
+ </div>
190
+
191
+
192
+
193
+
194
+ </div>
195
+
196
+
197
+ <div id="method-i-alist_clear" class="method-detail ">
198
+
199
+ <div class="method-heading">
200
+ <span class="method-name">alist_clear</span><span
201
+ class="method-args">(key)</span>
202
+
203
+ <span class="method-click-advice">click to toggle source</span>
204
+
205
+ </div>
206
+
207
+
208
+ <div class="method-description">
209
+
210
+
211
+
212
+
213
+
214
+
215
+ <div class="method-source-code" id="alist_clear-source">
216
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 12</span>
217
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_clear</span>(<span class="ruby-identifier">key</span>)
218
+ <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;alist_clear %s&quot;</span>)
219
+ <span class="ruby-keyword">end</span></pre>
220
+ </div>
221
+
222
+ </div>
223
+
224
+
225
+
226
+
227
+ </div>
228
+
229
+
230
+ <div id="method-i-alist_delete" class="method-detail ">
231
+
232
+ <div class="method-heading">
233
+ <span class="method-name">alist_delete</span><span
234
+ class="method-args">(key, value)</span>
235
+
236
+ <span class="method-click-advice">click to toggle source</span>
237
+
238
+ </div>
239
+
240
+
241
+ <div class="method-description">
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <div class="method-source-code" id="alist_delete-source">
249
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 16</span>
250
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_delete</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
251
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
252
+ <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;alist_delete %s #{value.length}&quot;</span>)
253
+ <span class="ruby-keyword">end</span></pre>
254
+ </div>
255
+
256
+ </div>
257
+
258
+
259
+
260
+
261
+ </div>
262
+
263
+
264
+ <div id="method-i-alist_delete_at" class="method-detail ">
265
+
266
+ <div class="method-heading">
267
+ <span class="method-name">alist_delete_at</span><span
268
+ class="method-args">(key, index)</span>
269
+
270
+ <span class="method-click-advice">click to toggle source</span>
271
+
272
+ </div>
273
+
274
+
275
+ <div class="method-description">
276
+
277
+
278
+
279
+
280
+
281
+
282
+ <div class="method-source-code" id="alist_delete_at-source">
283
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 21</span>
284
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_delete_at</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">index</span>)
285
+ <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;alist_delete_at %s #{index}&quot;</span>)
286
+ <span class="ruby-keyword">end</span></pre>
287
+ </div>
288
+
289
+ </div>
290
+
291
+
292
+
293
+
294
+ </div>
295
+
296
+
297
+ <div id="method-i-alist_empty-3F" class="method-detail ">
298
+
299
+ <div class="method-heading">
300
+ <span class="method-name">alist_empty?</span><span
301
+ class="method-args">(key)</span>
302
+
303
+ <span class="method-click-advice">click to toggle source</span>
304
+
305
+ </div>
306
+
307
+
308
+ <div class="method-description">
309
+
310
+
311
+
312
+
313
+
314
+
315
+ <div class="method-source-code" id="alist_empty-3F-source">
316
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 25</span>
317
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_empty?</span>(<span class="ruby-identifier">key</span>)
318
+ <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;alist_empty? %s&quot;</span>)
319
+ <span class="ruby-keyword">end</span></pre>
320
+ </div>
321
+
322
+ </div>
323
+
324
+
325
+
326
+
327
+ </div>
328
+
329
+
330
+ <div id="method-i-alist_expired_swap_and_insert" class="method-detail ">
331
+
332
+ <div class="method-heading">
333
+ <span class="method-name">alist_expired_swap_and_insert</span><span
334
+ class="method-args">(key, expt, value)</span>
335
+
336
+ <span class="method-click-advice">click to toggle source</span>
337
+
338
+ </div>
339
+
340
+
341
+ <div class="method-description">
342
+
343
+
344
+
345
+
346
+
347
+
348
+ <div class="method-source-code" id="alist_expired_swap_and_insert-source">
349
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 87</span>
350
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_expired_swap_and_insert</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">expt</span>, <span class="ruby-identifier">value</span>)
351
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
352
+ <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>,
353
+ <span class="ruby-node">&quot;alist_expired_swap_and_insert %s #{expt} #{value.length}&quot;</span>)
354
+ <span class="ruby-keyword">end</span></pre>
355
+ </div>
356
+
357
+ </div>
358
+
359
+
360
+
361
+
362
+ </div>
363
+
364
+
365
+ <div id="method-i-alist_expired_swap_and_push" class="method-detail ">
366
+
367
+ <div class="method-heading">
368
+ <span class="method-name">alist_expired_swap_and_push</span><span
369
+ class="method-args">(key, expt, value)</span>
370
+
371
+ <span class="method-click-advice">click to toggle source</span>
372
+
373
+ </div>
374
+
375
+
376
+ <div class="method-description">
377
+
378
+
379
+
380
+
381
+
382
+
383
+ <div class="method-source-code" id="alist_expired_swap_and_push-source">
384
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 173</span>
385
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_expired_swap_and_push</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">expt</span>, <span class="ruby-identifier">value</span>)
386
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
387
+ <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>,
388
+ <span class="ruby-node">&quot;alist_expired_swap_and_push %s #{expt} #{value.length}&quot;</span>)
389
+ <span class="ruby-keyword">end</span></pre>
390
+ </div>
391
+
392
+ </div>
393
+
394
+
395
+
396
+
397
+ </div>
398
+
399
+
400
+ <div id="method-i-alist_expired_swap_and_sized_insert" class="method-detail ">
401
+
402
+ <div class="method-heading">
403
+ <span class="method-name">alist_expired_swap_and_sized_insert</span><span
404
+ class="method-args">(key, expt, array_size, value)</span>
405
+
406
+ <span class="method-click-advice">click to toggle source</span>
407
+
408
+ </div>
409
+
410
+
411
+ <div class="method-description">
412
+
413
+
414
+
415
+
416
+
417
+
418
+ <div class="method-source-code" id="alist_expired_swap_and_sized_insert-source">
419
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 93</span>
420
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_expired_swap_and_sized_insert</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">expt</span>, <span class="ruby-identifier">array_size</span>, <span class="ruby-identifier">value</span>)
421
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
422
+ <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>,
423
+ <span class="ruby-node">&quot;alist_expired_swap_and_sized_insert %s #{expt} #{array_size} #{value.length}&quot;</span>)
424
+ <span class="ruby-keyword">end</span></pre>
425
+ </div>
426
+
427
+ </div>
428
+
429
+
430
+
431
+
432
+ </div>
433
+
434
+
435
+ <div id="method-i-alist_expired_swap_and_sized_push" class="method-detail ">
436
+
437
+ <div class="method-heading">
438
+ <span class="method-name">alist_expired_swap_and_sized_push</span><span
439
+ class="method-args">(key, expt, array_size, value)</span>
440
+
441
+ <span class="method-click-advice">click to toggle source</span>
442
+
443
+ </div>
444
+
445
+
446
+ <div class="method-description">
447
+
448
+
449
+
450
+
451
+
452
+
453
+ <div class="method-source-code" id="alist_expired_swap_and_sized_push-source">
454
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 179</span>
455
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_expired_swap_and_sized_push</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">expt</span>, <span class="ruby-identifier">array_size</span>, <span class="ruby-identifier">value</span>)
456
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
457
+ <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>,
458
+ <span class="ruby-node">&quot;alist_expired_swap_and_sized_push %s #{expt} #{array_size} #{value.length}&quot;</span>)
459
+ <span class="ruby-keyword">end</span></pre>
460
+ </div>
461
+
462
+ </div>
463
+
464
+
465
+
466
+
467
+ </div>
468
+
469
+
470
+ <div id="method-i-alist_first" class="method-detail ">
471
+
472
+ <div class="method-heading">
473
+ <span class="method-name">alist_first</span><span
474
+ class="method-args">(key)</span>
475
+
476
+ <span class="method-click-advice">click to toggle source</span>
477
+
478
+ </div>
479
+
480
+
481
+ <div class="method-description">
482
+
483
+
484
+
485
+
486
+
487
+
488
+ <div class="method-source-code" id="alist_first-source">
489
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 29</span>
490
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_first</span>(<span class="ruby-identifier">key</span>)
491
+ <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;alist_first %s&quot;</span>)
492
+ <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>
493
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>]
494
+ <span class="ruby-keyword">end</span></pre>
495
+ </div>
496
+
497
+ </div>
498
+
499
+
500
+
501
+
502
+ </div>
503
+
504
+
505
+ <div id="method-i-alist_gets" class="method-detail ">
506
+
507
+ <div class="method-heading">
508
+ <span class="method-name">alist_gets</span><span
509
+ class="method-args">(key, range=nil)</span>
510
+
511
+ <span class="method-click-advice">click to toggle source</span>
512
+
513
+ </div>
514
+
515
+
516
+ <div class="method-description">
517
+
518
+
519
+
520
+
521
+
522
+
523
+ <div class="method-source-code" id="alist_gets-source">
524
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 35</span>
525
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_gets</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">range</span>=<span class="ruby-keyword">nil</span>)
526
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">range</span>
527
+ <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;alist_gets %s #{range}&quot;</span>)
528
+ <span class="ruby-keyword">else</span>
529
+ <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;alist_gets %s&quot;</span>)
530
+ <span class="ruby-keyword">end</span>
531
+ <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>
532
+ <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>
533
+ <span class="ruby-identifier">ret</span>
534
+ <span class="ruby-keyword">end</span></pre>
535
+ </div>
536
+
537
+ </div>
538
+
539
+
540
+
541
+
542
+ </div>
543
+
544
+
545
+ <div id="method-i-alist_gets_with_time" class="method-detail ">
546
+
547
+ <div class="method-heading">
548
+ <span class="method-name">alist_gets_with_time</span><span
549
+ class="method-args">(key, range=nil)</span>
550
+
551
+ <span class="method-click-advice">click to toggle source</span>
552
+
553
+ </div>
554
+
555
+
556
+ <div class="method-description">
557
+
558
+
559
+
560
+
561
+
562
+
563
+ <div class="method-source-code" id="alist_gets_with_time-source">
564
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 46</span>
565
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_gets_with_time</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">range</span>=<span class="ruby-keyword">nil</span>)
566
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">range</span>
567
+ <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;alist_gets_with_time %s #{range}&quot;</span>)
568
+ <span class="ruby-keyword">else</span>
569
+ <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;alist_gets_with_time %s&quot;</span>)
570
+ <span class="ruby-keyword">end</span>
571
+ <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>
572
+ <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>
573
+ <span class="ruby-identifier">ret</span>
574
+ <span class="ruby-keyword">end</span></pre>
575
+ </div>
576
+
577
+ </div>
578
+
579
+
580
+
581
+
582
+ </div>
583
+
584
+
585
+ <div id="method-i-alist_include-3F" class="method-detail ">
586
+
587
+ <div class="method-heading">
588
+ <span class="method-name">alist_include?</span><span
589
+ class="method-args">(key, value)</span>
590
+
591
+ <span class="method-click-advice">click to toggle source</span>
592
+
593
+ </div>
594
+
595
+
596
+ <div class="method-description">
597
+
598
+
599
+
600
+
601
+
602
+
603
+ <div class="method-source-code" id="alist_include-3F-source">
604
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 57</span>
605
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_include?</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
606
+ <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;alist_include? %s #{value.length}&quot;</span>)
607
+ <span class="ruby-keyword">end</span></pre>
608
+ </div>
609
+
610
+ </div>
611
+
612
+
613
+
614
+
615
+ </div>
616
+
617
+
618
+ <div id="method-i-alist_index" class="method-detail ">
619
+
620
+ <div class="method-heading">
621
+ <span class="method-name">alist_index</span><span
622
+ class="method-args">(key, value)</span>
623
+
624
+ <span class="method-click-advice">click to toggle source</span>
625
+
626
+ </div>
627
+
628
+
629
+ <div class="method-description">
630
+
631
+
632
+
633
+
634
+
635
+
636
+ <div class="method-source-code" id="alist_index-source">
637
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 61</span>
638
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_index</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
639
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
640
+ <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;alist_index %s #{value.length}&quot;</span>)
641
+ <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>
642
+ <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-string">&#39;nil&#39;</span>
643
+ <span class="ruby-identifier">ret</span>
644
+ <span class="ruby-keyword">end</span></pre>
645
+ </div>
646
+
647
+ </div>
648
+
649
+
650
+
651
+
652
+ </div>
653
+
654
+
655
+ <div id="method-i-alist_insert" class="method-detail ">
656
+
657
+ <div class="method-heading">
658
+ <span class="method-name">alist_insert</span><span
659
+ class="method-args">(key, index, value)</span>
660
+
661
+ <span class="method-click-advice">click to toggle source</span>
662
+
663
+ </div>
664
+
665
+
666
+ <div class="method-description">
667
+
668
+
669
+
670
+
671
+
672
+
673
+ <div class="method-source-code" id="alist_insert-source">
674
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 69</span>
675
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_insert</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">index</span>, <span class="ruby-identifier">value</span>)
676
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
677
+ <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;alist_insert %s #{index} #{value.length}&quot;</span>)
678
+ <span class="ruby-keyword">end</span></pre>
679
+ </div>
680
+
681
+ </div>
682
+
683
+
684
+
685
+
686
+ </div>
687
+
688
+
689
+ <div id="method-i-alist_join" class="method-detail ">
690
+
691
+ <div class="method-heading">
692
+ <span class="method-name">alist_join</span><span
693
+ class="method-args">(key, sep, range=nil)</span>
694
+
695
+ <span class="method-click-advice">click to toggle source</span>
696
+
697
+ </div>
698
+
699
+
700
+ <div class="method-description">
701
+
702
+
703
+
704
+
705
+
706
+
707
+ <div class="method-source-code" id="alist_join-source">
708
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 99</span>
709
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_join</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">sep</span>, <span class="ruby-identifier">range</span>=<span class="ruby-keyword">nil</span>)
710
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">range</span>
711
+ <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-identifier">sep</span>, <span class="ruby-node">&quot;alist_join %s #{sep.length} #{range}&quot;</span>)
712
+ <span class="ruby-keyword">else</span>
713
+ <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-identifier">sep</span>, <span class="ruby-node">&quot;alist_join %s #{sep.length}&quot;</span>)
714
+ <span class="ruby-keyword">end</span>
715
+ <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>
716
+ <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>
717
+ <span class="ruby-identifier">ret</span>
718
+ <span class="ruby-keyword">end</span></pre>
719
+ </div>
720
+
721
+ </div>
722
+
723
+
724
+
725
+
726
+ </div>
727
+
728
+
729
+ <div id="method-i-alist_join_with_time" class="method-detail ">
730
+
731
+ <div class="method-heading">
732
+ <span class="method-name">alist_join_with_time</span><span
733
+ class="method-args">(key, sep, range=nil)</span>
734
+
735
+ <span class="method-click-advice">click to toggle source</span>
736
+
737
+ </div>
738
+
739
+
740
+ <div class="method-description">
741
+
742
+
743
+
744
+
745
+
746
+
747
+ <div class="method-source-code" id="alist_join_with_time-source">
748
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 110</span>
749
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_join_with_time</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">sep</span>, <span class="ruby-identifier">range</span>=<span class="ruby-keyword">nil</span>)
750
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">range</span>
751
+ <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-identifier">sep</span>,
752
+ <span class="ruby-node">&quot;alist_join_with_time %s #{sep.length} #{range}&quot;</span>)
753
+ <span class="ruby-keyword">else</span>
754
+ <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-identifier">sep</span>,
755
+ <span class="ruby-node">&quot;alist_join_with_time %s #{sep.length}&quot;</span>)
756
+ <span class="ruby-keyword">end</span>
757
+ <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>
758
+ <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>
759
+ <span class="ruby-identifier">ret</span>
760
+ <span class="ruby-keyword">end</span></pre>
761
+ </div>
762
+
763
+ </div>
764
+
765
+
766
+
767
+
768
+ </div>
769
+
770
+
771
+ <div id="method-i-alist_last" class="method-detail ">
772
+
773
+ <div class="method-heading">
774
+ <span class="method-name">alist_last</span><span
775
+ class="method-args">(key)</span>
776
+
777
+ <span class="method-click-advice">click to toggle source</span>
778
+
779
+ </div>
780
+
781
+
782
+ <div class="method-description">
783
+
784
+
785
+
786
+
787
+
788
+
789
+ <div class="method-source-code" id="alist_last-source">
790
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 133</span>
791
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_last</span>(<span class="ruby-identifier">key</span>)
792
+ <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;alist_last %s&quot;</span>)
793
+ <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>
794
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>]
795
+ <span class="ruby-keyword">end</span></pre>
796
+ </div>
797
+
798
+ </div>
799
+
800
+
801
+
802
+
803
+ </div>
804
+
805
+
806
+ <div id="method-i-alist_length" class="method-detail ">
807
+
808
+ <div class="method-heading">
809
+ <span class="method-name">alist_length</span><span
810
+ class="method-args">(key)</span>
811
+
812
+ <span class="method-click-advice">click to toggle source</span>
813
+
814
+ </div>
815
+
816
+
817
+ <div class="method-description">
818
+
819
+
820
+
821
+
822
+
823
+
824
+ <div class="method-source-code" id="alist_length-source">
825
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 139</span>
826
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_length</span>(<span class="ruby-identifier">key</span>)
827
+ <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;alist_length %s&quot;</span>)
828
+ <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>
829
+ <span class="ruby-identifier">ret</span>
830
+ <span class="ruby-keyword">end</span></pre>
831
+ </div>
832
+
833
+ </div>
834
+
835
+
836
+
837
+
838
+ </div>
839
+
840
+
841
+ <div id="method-i-alist_pop" class="method-detail ">
842
+
843
+ <div class="method-heading">
844
+ <span class="method-name">alist_pop</span><span
845
+ class="method-args">(key)</span>
846
+
847
+ <span class="method-click-advice">click to toggle source</span>
848
+
849
+ </div>
850
+
851
+
852
+ <div class="method-description">
853
+
854
+
855
+
856
+
857
+
858
+
859
+ <div class="method-source-code" id="alist_pop-source">
860
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 145</span>
861
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_pop</span>(<span class="ruby-identifier">key</span>)
862
+ <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;alist_pop %s&quot;</span>)
863
+ <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>
864
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>]
865
+ <span class="ruby-keyword">end</span></pre>
866
+ </div>
867
+
868
+ </div>
869
+
870
+
871
+
872
+
873
+ </div>
874
+
875
+
876
+ <div id="method-i-alist_push" class="method-detail ">
877
+
878
+ <div class="method-heading">
879
+ <span class="method-name">alist_push</span><span
880
+ class="method-args">(key, value)</span>
881
+
882
+ <span class="method-click-advice">click to toggle source</span>
883
+
884
+ </div>
885
+
886
+
887
+ <div class="method-description">
888
+
889
+
890
+
891
+
892
+
893
+
894
+ <div class="method-source-code" id="alist_push-source">
895
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 151</span>
896
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_push</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
897
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
898
+ <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;alist_push %s #{value.length}&quot;</span>)
899
+ <span class="ruby-keyword">end</span></pre>
900
+ </div>
901
+
902
+ </div>
903
+
904
+
905
+
906
+
907
+ </div>
908
+
909
+
910
+ <div id="method-i-alist_shift" class="method-detail ">
911
+
912
+ <div class="method-heading">
913
+ <span class="method-name">alist_shift</span><span
914
+ class="method-args">(key)</span>
915
+
916
+ <span class="method-click-advice">click to toggle source</span>
917
+
918
+ </div>
919
+
920
+
921
+ <div class="method-description">
922
+
923
+
924
+
925
+
926
+
927
+
928
+ <div class="method-source-code" id="alist_shift-source">
929
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 191</span>
930
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_shift</span>(<span class="ruby-identifier">key</span>)
931
+ <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;alist_shift %s&quot;</span>)
932
+ <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>
933
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>]
934
+ <span class="ruby-keyword">end</span></pre>
935
+ </div>
936
+
937
+ </div>
938
+
939
+
940
+
941
+
942
+ </div>
943
+
944
+
945
+ <div id="method-i-alist_sized_insert" class="method-detail ">
946
+
947
+ <div class="method-heading">
948
+ <span class="method-name">alist_sized_insert</span><span
949
+ class="method-args">(key, array_size, value)</span>
950
+
951
+ <span class="method-click-advice">click to toggle source</span>
952
+
953
+ </div>
954
+
955
+
956
+ <div class="method-description">
957
+
958
+
959
+
960
+
961
+
962
+
963
+ <div class="method-source-code" id="alist_sized_insert-source">
964
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 74</span>
965
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_sized_insert</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">array_size</span>, <span class="ruby-identifier">value</span>)
966
+ <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;alist_sized_insert %s #{array_size} #{value.length}&quot;</span>)
967
+ <span class="ruby-keyword">end</span></pre>
968
+ </div>
969
+
970
+ </div>
971
+
972
+
973
+
974
+
975
+ </div>
976
+
977
+
978
+ <div id="method-i-alist_sized_push" class="method-detail ">
979
+
980
+ <div class="method-heading">
981
+ <span class="method-name">alist_sized_push</span><span
982
+ class="method-args">(key, array_size, value)</span>
983
+
984
+ <span class="method-click-advice">click to toggle source</span>
985
+
986
+ </div>
987
+
988
+
989
+ <div class="method-description">
990
+
991
+
992
+
993
+
994
+
995
+
996
+ <div class="method-source-code" id="alist_sized_push-source">
997
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 156</span>
998
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_sized_push</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">array_size</span>, <span class="ruby-identifier">value</span>)
999
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
1000
+ <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>,
1001
+ <span class="ruby-node">&quot;alist_sized_push %s #{array_size} #{value.length}&quot;</span>)
1002
+ <span class="ruby-keyword">end</span></pre>
1003
+ </div>
1004
+
1005
+ </div>
1006
+
1007
+
1008
+
1009
+
1010
+ </div>
1011
+
1012
+
1013
+ <div id="method-i-alist_swap_and_insert" class="method-detail ">
1014
+
1015
+ <div class="method-heading">
1016
+ <span class="method-name">alist_swap_and_insert</span><span
1017
+ class="method-args">(key, value)</span>
1018
+
1019
+ <span class="method-click-advice">click to toggle source</span>
1020
+
1021
+ </div>
1022
+
1023
+
1024
+ <div class="method-description">
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+ <div class="method-source-code" id="alist_swap_and_insert-source">
1032
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 78</span>
1033
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_swap_and_insert</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
1034
+ <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;alist_swap_and_insert %s #{value.length}&quot;</span>)
1035
+ <span class="ruby-keyword">end</span></pre>
1036
+ </div>
1037
+
1038
+ </div>
1039
+
1040
+
1041
+
1042
+
1043
+ </div>
1044
+
1045
+
1046
+ <div id="method-i-alist_swap_and_push" class="method-detail ">
1047
+
1048
+ <div class="method-heading">
1049
+ <span class="method-name">alist_swap_and_push</span><span
1050
+ class="method-args">(key, value)</span>
1051
+
1052
+ <span class="method-click-advice">click to toggle source</span>
1053
+
1054
+ </div>
1055
+
1056
+
1057
+ <div class="method-description">
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+ <div class="method-source-code" id="alist_swap_and_push-source">
1065
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 162</span>
1066
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_swap_and_push</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
1067
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
1068
+ <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;alist_swap_and_push %s #{value.length}&quot;</span>)
1069
+ <span class="ruby-keyword">end</span></pre>
1070
+ </div>
1071
+
1072
+ </div>
1073
+
1074
+
1075
+
1076
+
1077
+ </div>
1078
+
1079
+
1080
+ <div id="method-i-alist_swap_and_sized_insert" class="method-detail ">
1081
+
1082
+ <div class="method-heading">
1083
+ <span class="method-name">alist_swap_and_sized_insert</span><span
1084
+ class="method-args">(key, array_size, value)</span>
1085
+
1086
+ <span class="method-click-advice">click to toggle source</span>
1087
+
1088
+ </div>
1089
+
1090
+
1091
+ <div class="method-description">
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+
1098
+ <div class="method-source-code" id="alist_swap_and_sized_insert-source">
1099
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 82</span>
1100
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_swap_and_sized_insert</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">array_size</span>, <span class="ruby-identifier">value</span>)
1101
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
1102
+ <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;alist_swap_and_sized_insert %s #{array_size} #{value.length}&quot;</span>)
1103
+ <span class="ruby-keyword">end</span></pre>
1104
+ </div>
1105
+
1106
+ </div>
1107
+
1108
+
1109
+
1110
+
1111
+ </div>
1112
+
1113
+
1114
+ <div id="method-i-alist_swap_and_sized_push" class="method-detail ">
1115
+
1116
+ <div class="method-heading">
1117
+ <span class="method-name">alist_swap_and_sized_push</span><span
1118
+ class="method-args">(key, array_size, value)</span>
1119
+
1120
+ <span class="method-click-advice">click to toggle source</span>
1121
+
1122
+ </div>
1123
+
1124
+
1125
+ <div class="method-description">
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+ <div class="method-source-code" id="alist_swap_and_sized_push-source">
1133
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 167</span>
1134
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_swap_and_sized_push</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">array_size</span>, <span class="ruby-identifier">value</span>)
1135
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
1136
+ <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>,
1137
+ <span class="ruby-node">&quot;alist_swap_and_sized_push %s #{array_size} #{value.length}&quot;</span>)
1138
+ <span class="ruby-keyword">end</span></pre>
1139
+ </div>
1140
+
1141
+ </div>
1142
+
1143
+
1144
+
1145
+
1146
+ </div>
1147
+
1148
+
1149
+ <div id="method-i-alist_to_json" class="method-detail ">
1150
+
1151
+ <div class="method-heading">
1152
+ <span class="method-name">alist_to_json</span><span
1153
+ class="method-args">(key, range=nil)</span>
1154
+
1155
+ <span class="method-click-advice">click to toggle source</span>
1156
+
1157
+ </div>
1158
+
1159
+
1160
+ <div class="method-description">
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+ <div class="method-source-code" id="alist_to_json-source">
1168
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 123</span>
1169
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_to_json</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">range</span>=<span class="ruby-keyword">nil</span>)
1170
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">range</span>
1171
+ <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;alist_to_json %s #{range}&quot;</span>)
1172
+ <span class="ruby-keyword">else</span>
1173
+ <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;alist_to_json %s&quot;</span>)
1174
+ <span class="ruby-keyword">end</span>
1175
+ <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>
1176
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">0</span>]
1177
+ <span class="ruby-keyword">end</span></pre>
1178
+ </div>
1179
+
1180
+ </div>
1181
+
1182
+
1183
+
1184
+
1185
+ </div>
1186
+
1187
+
1188
+ <div id="method-i-alist_to_s" class="method-detail ">
1189
+
1190
+ <div class="method-heading">
1191
+ <span class="method-name">alist_to_s</span><span
1192
+ class="method-args">(key, range=nil)</span>
1193
+
1194
+ <span class="method-click-advice">click to toggle source</span>
1195
+
1196
+ </div>
1197
+
1198
+
1199
+ <div class="method-description">
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+
1206
+ <div class="method-source-code" id="alist_to_s-source">
1207
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 197</span>
1208
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_to_s</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">range</span>=<span class="ruby-keyword">nil</span>)
1209
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">range</span>
1210
+ <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;alist_to_s %s #{range}&quot;</span>)
1211
+ <span class="ruby-keyword">else</span>
1212
+ <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;alist_to_s %s&quot;</span>)
1213
+ <span class="ruby-keyword">end</span>
1214
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">ret</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">String</span>)
1215
+ <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>
1216
+ <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>
1217
+ <span class="ruby-identifier">ret</span>[<span class="ruby-value">1</span>] = <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">ret</span>[<span class="ruby-value">1</span>])
1218
+ <span class="ruby-identifier">ret</span>
1219
+ <span class="ruby-keyword">end</span></pre>
1220
+ </div>
1221
+
1222
+ </div>
1223
+
1224
+
1225
+
1226
+
1227
+ </div>
1228
+
1229
+
1230
+ <div id="method-i-alist_update_at" class="method-detail ">
1231
+
1232
+ <div class="method-heading">
1233
+ <span class="method-name">alist_update_at</span><span
1234
+ class="method-args">(key, index, value)</span>
1235
+
1236
+ <span class="method-click-advice">click to toggle source</span>
1237
+
1238
+ </div>
1239
+
1240
+
1241
+ <div class="method-description">
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+ <div class="method-source-code" id="alist_update_at-source">
1249
+ <pre><span class="ruby-comment"># File lib/roma/client/plugin/alist.rb, line 185</span>
1250
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">alist_update_at</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">index</span>, <span class="ruby-identifier">value</span>)
1251
+ <span class="ruby-identifier">value_validator</span>(<span class="ruby-identifier">value</span>)
1252
+ <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>,
1253
+ <span class="ruby-node">&quot;alist_update_at %s #{index} #{value.length}&quot;</span>)
1254
+ <span class="ruby-keyword">end</span></pre>
1255
+ </div>
1256
+
1257
+ </div>
1258
+
1259
+
1260
+
1261
+
1262
+ </div>
1263
+
1264
+
1265
+ </section>
1266
+
1267
+ </section>
1268
+ </main>
1269
+
1270
+
1271
+ <footer id="validator-badges" role="contentinfo">
1272
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
1273
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
1274
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
1275
+ </footer>
1276
+