flotype-bridge 0.1.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/README.md +6 -0
  2. data/Rakefile +24 -0
  3. data/doc/Bridge.html +954 -0
  4. data/doc/Bridge/Callback.html +495 -0
  5. data/doc/Bridge/CallbackRef.html +343 -0
  6. data/doc/Bridge/Conn.html +409 -0
  7. data/doc/Bridge/Core.html +762 -0
  8. data/doc/Bridge/LocalRef.html +509 -0
  9. data/doc/Bridge/Ref.html +647 -0
  10. data/doc/Bridge/Service.html +135 -0
  11. data/doc/Bridge/Sys.html +278 -0
  12. data/doc/Bridge/Util.html +746 -0
  13. data/doc/_index.html +202 -0
  14. data/doc/class_list.html +47 -0
  15. data/doc/classes/Bridge.html +263 -0
  16. data/doc/classes/Bridge.src/M000001.html +24 -0
  17. data/doc/classes/Bridge.src/M000002.html +18 -0
  18. data/doc/classes/Bridge.src/M000003.html +18 -0
  19. data/doc/classes/Bridge.src/M000004.html +20 -0
  20. data/doc/classes/Bridge.src/M000005.html +26 -0
  21. data/doc/classes/Bridge.src/M000006.html +22 -0
  22. data/doc/classes/Bridge.src/M000007.html +18 -0
  23. data/doc/classes/Bridge.src/M000008.html +18 -0
  24. data/doc/created.rid +1 -0
  25. data/doc/css/common.css +1 -0
  26. data/doc/css/full_list.css +55 -0
  27. data/doc/css/style.css +322 -0
  28. data/doc/file.README.html +71 -0
  29. data/doc/file_list.html +49 -0
  30. data/doc/files/lib/bridge_rb.html +108 -0
  31. data/doc/fr_class_index.html +27 -0
  32. data/doc/fr_file_index.html +27 -0
  33. data/doc/fr_method_index.html +34 -0
  34. data/doc/frames.html +13 -0
  35. data/doc/index.html +71 -0
  36. data/doc/js/app.js +205 -0
  37. data/doc/js/full_list.js +173 -0
  38. data/doc/js/jquery.js +16 -0
  39. data/doc/method_list.html +510 -0
  40. data/doc/rdoc-style.css +208 -0
  41. data/doc/top-level-namespace.html +105 -0
  42. data/examples/chat/chat_client.rb +41 -0
  43. data/examples/chat/chat_server.rb +24 -0
  44. data/examples/pong/pong.rb +29 -0
  45. data/flotype-bridge.gemspec +24 -0
  46. data/lib/bb/callback.rb +33 -0
  47. data/lib/bb/conn.rb +31 -0
  48. data/lib/bb/core.rb +109 -0
  49. data/lib/bb/localref.rb +37 -0
  50. data/lib/bb/ref.rb +49 -0
  51. data/lib/bb/svc.rb +7 -0
  52. data/lib/bb/sys.rb +17 -0
  53. data/lib/bb/util.rb +93 -0
  54. data/lib/bb/version.rb +3 -0
  55. data/lib/bridge.rb +130 -0
  56. data/rakelib/package.rake +4 -0
  57. data/rakelib/test.rake +8 -0
  58. data/tests/bb_test_helper.rb +3 -0
  59. data/tests/test_serialize.rb +4 -0
  60. metadata +196 -0
