flotype-bridge 0.1.0.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,647 @@
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::Ref
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 (R)</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">Ref</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::Ref
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Bridge::Ref</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/bb/ref.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+ <h2>Overview</h2><div class="docstring">
96
+ <div class="discussion">
97
+ <p>
98
+ Instances of this class represent references to remote services.
99
+ </p>
100
+
101
+
102
+ </div>
103
+ </div>
104
+ <div class="tags">
105
+
106
+
107
+ </div><div id="subclasses">
108
+ <h2>Direct Known Subclasses</h2>
109
+ <p class="children"><span class='object_link'><a href="LocalRef.html" title="Bridge::LocalRef (class)">LocalRef</a></span></p>
110
+ </div>
111
+
112
+ <h2>Constant Summary</h2>
113
+
114
+ <dl class="constants">
115
+
116
+ <dt id="refs-classvariable" class="">@@refs =
117
+
118
+ </dt>
119
+ <dd><pre class="code"><span class='lbrace token'>{</span><span class='rbrace token'>}</span>
120
+ </pre></dd>
121
+
122
+ </dl>
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+ <h2>
133
+ Class Method Summary
134
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
135
+ </h2>
136
+
137
+ <ul class="summary">
138
+
139
+ <li class="public ">
140
+ <span class="summary_signature">
141
+
142
+ <a href="#lookup-class_method" title="lookup (class method)">+ (Object) <strong>lookup</strong>(ref) </a>
143
+
144
+
145
+
146
+ </span>
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ <span class="summary_desc"><div class='inline'></div></span>
156
+
157
+ </li>
158
+
159
+
160
+ </ul>
161
+
162
+ <h2>
163
+ Instance Method Summary
164
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
165
+ </h2>
166
+
167
+ <ul class="summary">
168
+
169
+ <li class="public ">
170
+ <span class="summary_signature">
171
+
172
+ <a href="#call-instance_method" title="#call (instance method)">- (Object) <strong>call</strong>(*args) </a>
173
+
174
+
175
+
176
+ </span>
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+ <span class="summary_desc"><div class='inline'></div></span>
186
+
187
+ </li>
188
+
189
+
190
+ <li class="public ">
191
+ <span class="summary_signature">
192
+
193
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Ref) <strong>initialize</strong>(path) </a>
194
+
195
+
196
+
197
+ </span>
198
+
199
+ <span class="note title constructor">constructor</span>
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <span class="summary_desc"><div class='inline'><p>
209
+ A new instance of Ref.
210
+ </p>
211
+ </div></span>
212
+
213
+ </li>
214
+
215
+
216
+ <li class="public ">
217
+ <span class="summary_signature">
218
+
219
+ <a href="#method-instance_method" title="#method (instance method)">- (Object) <strong>method</strong>(atom) </a>
220
+
221
+
222
+
223
+ </span>
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+ <span class="summary_desc"><div class='inline'></div></span>
233
+
234
+ </li>
235
+
236
+
237
+ <li class="public ">
238
+ <span class="summary_signature">
239
+
240
+ <a href="#method_missing-instance_method" title="#method_missing (instance method)">- (Object) <strong>method_missing</strong>(atom, *args, &amp;blk) </a>
241
+
242
+
243
+
244
+ </span>
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+ <span class="summary_desc"><div class='inline'></div></span>
254
+
255
+ </li>
256
+
257
+
258
+ <li class="public ">
259
+ <span class="summary_signature">
260
+
261
+ <a href="#path-instance_method" title="#path (instance method)">- (Object) <strong>path</strong> </a>
262
+
263
+
264
+
265
+ </span>
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+ <span class="summary_desc"><div class='inline'></div></span>
275
+
276
+ </li>
277
+
278
+
279
+ <li class="public ">
280
+ <span class="summary_signature">
281
+
282
+ <a href="#respond_to%3F-instance_method" title="#respond_to? (instance method)">- (Boolean) <strong>respond_to?</strong>(atom) </a>
283
+
284
+
285
+
286
+ </span>
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+ <span class="summary_desc"><div class='inline'></div></span>
296
+
297
+ </li>
298
+
299
+
300
+ <li class="public ">
301
+ <span class="summary_signature">
302
+
303
+ <a href="#to_json-instance_method" title="#to_json (instance method)">- (Object) <strong>to_json</strong>(*a) </a>
304
+
305
+
306
+
307
+ </span>
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+ <span class="summary_desc"><div class='inline'></div></span>
317
+
318
+ </li>
319
+
320
+
321
+ </ul>
322
+
323
+
324
+ <div id="constructor_details" class="method_details_list">
325
+ <h2>Constructor Details</h2>
326
+
327
+ <div class="method_details first">
328
+ <p class="signature first" id="initialize-instance_method">
329
+
330
+ - (<tt><span class='object_link'><a href="" title="Bridge::Ref (class)">Ref</a></span></tt>) <strong>initialize</strong>(path)
331
+
332
+
333
+
334
+ </p><div class="docstring">
335
+ <div class="discussion">
336
+ <p>
337
+ A new instance of Ref
338
+ </p>
339
+
340
+
341
+ </div>
342
+ </div>
343
+ <div class="tags">
344
+
345
+
346
+ </div><table class="source_code">
347
+ <tr>
348
+ <td>
349
+ <pre class="lines">
350
+
351
+
352
+ 14
353
+ 15
354
+ 16
355
+ 17</pre>
356
+ </td>
357
+ <td>
358
+ <pre class="code"><span class="info file"># File 'lib/bb/ref.rb', line 14</span>
359
+
360
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span> <span class='rubyid_path identifier id'>path</span>
361
+ <span class='rubyid_@path ivar id'>@path</span> <span class='assign token'>=</span> <span class='rubyid_path identifier id'>path</span>
362
+ <span class='rubyid_@@refs ivar id'>@@refs</span><span class='lbrack token'>[</span><span class='rubyid_path identifier id'>path</span><span class='lbrack token'>[</span><span class='integer val'>2</span> <span class='dot2 op'>..</span> <span class='integer val'>-1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_json identifier id'>to_json</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span>
363
+ <span class='rubyid_end end kw'>end</span>
364
+ </pre>
365
+ </td>
366
+ </tr>
367
+ </table>
368
+ </div>
369
+
370
+ </div>
371
+ <div id="method_missing_details" class="method_details_list">
372
+ <h2>Dynamic Method Handling</h2>
373
+ <p class="notice this">
374
+ This class handles dynamic methods through the <tt>method_missing</tt> method
375
+
376
+ </p>
377
+
378
+ <div class="method_details first">
379
+ <p class="signature first" id="method_missing-instance_method">
380
+
381
+ - (<tt>Object</tt>) <strong>method_missing</strong>(atom, *args, &amp;blk)
382
+
383
+
384
+
385
+ </p><table class="source_code">
386
+ <tr>
387
+ <td>
388
+ <pre class="lines">
389
+
390
+
391
+ 23
392
+ 24
393
+ 25</pre>
394
+ </td>
395
+ <td>
396
+ <pre class="code"><span class="info file"># File 'lib/bb/ref.rb', line 23</span>
397
+
398
+ <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>
399
+ <span class='rubyid_Core constant id'>Core</span><span class='colon2 op'>::</span><span class='rubyid_lookup identifier id'>lookup</span><span class='lparen token'>(</span><span class='rubyid_@path ivar id'>@path</span> <span class='plus op'>+</span> <span class='lbrack token'>[</span><span class='rubyid_atom identifier id'>atom</span><span class='rbrack token'>]</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>
400
+ <span class='rubyid_end end kw'>end</span>
401
+ </pre>
402
+ </td>
403
+ </tr>
404
+ </table>
405
+ </div>
406
+
407
+ </div>
408
+
409
+
410
+ <div id="class_method_details" class="method_details_list">
411
+ <h2>Class Method Details</h2>
412
+
413
+
414
+ <div class="method_details first">
415
+ <p class="signature first" id="lookup-class_method">
416
+
417
+ + (<tt>Object</tt>) <strong>lookup</strong>(ref)
418
+
419
+
420
+
421
+ </p><table class="source_code">
422
+ <tr>
423
+ <td>
424
+ <pre class="lines">
425
+
426
+
427
+ 6
428
+ 7
429
+ 8
430
+ 9
431
+ 10
432
+ 11
433
+ 12</pre>
434
+ </td>
435
+ <td>
436
+ <pre class="code"><span class="info file"># File 'lib/bb/ref.rb', line 6</span>
437
+
438
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_lookup identifier id'>lookup</span> <span class='rubyid_ref identifier id'>ref</span>
439
+ <span class='rubyid_key identifier id'>key</span> <span class='assign token'>=</span> <span class='rubyid_ref identifier id'>ref</span><span class='lbrack token'>[</span><span class='integer val'>2</span> <span class='dot2 op'>..</span> <span class='integer val'>-1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_json identifier id'>to_json</span>
440
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_@@refs ivar id'>@@refs</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span> <span class='eq op'>==</span> <span class='rubyid_nil nil kw'>nil</span>
441
+ <span class='rubyid_@@refs ivar id'>@@refs</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_Ref constant id'>Ref</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_ref identifier id'>ref</span><span class='rparen token'>)</span>
442
+ <span class='rubyid_end end kw'>end</span>
443
+ <span class='rubyid_@@refs ivar id'>@@refs</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span>
444
+ <span class='rubyid_end end kw'>end</span>
445
+ </pre>
446
+ </td>
447
+ </tr>
448
+ </table>
449
+ </div>
450
+
451
+ </div>
452
+
453
+ <div id="instance_method_details" class="method_details_list">
454
+ <h2>Instance Method Details</h2>
455
+
456
+
457
+ <div class="method_details first">
458
+ <p class="signature first" id="call-instance_method">
459
+
460
+ - (<tt>Object</tt>) <strong>call</strong>(*args)
461
+
462
+
463
+
464
+ </p><table class="source_code">
465
+ <tr>
466
+ <td>
467
+ <pre class="lines">
468
+
469
+
470
+ 31
471
+ 32
472
+ 33
473
+ 34
474
+ 35
475
+ 36</pre>
476
+ </td>
477
+ <td>
478
+ <pre class="code"><span class="info file"># File 'lib/bb/ref.rb', line 31</span>
479
+
480
+ <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>
481
+ <span class='rubyid_Core constant id'>Core</span><span class='colon2 op'>::</span><span class='rubyid_command identifier id'>command</span> <span class='symbol val'>:SEND</span><span class='comma token'>,</span> <span class='lbrace token'>{</span>
482
+ <span class='symbol val'>:destination</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrace token'>{</span><span class='symbol val'>:ref</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_@path ivar id'>@path</span><span class='rbrace token'>}</span><span class='comma token'>,</span>
483
+ <span class='symbol val'>:args</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_Util constant id'>Util</span><span class='colon2 op'>::</span><span class='rubyid_inflate identifier id'>inflate</span><span class='lparen token'>(</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
484
+ <span class='rbrace token'>}</span>
485
+ <span class='rubyid_end end kw'>end</span>
486
+ </pre>
487
+ </td>
488
+ </tr>
489
+ </table>
490
+ </div>
491
+
492
+ <div class="method_details ">
493
+ <p class="signature " id="method-instance_method">
494
+
495
+ - (<tt>Object</tt>) <strong>method</strong>(atom)
496
+
497
+
498
+
499
+ </p><table class="source_code">
500
+ <tr>
501
+ <td>
502
+ <pre class="lines">
503
+
504
+
505
+ 27
506
+ 28
507
+ 29</pre>
508
+ </td>
509
+ <td>
510
+ <pre class="code"><span class="info file"># File 'lib/bb/ref.rb', line 27</span>
511
+
512
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_method identifier id'>method</span> <span class='rubyid_atom identifier id'>atom</span>
513
+ <span class='rubyid_Core constant id'>Core</span><span class='colon2 op'>::</span><span class='rubyid_lookup identifier id'>lookup</span><span class='lparen token'>(</span><span class='rubyid_@path ivar id'>@path</span> <span class='plus op'>+</span> <span class='lbrack token'>[</span><span class='rubyid_atom identifier id'>atom</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
514
+ <span class='rubyid_end end kw'>end</span>
515
+ </pre>
516
+ </td>
517
+ </tr>
518
+ </table>
519
+ </div>
520
+
521
+ <div class="method_details ">
522
+ <p class="signature " id="path-instance_method">
523
+
524
+ - (<tt>Object</tt>) <strong>path</strong>
525
+
526
+
527
+
528
+ </p><table class="source_code">
529
+ <tr>
530
+ <td>
531
+ <pre class="lines">
532
+
533
+
534
+ 19
535
+ 20
536
+ 21</pre>
537
+ </td>
538
+ <td>
539
+ <pre class="code"><span class="info file"># File 'lib/bb/ref.rb', line 19</span>
540
+
541
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_path identifier id'>path</span>
542
+ <span class='rubyid_@path ivar id'>@path</span>
543
+ <span class='rubyid_end end kw'>end</span>
544
+ </pre>
545
+ </td>
546
+ </tr>
547
+ </table>
548
+ </div>
549
+
550
+ <div class="method_details ">
551
+ <p class="signature " id="respond_to?-instance_method">
552
+
553
+ - (<tt>Boolean</tt>) <strong>respond_to?</strong>(atom)
554
+
555
+
556
+
557
+ </p><div class="docstring">
558
+ <div class="discussion">
559
+
560
+
561
+ </div>
562
+ </div>
563
+ <div class="tags">
564
+
565
+ <h3>Returns:</h3>
566
+ <ul class="return">
567
+
568
+ <li>
569
+
570
+
571
+ <span class='type'>(<tt>Boolean</tt>)</span>
572
+
573
+
574
+
575
+ </li>
576
+
577
+ </ul>
578
+
579
+ </div><table class="source_code">
580
+ <tr>
581
+ <td>
582
+ <pre class="lines">
583
+
584
+
585
+ 38
586
+ 39
587
+ 40</pre>
588
+ </td>
589
+ <td>
590
+ <pre class="code"><span class="info file"># File 'lib/bb/ref.rb', line 38</span>
591
+
592
+ <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>
593
+ <span class='rubyid_true true kw'>true</span>
594
+ <span class='rubyid_end end kw'>end</span>
595
+ </pre>
596
+ </td>
597
+ </tr>
598
+ </table>
599
+ </div>
600
+
601
+ <div class="method_details ">
602
+ <p class="signature " id="to_json-instance_method">
603
+
604
+ - (<tt>Object</tt>) <strong>to_json</strong>(*a)
605
+
606
+
607
+
608
+ </p><table class="source_code">
609
+ <tr>
610
+ <td>
611
+ <pre class="lines">
612
+
613
+
614
+ 42
615
+ 43
616
+ 44
617
+ 45
618
+ 46
619
+ 47</pre>
620
+ </td>
621
+ <td>
622
+ <pre class="code"><span class="info file"># File 'lib/bb/ref.rb', line 42</span>
623
+
624
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_json identifier id'>to_json</span> <span class='mult op'>*</span><span class='rubyid_a identifier id'>a</span>
625
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_@path ivar id'>@path</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_respond_to? fid id'>respond_to?</span> <span class='colon op'>:</span><span class='rubyid_call identifier id'>call</span>
626
+ <span class='rubyid_@path ivar id'>@path</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_@path ivar id'>@path</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span>
627
+ <span class='rubyid_end end kw'>end</span>
628
+ <span class='lbrace token'>{</span><span class='symbol val'>:ref</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_@path ivar id'>@path</span><span class='rbrace token'>}</span><span class='dot token'>.</span><span class='rubyid_to_json identifier id'>to_json</span> <span class='mult op'>*</span><span class='rubyid_a identifier id'>a</span>
629
+ <span class='rubyid_end end kw'>end</span>
630
+ </pre>
631
+ </td>
632
+ </tr>
633
+ </table>
634
+ </div>
635
+
636
+ </div>
637
+
638
+ </div>
639
+
640
+ <div id="footer">
641
+ Generated on Sun Mar 4 11:14:11 2012 by
642
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
643
+ 0.7.5 (ruby-1.8.7).
644
+ </div>
645
+
646
+ </body>
647
+ </html>