rumai 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/CREDITS +4 -3
  2. data/HISTORY +327 -0
  3. data/INSTALL +31 -0
  4. data/README +92 -0
  5. data/USAGE +297 -0
  6. data/bin/rumai +9 -22
  7. data/doc/api/IO.html +119 -0
  8. data/doc/api/Integer.html +171 -0
  9. data/doc/api/Rumai.html +1270 -0
  10. data/doc/api/Rumai/Area.html +1485 -0
  11. data/doc/api/Rumai/Chain.html +301 -0
  12. data/doc/api/Rumai/Client.html +2451 -0
  13. data/doc/api/Rumai/ClientContainer.html +301 -0
  14. data/doc/api/Rumai/ExportInstanceMethods.html +103 -0
  15. data/doc/api/Rumai/IXP.html +94 -0
  16. data/doc/api/Rumai/IXP/Agent.html +1625 -0
  17. data/doc/api/Rumai/IXP/Agent/FidStream.html +959 -0
  18. data/doc/api/Rumai/IXP/Agent/RangedPool.html +381 -0
  19. data/doc/api/Rumai/IXP/Error.html +110 -0
  20. data/doc/api/Rumai/IXP/Fcall.html +503 -0
  21. data/doc/api/Rumai/IXP/Qid.html +207 -0
  22. data/doc/api/Rumai/IXP/Rattach.html +148 -0
  23. data/doc/api/Rumai/IXP/Rauth.html +148 -0
  24. data/doc/api/Rumai/IXP/Rclunk.html +148 -0
  25. data/doc/api/Rumai/IXP/Rcreate.html +148 -0
  26. data/doc/api/Rumai/IXP/Rerror.html +148 -0
  27. data/doc/api/Rumai/IXP/Rflush.html +148 -0
  28. data/doc/api/Rumai/IXP/Ropen.html +148 -0
  29. data/doc/api/Rumai/IXP/Rread.html +148 -0
  30. data/doc/api/Rumai/IXP/Rremove.html +148 -0
  31. data/doc/api/Rumai/IXP/Rstat.html +148 -0
  32. data/doc/api/Rumai/IXP/Rversion.html +148 -0
  33. data/doc/api/Rumai/IXP/Rwalk.html +148 -0
  34. data/doc/api/Rumai/IXP/Rwrite.html +148 -0
  35. data/doc/api/Rumai/IXP/Rwstat.html +148 -0
  36. data/doc/api/Rumai/IXP/Stat.html +335 -0
  37. data/doc/api/Rumai/IXP/Stream.html +194 -0
  38. data/doc/api/Rumai/IXP/Struct.html +586 -0
  39. data/doc/api/Rumai/IXP/Struct/ClassField.html +242 -0
  40. data/doc/api/Rumai/IXP/Struct/Field.html +782 -0
  41. data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +227 -0
  42. data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +153 -0
  43. data/doc/api/Rumai/IXP/Struct/Integer8Field.html +242 -0
  44. data/doc/api/Rumai/IXP/Struct/StringField.html +206 -0
  45. data/doc/api/Rumai/IXP/Tattach.html +148 -0
  46. data/doc/api/Rumai/IXP/Tauth.html +148 -0
  47. data/doc/api/Rumai/IXP/Tclunk.html +148 -0
  48. data/doc/api/Rumai/IXP/Tcreate.html +148 -0
  49. data/doc/api/Rumai/IXP/Terror.html +231 -0
  50. data/doc/api/Rumai/IXP/Tflush.html +148 -0
  51. data/doc/api/Rumai/IXP/Topen.html +240 -0
  52. data/doc/api/Rumai/IXP/Tread.html +148 -0
  53. data/doc/api/Rumai/IXP/Tremove.html +148 -0
  54. data/doc/api/Rumai/IXP/Tstat.html +148 -0
  55. data/doc/api/Rumai/IXP/Tversion.html +162 -0
  56. data/doc/api/Rumai/IXP/Twalk.html +148 -0
  57. data/doc/api/Rumai/IXP/Twrite.html +148 -0
  58. data/doc/api/Rumai/IXP/Twstat.html +148 -0
  59. data/doc/api/Rumai/Node.html +1406 -0
  60. data/doc/api/Rumai/View.html +1587 -0
  61. data/doc/api/Rumai/WidgetImpl.html +333 -0
  62. data/doc/api/Rumai/WidgetNode.html +246 -0
  63. data/doc/api/String.html +258 -0
  64. data/doc/api/StringIO.html +119 -0
  65. data/doc/api/Time.html +247 -0
  66. data/doc/api/_index.html +581 -0
  67. data/doc/api/class_list.html +36 -0
  68. data/doc/api/css/common.css +1 -0
  69. data/doc/api/css/full_list.css +50 -0
  70. data/doc/api/css/style.css +273 -0
  71. data/doc/api/file.LICENSE.html +73 -0
  72. data/doc/api/file_list.html +38 -0
  73. data/doc/api/frames.html +13 -0
  74. data/doc/api/index.html +72 -13
  75. data/doc/api/js/app.js +111 -0
  76. data/doc/api/js/full_list.js +117 -0
  77. data/doc/api/js/{jquery-1.3.2.min.js → jquery.js} +0 -0
  78. data/doc/api/method_list.html +1483 -0
  79. data/doc/api/top-level-namespace.html +89 -0
  80. data/doc/index.erb +18 -13
  81. data/doc/index.html +331 -386
  82. data/lib/rumai.rb +1 -18
  83. data/lib/rumai/fs.rb +11 -11
  84. data/lib/rumai/inochi.rb +48 -0
  85. data/lib/rumai/inochi.yaml +94 -0
  86. data/lib/rumai/ixp.rb +0 -4
  87. data/lib/rumai/ixp/message.rb +6 -17
  88. data/lib/rumai/ixp/transport.rb +39 -30
  89. data/lib/rumai/wm.rb +35 -37
  90. data/test/rumai/inochi_test.rb +17 -0
  91. data/test/rumai/ixp/message_test.rb +245 -0
  92. data/test/runner +25 -0
  93. data/test/test_helper.rb +1 -0
  94. metadata +107 -125
  95. data/doc/api/apple-touch-icon.png +0 -0
  96. data/doc/api/classes/IO.html +0 -72
  97. data/doc/api/classes/Integer.html +0 -110
  98. data/doc/api/classes/Object.html +0 -60
  99. data/doc/api/classes/Rumai.html +0 -837
  100. data/doc/api/classes/Rumai/Area.html +0 -909
  101. data/doc/api/classes/Rumai/Chain.html +0 -197
  102. data/doc/api/classes/Rumai/Client.html +0 -1526
  103. data/doc/api/classes/Rumai/ClientContainer.html +0 -191
  104. data/doc/api/classes/Rumai/ExportInstanceMethods.html +0 -69
  105. data/doc/api/classes/Rumai/IXP.html +0 -131
  106. data/doc/api/classes/Rumai/IXP/Agent.html +0 -941
  107. data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +0 -456
  108. data/doc/api/classes/Rumai/IXP/Agent/MODES.html +0 -108
  109. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +0 -241
  110. data/doc/api/classes/Rumai/IXP/Error.html +0 -67
  111. data/doc/api/classes/Rumai/IXP/Fcall.html +0 -323
  112. data/doc/api/classes/Rumai/IXP/Qid.html +0 -153
  113. data/doc/api/classes/Rumai/IXP/Rattach.html +0 -67
  114. data/doc/api/classes/Rumai/IXP/Rauth.html +0 -67
  115. data/doc/api/classes/Rumai/IXP/Rclunk.html +0 -67
  116. data/doc/api/classes/Rumai/IXP/Rcreate.html +0 -67
  117. data/doc/api/classes/Rumai/IXP/Rerror.html +0 -67
  118. data/doc/api/classes/Rumai/IXP/Rflush.html +0 -67
  119. data/doc/api/classes/Rumai/IXP/Ropen.html +0 -67
  120. data/doc/api/classes/Rumai/IXP/Rread.html +0 -67
  121. data/doc/api/classes/Rumai/IXP/Rremove.html +0 -67
  122. data/doc/api/classes/Rumai/IXP/Rstat.html +0 -67
  123. data/doc/api/classes/Rumai/IXP/Rversion.html +0 -67
  124. data/doc/api/classes/Rumai/IXP/Rwalk.html +0 -67
  125. data/doc/api/classes/Rumai/IXP/Rwrite.html +0 -67
  126. data/doc/api/classes/Rumai/IXP/Rwstat.html +0 -67
  127. data/doc/api/classes/Rumai/IXP/Stat.html +0 -252
  128. data/doc/api/classes/Rumai/IXP/Stream.html +0 -131
  129. data/doc/api/classes/Rumai/IXP/Struct.html +0 -311
  130. data/doc/api/classes/Rumai/IXP/Struct/Field.html +0 -415
  131. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +0 -153
  132. data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +0 -104
  133. data/doc/api/classes/Rumai/IXP/Tattach.html +0 -68
  134. data/doc/api/classes/Rumai/IXP/Tauth.html +0 -67
  135. data/doc/api/classes/Rumai/IXP/Tclunk.html +0 -67
  136. data/doc/api/classes/Rumai/IXP/Tcreate.html +0 -68
  137. data/doc/api/classes/Rumai/IXP/Terror.html +0 -110
  138. data/doc/api/classes/Rumai/IXP/Tflush.html +0 -67
  139. data/doc/api/classes/Rumai/IXP/Topen.html +0 -165
  140. data/doc/api/classes/Rumai/IXP/Tread.html +0 -67
  141. data/doc/api/classes/Rumai/IXP/Tremove.html +0 -67
  142. data/doc/api/classes/Rumai/IXP/Tstat.html +0 -67
  143. data/doc/api/classes/Rumai/IXP/Tversion.html +0 -86
  144. data/doc/api/classes/Rumai/IXP/Twalk.html +0 -68
  145. data/doc/api/classes/Rumai/IXP/Twrite.html +0 -68
  146. data/doc/api/classes/Rumai/IXP/Twstat.html +0 -67
  147. data/doc/api/classes/Rumai/Node.html +0 -821
  148. data/doc/api/classes/Rumai/View.html +0 -967
  149. data/doc/api/classes/Rumai/WidgetImpl.html +0 -65
  150. data/doc/api/classes/Rumai/WidgetNode.html +0 -68
  151. data/doc/api/classes/String.html +0 -163
  152. data/doc/api/classes/StringIO.html +0 -72
  153. data/doc/api/classes/Time.html +0 -156
  154. data/doc/api/created.rid +0 -1
  155. data/doc/api/css/main.css +0 -263
  156. data/doc/api/css/panel.css +0 -383
  157. data/doc/api/css/reset.css +0 -53
  158. data/doc/api/favicon.ico +0 -0
  159. data/doc/api/files/CREDITS.html +0 -67
  160. data/doc/api/files/LICENSE.html +0 -76
  161. data/doc/api/files/lib/rumai/fs_rb.html +0 -75
  162. data/doc/api/files/lib/rumai/ixp/message_rb.html +0 -91
  163. data/doc/api/files/lib/rumai/ixp/transport_rb.html +0 -75
  164. data/doc/api/files/lib/rumai/ixp_rb.html +0 -69
  165. data/doc/api/files/lib/rumai/wm_rb.html +0 -77
  166. data/doc/api/files/lib/rumai_rb.html +0 -65
  167. data/doc/api/i/arrows.png +0 -0
  168. data/doc/api/i/results_bg.png +0 -0
  169. data/doc/api/i/tree_bg.png +0 -0
  170. data/doc/api/js/jquery-effect.js +0 -593
  171. data/doc/api/js/main.js +0 -22
  172. data/doc/api/js/searchdoc.js +0 -628
  173. data/doc/api/panel/index.html +0 -71
  174. data/doc/api/panel/search_index.js +0 -1
  175. data/doc/api/panel/tree.js +0 -1
  176. data/doc/history.erb +0 -233
  177. data/doc/intro.erb +0 -70
  178. data/doc/setup.erb +0 -144
  179. data/doc/usage.erb +0 -308
  180. data/rakefile +0 -14
  181. data/test/rumai/ixp/message.rb +0 -237