@@ -0,0 +1,509 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Bridge::LocalRef
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (L)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Bridge.html" title="Bridge (module)">Bridge</a></span></span>
38
+ &raquo;
39
+ <span class="title">LocalRef</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Bridge::LocalRef
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName"><span class='object_link'><a href="Ref.html" title="Bridge::Ref (class)">Ref</a></span></span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next"><span class='object_link'><a href="Ref.html" title="Bridge::Ref (class)">Ref</a></span></li>
75
+
76
+ <li class="next">Bridge::LocalRef</li>
77
+
78
+ </ul>
79
+ <a href="#" class="inheritanceTree">show all</a>
80
+
81
+ </dd>
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ <dt class="r2 last">Defined in:</dt>
92
+ <dd class="r2 last">lib/bb/localref.rb</dd>
93
+
94
+ </dl>
95
+ <div class="clear"></div>
96
+
97
+ <h2>Overview</h2><div class="docstring">
98
+ <div class="discussion">
99
+ <p>
100
+ Wrapper for callbacks passed in as arguments.
101
+ </p>
102
+
103
+
104
+ </div>
105
+ </div>
106
+ <div class="tags">
107
+
108
+
109
+ </div>
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ <h2>
118
+ Instance Method Summary
119
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
120
+ </h2>
121
+
122
+ <ul class="summary">
123
+
124
+ <li class="public ">
125
+ <span class="summary_signature">
126
+
127
+ <a href="#call-instance_method" title="#call (instance method)">- (Object) <strong>call</strong>(*args) </a>
128
+
129
+
130
+
131
+ </span>
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <span class="summary_desc"><div class='inline'></div></span>
141
+
142
+ </li>
143
+
144
+
145
+ <li class="public ">
146
+ <span class="summary_signature">
147
+
148
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (LocalRef) <strong>initialize</strong>(path, mod) </a>
149
+
150
+
151
+
152
+ </span>
153
+
154
+ <span class="note title constructor">constructor</span>
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'><p>
164
+ A new instance of LocalRef.
165
+ </p>
166
+ </div></span>
167
+
168
+ </li>
169
+
170
+
171
+ <li class="public ">
172
+ <span class="summary_signature">
173
+
174
+ <a href="#method-instance_method" title="#method (instance method)">- (Object) <strong>method</strong>(atom) </a>
175
+
176
+
177
+
178
+ </span>
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+ <span class="summary_desc"><div class='inline'></div></span>
188
+
189
+ </li>
190
+
191
+
192
+ <li class="public ">
193
+ <span class="summary_signature">
194
+
195
+ <a href="#method_missing-instance_method" title="#method_missing (instance method)">- (Object) <strong>method_missing</strong>(atom, *args, &amp;blk) </a>
196
+
197
+
198
+
199
+ </span>
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <span class="summary_desc"><div class='inline'></div></span>
209
+
210
+ </li>
211
+
212
+
213
+ <li class="public ">
214
+ <span class="summary_signature">
215
+
216
+ <a href="#methods-instance_method" title="#methods (instance method)">- (Object) <strong>methods</strong>(bool) </a>
217
+
218
+
219
+
220
+ </span>
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+ <span class="summary_desc"><div class='inline'></div></span>
230
+
231
+ </li>
232
+
233
+
234
+ <li class="public ">
235
+ <span class="summary_signature">
236
+
237
+ <a href="#respond_to%3F-instance_method" title="#respond_to? (instance method)">- (Boolean) <strong>respond_to?</strong>(atom) </a>
238
+
239
+
240
+
241
+ </span>
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+ <span class="summary_desc"><div class='inline'></div></span>
251
+
252
+ </li>
253
+
254
+
255
+ </ul>
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Ref.html" title="Bridge::Ref (class)">Ref</a></span></h3>
267
+ <p class="inherited"><span class='object_link'><a href="Ref.html#lookup-class_method" title="Bridge::Ref.lookup (method)">lookup</a></span>, <span class='object_link'><a href="Ref.html#path-instance_method" title="Bridge::Ref#path (method)">#path</a></span>, <span class='object_link'><a href="Ref.html#to_json-instance_method" title="Bridge::Ref#to_json (method)">#to_json</a></span></p>
268
+ <div id="constructor_details" class="method_details_list">
269
+ <h2>Constructor Details</h2>
270
+
271
+ <div class="method_details first">
272
+ <p class="signature first" id="initialize-instance_method">
273
+
274
+ - (<tt><span class='object_link'><a href="" title="Bridge::LocalRef (class)">LocalRef</a></span></tt>) <strong>initialize</strong>(path, mod)
275
+
276
+
277
+
278
+ </p><div class="docstring">
279
+ <div class="discussion">
280
+ <p>
281
+ A new instance of LocalRef
282
+ </p>
283
+
284
+
285
+ </div>
286
+ </div>
287
+ <div class="tags">
288
+
289
+
290
+ </div><table class="source_code">
291
+ <tr>
292
+ <td>
293
+ <pre class="lines">
294
+
295
+
296
+ 4
297
+ 5
298
+ 6
299
+ 7
300
+ 8</pre>
301
+ </td>
302
+ <td>
303
+ <pre class="code"><span class="info file"># File 'lib/bb/localref.rb', line 4</span>
304
+
305
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span> <span class='rubyid_path identifier id'>path</span><span class='comma token'>,</span> <span class='rubyid_mod identifier id'>mod</span>
306
+ <span class='rubyid_@mod ivar id'>@mod</span> <span class='assign token'>=</span> <span class='rubyid_mod identifier id'>mod</span>
307
+ <span class='rubyid_path identifier id'>path</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='string val'>'client'</span><span class='comma token'>,</span> <span class='rubyid_lambda identifier id'>lambda</span> <span class='lbrace token'>{</span><span class='rubyid_Core constant id'>Core</span><span class='colon2 op'>::</span><span class='rubyid_client_id identifier id'>client_id</span><span class='rbrace token'>}</span><span class='rbrack token'>]</span> <span class='plus op'>+</span> <span class='rubyid_path identifier id'>path</span>
308
+ <span class='rubyid_super super kw'>super</span><span class='lparen token'>(</span><span class='rubyid_path identifier id'>path</span><span class='rparen token'>)</span>
309
+ <span class='rubyid_end end kw'>end</span>
310
+ </pre>
311
+ </td>
312
+ </tr>
313
+ </table>
314
+ </div>
315
+
316
+ </div>
317
+ <div id="method_missing_details" class="method_details_list">
318
+ <h2>Dynamic Method Handling</h2>
319
+ <p class="notice this">
320
+ This class handles dynamic methods through the <tt>method_missing</tt> method
321
+
322
+ </p>
323
+
324
+ <div class="method_details first">
325
+ <p class="signature first" id="method_missing-instance_method">
326
+
327
+ - (<tt>Object</tt>) <strong>method_missing</strong>(atom, *args, &amp;blk)
328
+
329
+
330
+
331
+ </p><table class="source_code">
332
+ <tr>
333
+ <td>
334
+ <pre class="lines">
335
+
336
+
337
+ 10
338
+ 11
339
+ 12</pre>
340
+ </td>
341
+ <td>
342
+ <pre class="code"><span class="info file"># File 'lib/bb/localref.rb', line 10</span>
343
+
344
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_method_missing identifier id'>method_missing</span> <span class='rubyid_atom identifier id'>atom</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='rubyid_blk identifier id'>blk</span>
345
+ <span class='lparen token'>(</span><span class='rubyid_@mod ivar id'>@mod</span><span class='dot token'>.</span><span class='rubyid_method identifier id'>method</span> <span class='rubyid_atom identifier id'>atom</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span>
346
+ <span class='rubyid_end end kw'>end</span>
347
+ </pre>
348
+ </td>
349
+ </tr>
350
+ </table>
351
+ </div>
352
+
353
+ </div>
354
+
355
+
356
+ <div id="instance_method_details" class="method_details_list">
357
+ <h2>Instance Method Details</h2>
358
+
359
+
360
+ <div class="method_details first">
361
+ <p class="signature first" id="call-instance_method">
362
+
363
+ - (<tt>Object</tt>) <strong>call</strong>(*args)
364
+
365
+
366
+
367
+ </p><table class="source_code">
368
+ <tr>
369
+ <td>
370
+ <pre class="lines">
371
+
372
+
373
+ 22
374
+ 23
375
+ 24</pre>
376
+ </td>
377
+ <td>
378
+ <pre class="code"><span class="info file"># File 'lib/bb/localref.rb', line 22</span>
379
+
380
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_call identifier id'>call</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span>
381
+ <span class='rubyid_@mod ivar id'>@mod</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span>
382
+ <span class='rubyid_end end kw'>end</span>
383
+ </pre>
384
+ </td>
385
+ </tr>
386
+ </table>
387
+ </div>
388
+
389
+ <div class="method_details ">
390
+ <p class="signature " id="method-instance_method">
391
+
392
+ - (<tt>Object</tt>) <strong>method</strong>(atom)
393
+
394
+
395
+
396
+ </p><table class="source_code">
397
+ <tr>
398
+ <td>
399
+ <pre class="lines">
400
+
401
+
402
+ 14
403
+ 15
404
+ 16</pre>
405
+ </td>
406
+ <td>
407
+ <pre class="code"><span class="info file"># File 'lib/bb/localref.rb', line 14</span>
408
+
409
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_method identifier id'>method</span> <span class='rubyid_atom identifier id'>atom</span>
410
+ <span class='rubyid_@mod ivar id'>@mod</span><span class='dot token'>.</span><span class='rubyid_method identifier id'>method</span><span class='lparen token'>(</span><span class='rubyid_atom identifier id'>atom</span><span class='rparen token'>)</span>
411
+ <span class='rubyid_end end kw'>end</span>
412
+ </pre>
413
+ </td>
414
+ </tr>
415
+ </table>
416
+ </div>
417
+
418
+ <div class="method_details ">
419
+ <p class="signature " id="methods-instance_method">
420
+
421
+ - (<tt>Object</tt>) <strong>methods</strong>(bool)
422
+
423
+
424
+
425
+ </p><table class="source_code">
426
+ <tr>
427
+ <td>
428
+ <pre class="lines">
429
+
430
+
431
+ 18
432
+ 19
433
+ 20</pre>
434
+ </td>
435
+ <td>
436
+ <pre class="code"><span class="info file"># File 'lib/bb/localref.rb', line 18</span>
437
+
438
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_methods identifier id'>methods</span> <span class='rubyid_bool identifier id'>bool</span>
439
+ <span class='rubyid_@mod ivar id'>@mod</span><span class='dot token'>.</span><span class='rubyid_methods identifier id'>methods</span><span class='lparen token'>(</span><span class='rubyid_bool identifier id'>bool</span><span class='rparen token'>)</span>
440
+ <span class='rubyid_end end kw'>end</span>
441
+ </pre>
442
+ </td>
443
+ </tr>
444
+ </table>
445
+ </div>
446
+
447
+ <div class="method_details ">
448
+ <p class="signature " id="respond_to?-instance_method">
449
+
450
+ - (<tt>Boolean</tt>) <strong>respond_to?</strong>(atom)
451
+
452
+
453
+
454
+ </p><div class="docstring">
455
+ <div class="discussion">
456
+
457
+
458
+ </div>
459
+ </div>
460
+ <div class="tags">
461
+
462
+ <h3>Returns:</h3>
463
+ <ul class="return">
464
+
465
+ <li>
466
+
467
+
468
+ <span class='type'>(<tt>Boolean</tt>)</span>
469
+
470
+
471
+
472
+ </li>
473
+
474
+ </ul>
475
+
476
+ </div><table class="source_code">
477
+ <tr>
478
+ <td>
479
+ <pre class="lines">
480
+
481
+
482
+ 26
483
+ 27
484
+ 28</pre>
485
+ </td>
486
+ <td>
487
+ <pre class="code"><span class="info file"># File 'lib/bb/localref.rb', line 26</span>
488
+
489
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_respond_to? fid id'>respond_to?</span> <span class='rubyid_atom identifier id'>atom</span>
490
+ <span class='rubyid_@mod ivar id'>@mod</span><span class='dot token'>.</span><span class='rubyid_respond_to? fid id'>respond_to?</span> <span class='rubyid_atom identifier id'>atom</span>
491
+ <span class='rubyid_end end kw'>end</span>
492
+ </pre>
493
+ </td>
494
+ </tr>
495
+ </table>
496
+ </div>
497
+
498
+ </div>
499
+
500
+ </div>
501
+
502
+ <div id="footer">
503
+ Generated on Sun Mar 4 11:14:11 2012 by
504
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
505
+ 0.7.5 (ruby-1.8.7).
506
+ </div>
507
+
508
+ </body>
509
+ </html>