@@ -0,0 +1,1485 @@
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 name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Class: Rumai::Area</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../_index.html">Index (A)</a> &raquo;
27
+ <span class='title'><a href="../Rumai.html" title="Rumai (module)">Rumai</a></span>
28
+ &raquo;
29
+ <span class="title">Area</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Class: Rumai::Area
47
+
48
+
49
+ </h1>
50
+
51
+ <dl class="box">
52
+
53
+ <dt class="r1">Inherits:</dt>
54
+ <dd class="r1">
55
+ <span class="inheritName"><a href="../Object.html" title="Object (class)">Object</a></span>
56
+
57
+ <ul class="fullTree">
58
+ <li><a href="../Object.html" title="Object (class)">Object</a></li>
59
+
60
+ <li class="next">Rumai::Area</li>
61
+
62
+ </ul>
63
+ <a href="#" class="inheritanceTree">show all</a>
64
+
65
+ </dd>
66
+
67
+
68
+
69
+
70
+
71
+
72
+ <dt class="r2">Includes:</dt>
73
+ <dd class="r2">Enumerable, <a href="Chain.html" title="Rumai::Chain (module)">Chain</a>, <a href="ClientContainer.html" title="Rumai::ClientContainer (module)">ClientContainer</a>, <a href="WidgetImpl.html" title="Rumai::WidgetImpl (module)">WidgetImpl</a></dd>
74
+
75
+
76
+
77
+
78
+
79
+ <dt class="r1 last">Defined in:</dt>
80
+ <dd class="r1 last">lib/rumai/wm.rb</dd>
81
+
82
+ </dl>
83
+ <div class="clear"></div>
84
+
85
+ <h2>Overview</h2><div class="docstring">
86
+ <div class="discussion">
87
+ <p>
88
+ A region that contains clients. This can be either the floating area or a
89
+ column in the managed area.
90
+ </p>
91
+
92
+
93
+ </div>
94
+ </div>
95
+ <div class="tags">
96
+
97
+ </div>
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <h2>Instance Attribute Summary</h2>
113
+ <ul class="summary">
114
+
115
+ <li class="public ">
116
+ <span class="summary_signature">
117
+
118
+ <a href="#view-instance_method" title="#view (instance method)">- (Object) <strong>view</strong> </a>
119
+
120
+
121
+
122
+ </span>
123
+
124
+
125
+ <span class="note title readonly">readonly</span>
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <span class="summary_desc"><div class='inline'><p>
134
+ Returns the value of attribute view.
135
+ </p>
136
+ </div></span>
137
+
138
+ </li>
139
+
140
+
141
+ </ul>
142
+
143
+
144
+
145
+ <h2>Class Method Summary</h2>
146
+
147
+ <ul class="summary">
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#curr-class_method" title="curr (class method)">+ (Object) <strong>curr</strong> </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+ <span class="summary_desc"><div class='inline'><p>
165
+ Returns the currently focused area.
166
+ </p>
167
+ </div></span>
168
+
169
+ </li>
170
+
171
+
172
+ <li class="public ">
173
+ <span class="summary_signature">
174
+
175
+ <a href="#floating-class_method" title="floating (class method)">+ (Object) <strong>floating</strong>(view = View.curr) </a>
176
+
177
+
178
+
179
+ </span>
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+ <span class="summary_desc"><div class='inline'><p>
188
+ Returns the floating area in the given view.
189
+ </p>
190
+ </div></span>
191
+
192
+ </li>
193
+
194
+
195
+ </ul>
196
+
197
+ <h2>Instance Method Summary</h2>
198
+
199
+ <ul class="summary">
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#chain-instance_method" title="#chain (instance method)">- (Object) <strong>chain</strong> </a>
205
+
206
+
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+ <span class="summary_desc"><div class='inline'><p>
217
+ Returns a list of all areas in the current view.
218
+ </p>
219
+ </div></span>
220
+
221
+ </li>
222
+
223
+
224
+ <li class="public ">
225
+ <span class="summary_signature">
226
+
227
+ <a href="#client_ids-instance_method" title="#client_ids (instance method)">- (Object) <strong>client_ids</strong> </a>
228
+
229
+
230
+
231
+ </span>
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+ <span class="summary_desc"><div class='inline'><p>
240
+ Returns the IDs of the clients in this area.
241
+ </p>
242
+ </div></span>
243
+
244
+ </li>
245
+
246
+
247
+ <li class="public ">
248
+ <span class="summary_signature">
249
+
250
+ <a href="#column%3F-instance_method" title="#column? (instance method)">- (Boolean) <strong>column?</strong> </a>
251
+
252
+
253
+
254
+ (also: #managed?)
255
+
256
+ </span>
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+ <span class="summary_desc"><div class='inline'><p>
265
+ Checks if this is a managed area (a column).
266
+ </p>
267
+ </div></span>
268
+
269
+ </li>
270
+
271
+
272
+ <li class="public ">
273
+ <span class="summary_signature">
274
+
275
+ <a href="#concat-instance_method" title="#concat (instance method)">- (Object) <strong>concat</strong>(area) </a>
276
+
277
+
278
+
279
+ </span>
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+ <span class="summary_desc"><div class='inline'><p>
288
+ Concatenates the given area to the bottom of this area.
289
+ </p>
290
+ </div></span>
291
+
292
+ </li>
293
+
294
+
295
+ <li class="public ">
296
+ <span class="summary_signature">
297
+
298
+ <a href="#each-instance_method" title="#each (instance method)">- (Object) <strong>each</strong>(&amp;block) </a>
299
+
300
+
301
+
302
+ </span>
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <span class="summary_desc"><div class='inline'><p>
311
+ Iterates through each client in this container.
312
+ </p>
313
+ </div></span>
314
+
315
+ </li>
316
+
317
+
318
+ <li class="public ">
319
+ <span class="summary_signature">
320
+
321
+ <a href="#exist%3F-instance_method" title="#exist? (instance method)">- (Boolean) <strong>exist?</strong> </a>
322
+
323
+
324
+
325
+ </span>
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+ <span class="summary_desc"><div class='inline'><p>
334
+ Checks if this object exists in the chain.
335
+ </p>
336
+ </div></span>
337
+
338
+ </li>
339
+
340
+
341
+ <li class="public ">
342
+ <span class="summary_signature">
343
+
344
+ <a href="#floating%3F-instance_method" title="#floating? (instance method)">- (Boolean) <strong>floating?</strong> </a>
345
+
346
+
347
+
348
+ </span>
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+ <span class="summary_desc"><div class='inline'><p>
357
+ Checks if this area is the floating area.
358
+ </p>
359
+ </div></span>
360
+
361
+ </li>
362
+
363
+
364
+ <li class="public ">
365
+ <span class="summary_signature">
366
+
367
+ <a href="#focus-instance_method" title="#focus (instance method)">- (Object) <strong>focus</strong> </a>
368
+
369
+
370
+
371
+ </span>
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+ <span class="summary_desc"><div class='inline'><p>
380
+ Puts focus on this area.
381
+ </p>
382
+ </div></span>
383
+
384
+ </li>
385
+
386
+
387
+ <li class="public ">
388
+ <span class="summary_signature">
389
+
390
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Area) <strong>initialize</strong>(area_id, view = View.curr) </a>
391
+
392
+
393
+
394
+ </span>
395
+
396
+ <span class="note title constructor">constructor</span>
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+ <span class="summary_desc"><div class='inline'><p>
405
+ A new instance of Area.
406
+ </p>
407
+ </div></span>
408
+
409
+ </li>
410
+
411
+
412
+ <li class="public ">
413
+ <span class="summary_signature">
414
+
415
+ <a href="#insert-instance_method" title="#insert (instance method)">- (Object) <strong>insert</strong>(*clients) </a>
416
+
417
+
418
+
419
+ </span>
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+ <span class="summary_desc"><div class='inline'><p>
428
+ Inserts the given clients after the currently focused client in this area.
429
+ </p>
430
+ </div></span>
431
+
432
+ </li>
433
+
434
+
435
+ <li class="public ">
436
+ <span class="summary_signature">
437
+
438
+ <a href="#layout%3D-instance_method" title="#layout= (instance method)">- (Object) <strong>layout</strong>(mode) </a>
439
+
440
+
441
+
442
+ </span>
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+ <span class="summary_desc"><div class='inline'><p>
451
+ Sets the layout of clients in this column.
452
+ </p>
453
+ </div></span>
454
+
455
+ </li>
456
+
457
+
458
+ <li class="public ">
459
+ <span class="summary_signature">
460
+
461
+ <a href="#length-instance_method" title="#length (instance method)">- (Object) <strong>length</strong> </a>
462
+
463
+
464
+
465
+ </span>
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+ <span class="summary_desc"><div class='inline'><p>
474
+ Returns the number of clients in this area.
475
+ </p>
476
+ </div></span>
477
+
478
+ </li>
479
+
480
+
481
+ <li class="public ">
482
+ <span class="summary_signature">
483
+
484
+ <a href="#length%3D-instance_method" title="#length= (instance method)">- (Object) <strong>length</strong>(max_clients) </a>
485
+
486
+
487
+
488
+ </span>
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+ <span class="summary_desc"><div class='inline'><p>
497
+ Ensures that this area has at most the given number of clients.
498
+ </p>
499
+ </div></span>
500
+
501
+ </li>
502
+
503
+
504
+ <li class="public ">
505
+ <span class="summary_signature">
506
+
507
+ <a href="#push-instance_method" title="#push (instance method)">- (Object) <strong>push</strong>(*clients) </a>
508
+
509
+
510
+
511
+ (also: #&lt;&lt;)
512
+
513
+ </span>
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+ <span class="summary_desc"><div class='inline'><p>
522
+ Inserts the given clients at the bottom of this area.
523
+ </p>
524
+ </div></span>
525
+
526
+ </li>
527
+
528
+
529
+ <li class="public ">
530
+ <span class="summary_signature">
531
+
532
+ <a href="#unshift-instance_method" title="#unshift (instance method)">- (Object) <strong>unshift</strong>(*clients) </a>
533
+
534
+
535
+
536
+ </span>
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+ <span class="summary_desc"><div class='inline'><p>
545
+ Inserts the given clients at the top of this area.
546
+ </p>
547
+ </div></span>
548
+
549
+ </li>
550
+
551
+
552
+ </ul>
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+ <h3 class="inherited">Methods included from <a href="WidgetImpl.html" title="Rumai::WidgetImpl (module)">WidgetImpl</a></h3>
564
+ <p class="inherited"><a href="WidgetImpl.html#%3D%3D-instance_method" title="Rumai::WidgetImpl#== (method)">#==</a>, <a href="WidgetImpl.html#current%3F-instance_method" title="Rumai::WidgetImpl#current? (method)">#current?</a></p>
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+ <h3 class="inherited">Methods included from <a href="Chain.html" title="Rumai::Chain (module)">Chain</a></h3>
574
+ <p class="inherited"><a href="Chain.html#next-instance_method" title="Rumai::Chain#next (method)">#next</a>, <a href="Chain.html#prev-instance_method" title="Rumai::Chain#prev (method)">#prev</a></p>
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+ <h3 class="inherited">Methods included from <a href="ClientContainer.html" title="Rumai::ClientContainer (module)">ClientContainer</a></h3>
584
+ <p class="inherited"><a href="ClientContainer.html#clients-instance_method" title="Rumai::ClientContainer#clients (method)">#clients</a>, <a href="ClientContainer.html#grouping-instance_method" title="Rumai::ClientContainer#grouping (method)">#grouping</a></p>
585
+
586
+ <div id="constructor_details" class="method_details_list">
587
+ <h2>Constructor Details</h2>
588
+
589
+ <div class="method_details first">
590
+ <p class="signature first" id="initialize-instance_method">
591
+
592
+ - (<tt><a href="" title="Rumai::Area (class)">Area</a></tt>) <strong>initialize</strong>(area_id, view = View.curr)
593
+
594
+
595
+
596
+ </p><div class="docstring">
597
+ <div class="discussion">
598
+ <p>
599
+ A new instance of Area
600
+ </p>
601
+
602
+
603
+ </div>
604
+ </div>
605
+ <div class="tags">
606
+ <h3>Parameters:</h3>
607
+ <ul class="param">
608
+
609
+ <li>
610
+
611
+ <span class='type'>(<tt><a href="View.html" title="Rumai::View (class)">Rumai::View</a></tt>)</span>
612
+
613
+
614
+ <span class='name'>view</span>
615
+
616
+
617
+ <em class="default">(defaults to: <tt>View.curr</tt>)</em>
618
+
619
+
620
+ &mdash;
621
+ <div class='inline'><p>
622
+ the view object which contains this area
623
+ </p>
624
+ </div>
625
+
626
+ </li>
627
+
628
+ </ul>
629
+
630
+ </div><table class="source_code">
631
+ <tr>
632
+ <td>
633
+ <pre class="lines">
634
+
635
+
636
+ 494
637
+ 495
638
+ 496
639
+ 497</pre>
640
+ </td>
641
+ <td>
642
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 494</span>
643
+
644
+ <span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id area_id'>area_id</span><span class='comma'>,</span> <span class='id view'>view</span> <span class='op'>=</span> <span class='const'>View</span><span class='period'>.</span><span class='id curr'>curr</span>
645
+ <span class='ivar'>@id</span> <span class='op'>=</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='id area_id'>area_id</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='id area_id'>area_id</span>
646
+ <span class='ivar'>@view</span> <span class='op'>=</span> <span class='id view'>view</span>
647
+ <span class='kw'>end</span></pre>
648
+ </td>
649
+ </tr>
650
+ </table>
651
+ </div>
652
+
653
+ </div>
654
+
655
+ <div id="instance_attr_details" class="attr_details">
656
+ <h2>Instance Attribute Details</h2>
657
+
658
+
659
+ <span id=""></span>
660
+ <span id="view-instance_method"></span>
661
+ <div class="method_details first">
662
+ <p class="signature first" id="view-instance_method">
663
+
664
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>view</strong> <span class="extras">(readonly)</span>
665
+
666
+
667
+
668
+ </p><div class="docstring">
669
+ <div class="discussion">
670
+ <p>
671
+ Returns the value of attribute view
672
+ </p>
673
+
674
+
675
+ </div>
676
+ </div>
677
+ <div class="tags">
678
+
679
+ </div><table class="source_code">
680
+ <tr>
681
+ <td>
682
+ <pre class="lines">
683
+
684
+
685
+ 488
686
+ 489
687
+ 490</pre>
688
+ </td>
689
+ <td>
690
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 488</span>
691
+
692
+ <span class='kw'>def</span> <span class='id view'>view</span>
693
+ <span class='ivar'>@view</span>
694
+ <span class='kw'>end</span></pre>
695
+ </td>
696
+ </tr>
697
+ </table>
698
+ </div>
699
+
700
+ </div>
701
+
702
+
703
+ <div id="class_method_details" class="method_details_list">
704
+ <h2>Class Method Details</h2>
705
+
706
+
707
+ <div class="method_details first">
708
+ <p class="signature first" id="curr-class_method">
709
+
710
+ + (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>curr</strong>
711
+
712
+
713
+
714
+ </p><div class="docstring">
715
+ <div class="discussion">
716
+ <p>
717
+ Returns the currently focused area.
718
+ </p>
719
+
720
+
721
+ </div>
722
+ </div>
723
+ <div class="tags">
724
+
725
+ </div><table class="source_code">
726
+ <tr>
727
+ <td>
728
+ <pre class="lines">
729
+
730
+
731
+ 520
732
+ 521
733
+ 522</pre>
734
+ </td>
735
+ <td>
736
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 520</span>
737
+
738
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id curr'>curr</span>
739
+ <span class='const'>View</span><span class='period'>.</span><span class='id curr'>curr</span><span class='period'>.</span><span class='id area_of_client'>area_of_client</span> <span class='const'>Client</span><span class='period'>.</span><span class='id curr'>curr</span>
740
+ <span class='kw'>end</span></pre>
741
+ </td>
742
+ </tr>
743
+ </table>
744
+ </div>
745
+
746
+ <div class="method_details ">
747
+ <p class="signature " id="floating-class_method">
748
+
749
+ + (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>floating</strong>(view = View.curr)
750
+
751
+
752
+
753
+ </p><div class="docstring">
754
+ <div class="discussion">
755
+ <p>
756
+ Returns the floating area in the given view.
757
+ </p>
758
+
759
+
760
+ </div>
761
+ </div>
762
+ <div class="tags">
763
+
764
+ </div><table class="source_code">
765
+ <tr>
766
+ <td>
767
+ <pre class="lines">
768
+
769
+
770
+ 527
771
+ 528
772
+ 529</pre>
773
+ </td>
774
+ <td>
775
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 527</span>
776
+
777
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id floating'>floating</span> <span class='id view'>view</span> <span class='op'>=</span> <span class='const'>View</span><span class='period'>.</span><span class='id curr'>curr</span>
778
+ <span class='id new'>new</span> <span class='const'>FLOATING_AREA_ID</span><span class='comma'>,</span> <span class='id view'>view</span>
779
+ <span class='kw'>end</span></pre>
780
+ </td>
781
+ </tr>
782
+ </table>
783
+ </div>
784
+
785
+ </div>
786
+
787
+ <div id="instance_method_details" class="method_details_list">
788
+ <h2>Instance Method Details</h2>
789
+
790
+
791
+ <div class="method_details first">
792
+ <p class="signature first" id="chain-instance_method">
793
+
794
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>chain</strong>
795
+
796
+
797
+
798
+ </p><div class="docstring">
799
+ <div class="discussion">
800
+ <p>
801
+ Returns a list of all areas in the current view.
802
+ </p>
803
+
804
+
805
+ </div>
806
+ </div>
807
+ <div class="tags">
808
+
809
+ </div><table class="source_code">
810
+ <tr>
811
+ <td>
812
+ <pre class="lines">
813
+
814
+
815
+ 536
816
+ 537
817
+ 538</pre>
818
+ </td>
819
+ <td>
820
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 536</span>
821
+
822
+ <span class='kw'>def</span> <span class='id chain'>chain</span>
823
+ <span class='ivar'>@view</span><span class='period'>.</span><span class='id areas'>areas</span>
824
+ <span class='kw'>end</span></pre>
825
+ </td>
826
+ </tr>
827
+ </table>
828
+ </div>
829
+
830
+ <div class="method_details ">
831
+ <p class="signature " id="client_ids-instance_method">
832
+
833
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>client_ids</strong>
834
+
835
+
836
+
837
+ </p><div class="docstring">
838
+ <div class="discussion">
839
+ <p>
840
+ Returns the IDs of the clients in this area.
841
+ </p>
842
+
843
+
844
+ </div>
845
+ </div>
846
+ <div class="tags">
847
+
848
+ </div><table class="source_code">
849
+ <tr>
850
+ <td>
851
+ <pre class="lines">
852
+
853
+
854
+ 552
855
+ 553
856
+ 554</pre>
857
+ </td>
858
+ <td>
859
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 552</span>
860
+
861
+ <span class='kw'>def</span> <span class='id client_ids'>client_ids</span>
862
+ <span class='ivar'>@view</span><span class='period'>.</span><span class='id client_ids'>client_ids</span> <span class='ivar'>@id</span>
863
+ <span class='kw'>end</span></pre>
864
+ </td>
865
+ </tr>
866
+ </table>
867
+ </div>
868
+
869
+ <div class="method_details ">
870
+ <p class="signature " id="column?-instance_method">
871
+
872
+ - (<tt>Boolean</tt>) <strong>column?</strong>
873
+
874
+
875
+
876
+ <span class="aliases">Also known as:
877
+ <span class="names"><span id='managed?-instance_method'>managed?</span></span>
878
+ </span>
879
+
880
+ </p><div class="docstring">
881
+ <div class="discussion">
882
+ <p>
883
+ Checks if this is a managed area (a column).
884
+ </p>
885
+
886
+
887
+ </div>
888
+ </div>
889
+ <div class="tags">
890
+ <h3>Returns:</h3>
891
+ <ul class="return">
892
+
893
+ <li>
894
+
895
+ <span class='type'>(<tt>Boolean</tt>)</span>
896
+
897
+
898
+
899
+
900
+ </li>
901
+
902
+ </ul>
903
+
904
+ </div><table class="source_code">
905
+ <tr>
906
+ <td>
907
+ <pre class="lines">
908
+
909
+
910
+ 509
911
+ 510
912
+ 511</pre>
913
+ </td>
914
+ <td>
915
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 509</span>
916
+
917
+ <span class='kw'>def</span> <span class='id column?'>column?</span>
918
+ <span class='kw'>not</span> <span class='id floating?'>floating?</span>
919
+ <span class='kw'>end</span></pre>
920
+ </td>
921
+ </tr>
922
+ </table>
923
+ </div>
924
+
925
+ <div class="method_details ">
926
+ <p class="signature " id="concat-instance_method">
927
+
928
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>concat</strong>(area)
929
+
930
+
931
+
932
+ </p><div class="docstring">
933
+ <div class="discussion">
934
+ <p>
935
+ Concatenates the given area to the bottom of this area.
936
+ </p>
937
+
938
+
939
+ </div>
940
+ </div>
941
+ <div class="tags">
942
+
943
+ </div><table class="source_code">
944
+ <tr>
945
+ <td>
946
+ <pre class="lines">
947
+
948
+
949
+ 651
950
+ 652
951
+ 653</pre>
952
+ </td>
953
+ <td>
954
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 651</span>
955
+
956
+ <span class='kw'>def</span> <span class='id concat'>concat</span> <span class='id area'>area</span>
957
+ <span class='id push'>push</span> <span class='id area'>area</span><span class='period'>.</span><span class='id clients'>clients</span>
958
+ <span class='kw'>end</span></pre>
959
+ </td>
960
+ </tr>
961
+ </table>
962
+ </div>
963
+
964
+ <div class="method_details ">
965
+ <p class="signature " id="each-instance_method">
966
+
967
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>each</strong>(&amp;block)
968
+
969
+
970
+
971
+ </p><div class="docstring">
972
+ <div class="discussion">
973
+ <p>
974
+ Iterates through each client in this container.
975
+ </p>
976
+
977
+
978
+ </div>
979
+ </div>
980
+ <div class="tags">
981
+
982
+ </div><table class="source_code">
983
+ <tr>
984
+ <td>
985
+ <pre class="lines">
986
+
987
+
988
+ 561
989
+ 562
990
+ 563</pre>
991
+ </td>
992
+ <td>
993
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 561</span>
994
+
995
+ <span class='kw'>def</span> <span class='id each'>each</span> <span class='op'>&amp;</span><span class='id block'>block</span>
996
+ <span class='id clients'>clients</span><span class='period'>.</span><span class='id each'>each</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id block'>block</span><span class='rparen'>)</span>
997
+ <span class='kw'>end</span></pre>
998
+ </td>
999
+ </tr>
1000
+ </table>
1001
+ </div>
1002
+
1003
+ <div class="method_details ">
1004
+ <p class="signature " id="exist?-instance_method">
1005
+
1006
+ - (<tt>Boolean</tt>) <strong>exist?</strong>
1007
+
1008
+
1009
+
1010
+ </p><div class="docstring">
1011
+ <div class="discussion">
1012
+ <p>
1013
+ Checks if this object exists in the chain.
1014
+ </p>
1015
+
1016
+
1017
+ </div>
1018
+ </div>
1019
+ <div class="tags">
1020
+ <h3>Returns:</h3>
1021
+ <ul class="return">
1022
+
1023
+ <li>
1024
+
1025
+ <span class='type'>(<tt>Boolean</tt>)</span>
1026
+
1027
+
1028
+
1029
+
1030
+ </li>
1031
+
1032
+ </ul>
1033
+
1034
+ </div><table class="source_code">
1035
+ <tr>
1036
+ <td>
1037
+ <pre class="lines">
1038
+
1039
+
1040
+ 543
1041
+ 544
1042
+ 545</pre>
1043
+ </td>
1044
+ <td>
1045
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 543</span>
1046
+
1047
+ <span class='kw'>def</span> <span class='id exist?'>exist?</span>
1048
+ <span class='id chain'>chain</span><span class='period'>.</span><span class='id include?'>include?</span> <span class='kw'>self</span>
1049
+ <span class='kw'>end</span></pre>
1050
+ </td>
1051
+ </tr>
1052
+ </table>
1053
+ </div>
1054
+
1055
+ <div class="method_details ">
1056
+ <p class="signature " id="floating?-instance_method">
1057
+
1058
+ - (<tt>Boolean</tt>) <strong>floating?</strong>
1059
+
1060
+
1061
+
1062
+ </p><div class="docstring">
1063
+ <div class="discussion">
1064
+ <p>
1065
+ Checks if this area is the floating area.
1066
+ </p>
1067
+
1068
+
1069
+ </div>
1070
+ </div>
1071
+ <div class="tags">
1072
+ <h3>Returns:</h3>
1073
+ <ul class="return">
1074
+
1075
+ <li>
1076
+
1077
+ <span class='type'>(<tt>Boolean</tt>)</span>
1078
+
1079
+
1080
+
1081
+
1082
+ </li>
1083
+
1084
+ </ul>
1085
+
1086
+ </div><table class="source_code">
1087
+ <tr>
1088
+ <td>
1089
+ <pre class="lines">
1090
+
1091
+
1092
+ 502
1093
+ 503
1094
+ 504</pre>
1095
+ </td>
1096
+ <td>
1097
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 502</span>
1098
+
1099
+ <span class='kw'>def</span> <span class='id floating?'>floating?</span>
1100
+ <span class='ivar'>@id</span> <span class='op'>==</span> <span class='const'>FLOATING_AREA_ID</span>
1101
+ <span class='kw'>end</span></pre>
1102
+ </td>
1103
+ </tr>
1104
+ </table>
1105
+ </div>
1106
+
1107
+ <div class="method_details ">
1108
+ <p class="signature " id="focus-instance_method">
1109
+
1110
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>focus</strong>
1111
+
1112
+
1113
+
1114
+ </p><div class="docstring">
1115
+ <div class="discussion">
1116
+ <p>
1117
+ Puts focus on this area.
1118
+ </p>
1119
+
1120
+
1121
+ </div>
1122
+ </div>
1123
+ <div class="tags">
1124
+
1125
+ </div><table class="source_code">
1126
+ <tr>
1127
+ <td>
1128
+ <pre class="lines">
1129
+
1130
+
1131
+ 584
1132
+ 585
1133
+ 586</pre>
1134
+ </td>
1135
+ <td>
1136
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 584</span>
1137
+
1138
+ <span class='kw'>def</span> <span class='id focus'>focus</span>
1139
+ <span class='ivar'>@view</span><span class='period'>.</span><span class='id ctl'>ctl</span><span class='period'>.</span><span class='id write'>write</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>select </span><span class='embexpr_beg'>#{</span><span class='ivar'>@id</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1140
+ <span class='kw'>end</span></pre>
1141
+ </td>
1142
+ </tr>
1143
+ </table>
1144
+ </div>
1145
+
1146
+ <div class="method_details ">
1147
+ <p class="signature " id="insert-instance_method">
1148
+
1149
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>insert</strong>(*clients)
1150
+
1151
+
1152
+
1153
+ </p><div class="docstring">
1154
+ <div class="discussion">
1155
+ <p>
1156
+ Inserts the given clients after the currently focused client in this area.
1157
+ </p>
1158
+
1159
+
1160
+ </div>
1161
+ </div>
1162
+ <div class="tags">
1163
+
1164
+ </div><table class="source_code">
1165
+ <tr>
1166
+ <td>
1167
+ <pre class="lines">
1168
+
1169
+
1170
+ 622
1171
+ 623
1172
+ 624
1173
+ 625
1174
+ 626
1175
+ 627
1176
+ 628
1177
+ 629</pre>
1178
+ </td>
1179
+ <td>
1180
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 622</span>
1181
+
1182
+ <span class='kw'>def</span> <span class='id insert'>insert</span> <span class='op'>*</span><span class='id clients'>clients</span>
1183
+ <span class='id clients'>clients</span><span class='period'>.</span><span class='id flatten!'>flatten!</span>
1184
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id clients'>clients</span><span class='period'>.</span><span class='id empty?'>empty?</span>
1185
+
1186
+ <span class='id clients'>clients</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id c'>c</span><span class='op'>|</span>
1187
+ <span class='id import_client'>import_client</span> <span class='id c'>c</span>
1188
+ <span class='kw'>end</span>
1189
+ <span class='kw'>end</span></pre>
1190
+ </td>
1191
+ </tr>
1192
+ </table>
1193
+ </div>
1194
+
1195
+ <div class="method_details ">
1196
+ <p class="signature " id="layout=-instance_method">
1197
+
1198
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>layout=</strong>(mode)
1199
+
1200
+
1201
+
1202
+ </p><div class="docstring">
1203
+ <div class="discussion">
1204
+ <p>
1205
+ Sets the layout of clients in this column.
1206
+ </p>
1207
+
1208
+
1209
+ </div>
1210
+ </div>
1211
+ <div class="tags">
1212
+
1213
+ </div><table class="source_code">
1214
+ <tr>
1215
+ <td>
1216
+ <pre class="lines">
1217
+
1218
+
1219
+ 568
1220
+ 569
1221
+ 570
1222
+ 571
1223
+ 572
1224
+ 573
1225
+ 574
1226
+ 575</pre>
1227
+ </td>
1228
+ <td>
1229
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 568</span>
1230
+
1231
+ <span class='kw'>def</span> <span class='id layout='>layout=</span> <span class='id mode'>mode</span>
1232
+ <span class='kw'>case</span> <span class='id mode'>mode</span>
1233
+ <span class='kw'>when</span> <span class='symbol'>:stack</span> <span class='kw'>then</span> <span class='id mode'>mode</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stack-max</span><span class='tstring_end'>'</span></span>
1234
+ <span class='kw'>when</span> <span class='symbol'>:max</span> <span class='kw'>then</span> <span class='id mode'>mode</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stack+max</span><span class='tstring_end'>'</span></span>
1235
+ <span class='kw'>end</span>
1236
+
1237
+ <span class='ivar'>@view</span><span class='period'>.</span><span class='id ctl'>ctl</span><span class='period'>.</span><span class='id write'>write</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>colmode </span><span class='embexpr_beg'>#{</span><span class='ivar'>@id</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id mode'>mode</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1238
+ <span class='kw'>end</span></pre>
1239
+ </td>
1240
+ </tr>
1241
+ </table>
1242
+ </div>
1243
+
1244
+ <div class="method_details ">
1245
+ <p class="signature " id="length-instance_method">
1246
+
1247
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>length</strong>
1248
+
1249
+
1250
+
1251
+ </p><div class="docstring">
1252
+ <div class="discussion">
1253
+ <p>
1254
+ Returns the number of clients in this area.
1255
+ </p>
1256
+
1257
+
1258
+ </div>
1259
+ </div>
1260
+ <div class="tags">
1261
+
1262
+ </div><table class="source_code">
1263
+ <tr>
1264
+ <td>
1265
+ <pre class="lines">
1266
+
1267
+
1268
+ 595
1269
+ 596
1270
+ 597</pre>
1271
+ </td>
1272
+ <td>
1273
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 595</span>
1274
+
1275
+ <span class='kw'>def</span> <span class='id length'>length</span>
1276
+ <span class='id client_ids'>client_ids</span><span class='period'>.</span><span class='id length'>length</span>
1277
+ <span class='kw'>end</span></pre>
1278
+ </td>
1279
+ </tr>
1280
+ </table>
1281
+ </div>
1282
+
1283
+ <div class="method_details ">
1284
+ <p class="signature " id="length=-instance_method">
1285
+
1286
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>length=</strong>(max_clients)
1287
+
1288
+
1289
+
1290
+ </p><div class="docstring">
1291
+ <div class="discussion">
1292
+ <p>
1293
+ Ensures that this area has at most the given number of clients.
1294
+ </p>
1295
+ <p>
1296
+ Areas to the right of this one serve as a buffer into which excess clients
1297
+ are evicted and from which deficit clients are imported.
1298
+ </p>
1299
+
1300
+
1301
+ </div>
1302
+ </div>
1303
+ <div class="tags">
1304
+
1305
+ </div><table class="source_code">
1306
+ <tr>
1307
+ <td>
1308
+ <pre class="lines">
1309
+
1310
+
1311
+ 661
1312
+ 662
1313
+ 663
1314
+ 664
1315
+ 665
1316
+ 666
1317
+ 667
1318
+ 668
1319
+ 669
1320
+ 670
1321
+ 671
1322
+ 672
1323
+ 673
1324
+ 674
1325
+ 675
1326
+ 676</pre>
1327
+ </td>
1328
+ <td>
1329
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 661</span>
1330
+
1331
+ <span class='kw'>def</span> <span class='id length='>length=</span> <span class='id max_clients'>max_clients</span>
1332
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id max_clients'>max_clients</span> <span class='op'>&gt;</span> <span class='int'>0</span>
1333
+ <span class='id len'>len</span><span class='comma'>,</span> <span class='id out'>out</span> <span class='op'>=</span> <span class='id length'>length</span><span class='comma'>,</span> <span class='id fringe'>fringe</span>
1334
+
1335
+ <span class='kw'>if</span> <span class='id len'>len</span> <span class='op'>&gt;</span> <span class='id max_clients'>max_clients</span>
1336
+ <span class='id out'>out</span><span class='period'>.</span><span class='id unshift'>unshift</span> <span class='id clients'>clients</span><span class='lbracket'>[</span><span class='id max_clients'>max_clients</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span>
1337
+
1338
+ <span class='kw'>elsif</span> <span class='id len'>len</span> <span class='op'>&lt;</span> <span class='id max_clients'>max_clients</span>
1339
+ <span class='kw'>until</span> <span class='lparen'>(</span><span class='id diff'>diff</span> <span class='op'>=</span> <span class='id max_clients'>max_clients</span> <span class='op'>-</span> <span class='id length'>length</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span>
1340
+ <span class='id importable'>importable</span> <span class='op'>=</span> <span class='id out'>out</span><span class='period'>.</span><span class='id clients'>clients</span><span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span> <span class='id diff'>diff</span><span class='rbracket'>]</span>
1341
+ <span class='kw'>break</span> <span class='kw'>if</span> <span class='id importable'>importable</span><span class='period'>.</span><span class='id empty?'>empty?</span>
1342
+
1343
+ <span class='id push'>push</span> <span class='id importable'>importable</span>
1344
+ <span class='kw'>end</span>
1345
+ <span class='kw'>end</span>
1346
+ <span class='kw'>end</span></pre>
1347
+ </td>
1348
+ </tr>
1349
+ </table>
1350
+ </div>
1351
+
1352
+ <div class="method_details ">
1353
+ <p class="signature " id="push-instance_method">
1354
+
1355
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>push</strong>(*clients)
1356
+
1357
+
1358
+
1359
+ <span class="aliases">Also known as:
1360
+ <span class="names"><span id='<<-instance_method'>&lt;&lt;</span></span>
1361
+ </span>
1362
+
1363
+ </p><div class="docstring">
1364
+ <div class="discussion">
1365
+ <p>
1366
+ Inserts the given clients at the bottom of this area.
1367
+ </p>
1368
+
1369
+
1370
+ </div>
1371
+ </div>
1372
+ <div class="tags">
1373
+
1374
+ </div><table class="source_code">
1375
+ <tr>
1376
+ <td>
1377
+ <pre class="lines">
1378
+
1379
+
1380
+ 602
1381
+ 603
1382
+ 604
1383
+ 605
1384
+ 606
1385
+ 607
1386
+ 608
1387
+ 609
1388
+ 610
1389
+ 611
1390
+ 612
1391
+ 613
1392
+ 614</pre>
1393
+ </td>
1394
+ <td>
1395
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 602</span>
1396
+
1397
+ <span class='kw'>def</span> <span class='id push'>push</span> <span class='op'>*</span><span class='id clients'>clients</span>
1398
+ <span class='id clients'>clients</span><span class='period'>.</span><span class='id flatten!'>flatten!</span>
1399
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id clients'>clients</span><span class='period'>.</span><span class='id empty?'>empty?</span>
1400
+
1401
+ <span class='id insert'>insert</span> <span class='id clients'>clients</span>
1402
+
1403
+ <span class='comment'># move inserted clients to bottom
1404
+ </span> <span class='id clients'>clients</span><span class='period'>.</span><span class='id reverse'>reverse</span><span class='period'>.</span><span class='id each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id c'>c</span><span class='comma'>,</span> <span class='id i'>i</span><span class='op'>|</span>
1405
+ <span class='kw'>until</span> <span class='id c'>c</span><span class='period'>.</span><span class='id id'>id</span> <span class='op'>==</span> <span class='kw'>self</span><span class='period'>.</span><span class='id client_ids'>client_ids</span><span class='lbracket'>[</span><span class='op'>-</span><span class='id i'>i</span><span class='period'>.</span><span class='id succ'>succ</span><span class='rbracket'>]</span>
1406
+ <span class='id c'>c</span><span class='period'>.</span><span class='id send'>send</span> <span class='symbol'>:down</span>
1407
+ <span class='kw'>end</span>
1408
+ <span class='kw'>end</span>
1409
+ <span class='kw'>end</span></pre>
1410
+ </td>
1411
+ </tr>
1412
+ </table>
1413
+ </div>
1414
+
1415
+ <div class="method_details ">
1416
+ <p class="signature " id="unshift-instance_method">
1417
+
1418
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>unshift</strong>(*clients)
1419
+
1420
+
1421
+
1422
+ </p><div class="docstring">
1423
+ <div class="discussion">
1424
+ <p>
1425
+ Inserts the given clients at the top of this area.
1426
+ </p>
1427
+
1428
+
1429
+ </div>
1430
+ </div>
1431
+ <div class="tags">
1432
+
1433
+ </div><table class="source_code">
1434
+ <tr>
1435
+ <td>
1436
+ <pre class="lines">
1437
+
1438
+
1439
+ 634
1440
+ 635
1441
+ 636
1442
+ 637
1443
+ 638
1444
+ 639
1445
+ 640
1446
+ 641
1447
+ 642
1448
+ 643
1449
+ 644
1450
+ 645
1451
+ 646</pre>
1452
+ </td>
1453
+ <td>
1454
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 634</span>
1455
+
1456
+ <span class='kw'>def</span> <span class='id unshift'>unshift</span> <span class='op'>*</span><span class='id clients'>clients</span>
1457
+ <span class='id clients'>clients</span><span class='period'>.</span><span class='id flatten!'>flatten!</span>
1458
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id clients'>clients</span><span class='period'>.</span><span class='id empty?'>empty?</span>
1459
+
1460
+ <span class='id insert'>insert</span> <span class='id clients'>clients</span>
1461
+
1462
+ <span class='comment'># move inserted clients to top
1463
+ </span> <span class='id clients'>clients</span><span class='period'>.</span><span class='id each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id c'>c</span><span class='comma'>,</span> <span class='id i'>i</span><span class='op'>|</span>
1464
+ <span class='kw'>until</span> <span class='id c'>c</span><span class='period'>.</span><span class='id id'>id</span> <span class='op'>==</span> <span class='kw'>self</span><span class='period'>.</span><span class='id client_ids'>client_ids</span><span class='lbracket'>[</span><span class='id i'>i</span><span class='rbracket'>]</span>
1465
+ <span class='id c'>c</span><span class='period'>.</span><span class='id send'>send</span> <span class='symbol'>:up</span>
1466
+ <span class='kw'>end</span>
1467
+ <span class='kw'>end</span>
1468
+ <span class='kw'>end</span></pre>
1469
+ </td>
1470
+ </tr>
1471
+ </table>
1472
+ </div>
1473
+
1474
+ </div>
1475
+
1476
+ </div>
1477
+
1478
+ <div id="footer">
1479
+ Generated on Mon Mar 22 22:23:54 2010 by
1480
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
1481
+ 0.5.4 (ruby-1.9.1).
1482
+ </div>
1483
+
1484
+ </body>
1485
+ </html>