ruby_ext_direct 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,736 @@
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: ExtDirect::Api
8
+
9
+ &mdash; Documentation by YARD 0.7.3
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 (A)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../ExtDirect.html" title="ExtDirect (module)">ExtDirect</a></span></span>
38
+ &raquo;
39
+ <span class="title">Api</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: ExtDirect::Api
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">ExtDirect::Api</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/ext_direct/api.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
+ Simply expose a class
99
+ </p>
100
+
101
+
102
+ </div>
103
+ </div>
104
+ <div class="tags">
105
+
106
+ <h3>Author:</h3>
107
+ <ul class="author">
108
+
109
+ <li>
110
+
111
+
112
+
113
+
114
+
115
+ <div class='inline'><p>
116
+ Mehmet Celik
117
+ </p>
118
+ </div>
119
+
120
+ </li>
121
+
122
+ </ul>
123
+
124
+ </div>
125
+
126
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
127
+ <ul class="summary">
128
+
129
+ <li class="public ">
130
+ <span class="summary_signature">
131
+
132
+ <a href="#exposed_api-instance_method" title="#exposed_api (instance method)">- (Object) <strong>exposed_api</strong> </a>
133
+
134
+
135
+
136
+ </span>
137
+
138
+
139
+ <span class="note title readonly">readonly</span>
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+ <span class="summary_desc"><div class='inline'><p>
149
+ Returns the value of attribute exposed_api.
150
+ </p>
151
+ </div></span>
152
+
153
+ </li>
154
+
155
+
156
+ </ul>
157
+
158
+
159
+
160
+
161
+
162
+ <h2>
163
+ Class 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="#expose-class_method" title="expose (class method)">+ (Hash) <strong>expose</strong>(class_to_expose, options = {}) </a>
173
+
174
+
175
+
176
+ </span>
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+ <span class="summary_desc"><div class='inline'><p>
186
+ Expose a class.
187
+ </p>
188
+ </div></span>
189
+
190
+ </li>
191
+
192
+
193
+ <li class="public ">
194
+ <span class="summary_signature">
195
+
196
+ <a href="#expose_all-class_method" title="expose_all (class method)">+ (Object) <strong>expose_all</strong>(class_dir) </a>
197
+
198
+
199
+
200
+ </span>
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+ <span class="summary_desc"><div class='inline'><p>
210
+ Expose all classes in a directory(conviniance method).
211
+ </p>
212
+ </div></span>
213
+
214
+ </li>
215
+
216
+
217
+ <li class="public ">
218
+ <span class="summary_signature">
219
+
220
+ <a href="#to_json-class_method" title="to_json (class method)">+ (String) <strong>to_json</strong> </a>
221
+
222
+
223
+
224
+ </span>
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+ <span class="summary_desc"><div class='inline'><p>
234
+ Return all exposed classes as a JSON String.
235
+ </p>
236
+ </div></span>
237
+
238
+ </li>
239
+
240
+
241
+ <li class="public ">
242
+ <span class="summary_signature">
243
+
244
+ <a href="#to_raw-class_method" title="to_raw (class method)">+ (Hash) <strong>to_raw</strong> </a>
245
+
246
+
247
+
248
+ </span>
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+ <span class="summary_desc"><div class='inline'><p>
258
+ Return a Hash of all exposed classes.
259
+ </p>
260
+ </div></span>
261
+
262
+ </li>
263
+
264
+
265
+ </ul>
266
+
267
+
268
+
269
+ <div id="instance_attr_details" class="attr_details">
270
+ <h2>Instance Attribute Details</h2>
271
+
272
+
273
+ <span id=""></span>
274
+ <span id="exposed_api-instance_method"></span>
275
+ <div class="method_details first">
276
+ <p class="signature first" id="exposed_api-instance_method">
277
+
278
+ - (<tt>Object</tt>) <strong>exposed_api</strong> <span class="extras">(readonly)</span>
279
+
280
+
281
+
282
+ </p><div class="docstring">
283
+ <div class="discussion">
284
+ <p>
285
+ Returns the value of attribute exposed_api
286
+ </p>
287
+
288
+
289
+ </div>
290
+ </div>
291
+ <div class="tags">
292
+
293
+
294
+ </div><table class="source_code">
295
+ <tr>
296
+ <td>
297
+ <pre class="lines">
298
+
299
+
300
+ 7
301
+ 8
302
+ 9</pre>
303
+ </td>
304
+ <td>
305
+ <pre class="code"><span class="info file"># File 'lib/ext_direct/api.rb', line 7</span>
306
+
307
+ <span class='kw'>def</span> <span class='id exposed_api'>exposed_api</span>
308
+ <span class='ivar'>@exposed_api</span>
309
+ <span class='kw'>end</span></pre>
310
+ </td>
311
+ </tr>
312
+ </table>
313
+ </div>
314
+
315
+ </div>
316
+
317
+
318
+ <div id="class_method_details" class="method_details_list">
319
+ <h2>Class Method Details</h2>
320
+
321
+
322
+ <div class="method_details first">
323
+ <p class="signature first" id="expose-class_method">
324
+
325
+ + (<tt>Hash</tt>) <strong>expose</strong>(class_to_expose, options = {})
326
+
327
+
328
+
329
+ </p><div class="docstring">
330
+ <div class="discussion">
331
+ <p>
332
+ Expose a class
333
+ </p>
334
+
335
+
336
+ </div>
337
+ </div>
338
+ <div class="tags">
339
+ <h3>Parameters:</h3>
340
+ <ul class="param">
341
+
342
+ <li>
343
+
344
+ <span class='name'>class</span>
345
+
346
+
347
+ <span class='type'>(<tt>Class</tt>)</span>
348
+
349
+
350
+
351
+ &mdash;
352
+ <div class='inline'><p>
353
+ that needs to be exposed
354
+ </p>
355
+ </div>
356
+
357
+ </li>
358
+
359
+ <li>
360
+
361
+ <span class='name'>instructions</span>
362
+
363
+
364
+ <span class='type'>(<tt>Hash</tt>)</span>
365
+
366
+
367
+
368
+ &mdash;
369
+ <div class='inline'><p>
370
+ to how to expose the class. For now just the &#8217;:only&#8217; key is
371
+ accepted.
372
+ </p>
373
+ </div>
374
+
375
+ </li>
376
+
377
+ </ul>
378
+
379
+ <h3>Returns:</h3>
380
+ <ul class="return">
381
+
382
+ <li>
383
+
384
+
385
+ <span class='type'>(<tt>Hash</tt>)</span>
386
+
387
+
388
+
389
+ &mdash;
390
+ <div class='inline'><p>
391
+ returns a list of exposed classes
392
+ </p>
393
+ </div>
394
+
395
+ </li>
396
+
397
+ </ul>
398
+ <h3>Author:</h3>
399
+ <ul class="author">
400
+
401
+ <li>
402
+
403
+
404
+
405
+
406
+
407
+ <div class='inline'><p>
408
+ Mehmet Celik
409
+ </p>
410
+ </div>
411
+
412
+ </li>
413
+
414
+ </ul>
415
+
416
+ </div><table class="source_code">
417
+ <tr>
418
+ <td>
419
+ <pre class="lines">
420
+
421
+
422
+ 15
423
+ 16
424
+ 17
425
+ 18
426
+ 19
427
+ 20
428
+ 21
429
+ 22
430
+ 23
431
+ 24
432
+ 25
433
+ 26
434
+ 27
435
+ 28
436
+ 29
437
+ 30
438
+ 31
439
+ 32
440
+ 33
441
+ 34</pre>
442
+ </td>
443
+ <td>
444
+ <pre class="code"><span class="info file"># File 'lib/ext_direct/api.rb', line 15</span>
445
+
446
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id expose'>expose</span><span class='lparen'>(</span><span class='id class_to_expose'>class_to_expose</span><span class='comma'>,</span> <span class='id options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
447
+ <span class='ivar'>@exposed_api</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='kw'>if</span> <span class='ivar'>@exposed_api</span><span class='period'>.</span><span class='id nil?'>nil?</span>
448
+
449
+ <span class='id methods'>methods</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
450
+
451
+ <span class='kw'>if</span> <span class='id options'>options</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='symbol'>:only</span><span class='rparen'>)</span>
452
+ <span class='id raw_methods'>raw_methods</span> <span class='op'>=</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:only</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
453
+ <span class='kw'>else</span>
454
+ <span class='id raw_methods'>raw_methods</span> <span class='op'>=</span> <span class='id class_to_expose'>class_to_expose</span><span class='period'>.</span><span class='id instance_methods'>instance_methods</span><span class='lparen'>(</span><span class='kw'>false</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:except</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
455
+ <span class='kw'>end</span>
456
+
457
+ <span class='id raw_methods'>raw_methods</span><span class='period'>.</span><span class='id uniq!'>uniq!</span>
458
+ <span class='id raw_methods'>raw_methods</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id m'>m</span><span class='op'>|</span>
459
+ <span class='id name'>name</span> <span class='op'>=</span> <span class='id m'>m</span>
460
+ <span class='id len'>len</span> <span class='op'>=</span> <span class='id class_to_expose'>class_to_expose</span><span class='period'>.</span><span class='id instance_method'>instance_method</span><span class='lparen'>(</span><span class='id m'>m</span><span class='rparen'>)</span><span class='period'>.</span><span class='id parameters'>parameters</span><span class='period'>.</span><span class='id size'>size</span>
461
+ <span class='id methods'>methods</span> <span class='op'>&lt;&lt;</span> <span class='lbrace'>{</span><span class='symbol'>:name</span> <span class='op'>=&gt;</span> <span class='id name'>name</span><span class='comma'>,</span> <span class='symbol'>:len</span> <span class='op'>=&gt;</span> <span class='id len'>len</span><span class='rbrace'>}</span>
462
+ <span class='kw'>end</span>
463
+
464
+ <span class='ivar'>@exposed_api</span><span class='period'>.</span><span class='id store'>store</span><span class='lparen'>(</span><span class='id class_to_expose'>class_to_expose</span><span class='period'>.</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id methods'>methods</span><span class='rparen'>)</span>
465
+ <span class='kw'>end</span></pre>
466
+ </td>
467
+ </tr>
468
+ </table>
469
+ </div>
470
+
471
+ <div class="method_details ">
472
+ <p class="signature " id="expose_all-class_method">
473
+
474
+ + (<tt>Object</tt>) <strong>expose_all</strong>(class_dir)
475
+
476
+
477
+
478
+ </p><div class="docstring">
479
+ <div class="discussion">
480
+ <p>
481
+ Expose all classes in a directory(conviniance method)
482
+ </p>
483
+
484
+
485
+ </div>
486
+ </div>
487
+ <div class="tags">
488
+ <h3>Parameters:</h3>
489
+ <ul class="param">
490
+
491
+ <li>
492
+
493
+ <span class='name'>Directory</span>
494
+
495
+
496
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
497
+
498
+
499
+
500
+ &mdash;
501
+ <div class='inline'><p>
502
+ where all classes are stored
503
+ </p>
504
+ </div>
505
+
506
+ </li>
507
+
508
+ </ul>
509
+
510
+ <h3>Author:</h3>
511
+ <ul class="author">
512
+
513
+ <li>
514
+
515
+
516
+
517
+
518
+
519
+ <div class='inline'><p>
520
+ Mehmet Celik
521
+ </p>
522
+ </div>
523
+
524
+ </li>
525
+
526
+ </ul>
527
+
528
+ </div><table class="source_code">
529
+ <tr>
530
+ <td>
531
+ <pre class="lines">
532
+
533
+
534
+ 40
535
+ 41
536
+ 42
537
+ 43
538
+ 44
539
+ 45
540
+ 46
541
+ 47
542
+ 48
543
+ 49
544
+ 50
545
+ 51</pre>
546
+ </td>
547
+ <td>
548
+ <pre class="code"><span class="info file"># File 'lib/ext_direct/api.rb', line 40</span>
549
+
550
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id expose_all'>expose_all</span><span class='lparen'>(</span><span class='id class_dir'>class_dir</span><span class='rparen'>)</span>
551
+ <span class='ivar'>@exposed_api</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
552
+
553
+ <span class='const'>Dir</span><span class='period'>.</span><span class='id glob'>glob</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id class_dir'>class_dir</span><span class='rbrace'>}</span><span class='tstring_content'>/**/*.rb</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id r'>r</span><span class='op'>|</span>
554
+ <span class='id rr'>rr</span> <span class='op'>=</span> <span class='id r'>r</span><span class='period'>.</span><span class='id split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id class_dir'>class_dir</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.rb</span><span class='tstring_end'>'</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
555
+ <span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id class_dir'>class_dir</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id rr'>rr</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
556
+ <span class='id require'>require</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id class_dir'>class_dir</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id rr'>rr</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
557
+
558
+ <span class='id klass'>klass</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id class'>class</span><span class='period'>.</span><span class='id const_get'>const_get</span><span class='lparen'>(</span><span class='id rr'>rr</span><span class='period'>.</span><span class='id split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id map'>map</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id c'>c</span><span class='op'>|</span> <span class='id c'>c</span><span class='period'>.</span><span class='id capitalize'>capitalize</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
559
+ <span class='kw'>self</span><span class='period'>.</span><span class='id expose'>expose</span> <span class='id klass'>klass</span>
560
+ <span class='kw'>end</span>
561
+ <span class='kw'>end</span></pre>
562
+ </td>
563
+ </tr>
564
+ </table>
565
+ </div>
566
+
567
+ <div class="method_details ">
568
+ <p class="signature " id="to_json-class_method">
569
+
570
+ + (<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>) <strong>to_json</strong>
571
+
572
+
573
+
574
+ </p><div class="docstring">
575
+ <div class="discussion">
576
+ <p>
577
+ Return all exposed classes as a JSON String
578
+ </p>
579
+
580
+
581
+ </div>
582
+ </div>
583
+ <div class="tags">
584
+
585
+ <h3>Returns:</h3>
586
+ <ul class="return">
587
+
588
+ <li>
589
+
590
+
591
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
592
+
593
+
594
+
595
+ &mdash;
596
+ <div class='inline'><p>
597
+ exposed classes as JSON String
598
+ </p>
599
+ </div>
600
+
601
+ </li>
602
+
603
+ </ul>
604
+ <h3>Author:</h3>
605
+ <ul class="author">
606
+
607
+ <li>
608
+
609
+
610
+
611
+
612
+
613
+ <div class='inline'><p>
614
+ Mehmet Celik
615
+ </p>
616
+ </div>
617
+
618
+ </li>
619
+
620
+ </ul>
621
+
622
+ </div><table class="source_code">
623
+ <tr>
624
+ <td>
625
+ <pre class="lines">
626
+
627
+
628
+ 57
629
+ 58
630
+ 59
631
+ 60</pre>
632
+ </td>
633
+ <td>
634
+ <pre class="code"><span class="info file"># File 'lib/ext_direct/api.rb', line 57</span>
635
+
636
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id to_json'>to_json</span>
637
+ <span class='id api'>api</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id to_raw'>to_raw</span>
638
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>REMOTING_API = </span><span class='embexpr_beg'>#{</span><span class='id api'>api</span><span class='period'>.</span><span class='id to_json'>to_json</span><span class='rbrace'>}</span><span class='tstring_content'>;</span><span class='tstring_end'>&quot;</span></span>
639
+ <span class='kw'>end</span></pre>
640
+ </td>
641
+ </tr>
642
+ </table>
643
+ </div>
644
+
645
+ <div class="method_details ">
646
+ <p class="signature " id="to_raw-class_method">
647
+
648
+ + (<tt>Hash</tt>) <strong>to_raw</strong>
649
+
650
+
651
+
652
+ </p><div class="docstring">
653
+ <div class="discussion">
654
+ <p>
655
+ Return a Hash of all exposed classes
656
+ </p>
657
+
658
+
659
+ </div>
660
+ </div>
661
+ <div class="tags">
662
+
663
+ <h3>Returns:</h3>
664
+ <ul class="return">
665
+
666
+ <li>
667
+
668
+
669
+ <span class='type'>(<tt>Hash</tt>)</span>
670
+
671
+
672
+
673
+ &mdash;
674
+ <div class='inline'><p>
675
+ exposed classes
676
+ </p>
677
+ </div>
678
+
679
+ </li>
680
+
681
+ </ul>
682
+ <h3>Author:</h3>
683
+ <ul class="author">
684
+
685
+ <li>
686
+
687
+
688
+
689
+
690
+
691
+ <div class='inline'><p>
692
+ Mehmet Celik
693
+ </p>
694
+ </div>
695
+
696
+ </li>
697
+
698
+ </ul>
699
+
700
+ </div><table class="source_code">
701
+ <tr>
702
+ <td>
703
+ <pre class="lines">
704
+
705
+
706
+ 66
707
+ 67
708
+ 68
709
+ 69
710
+ 70</pre>
711
+ </td>
712
+ <td>
713
+ <pre class="code"><span class="info file"># File 'lib/ext_direct/api.rb', line 66</span>
714
+
715
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id to_raw'>to_raw</span>
716
+ <span class='id api'>api</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:url</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/router</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
717
+ <span class='symbol'>:type</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>remoting</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
718
+ <span class='symbol'>:actions</span> <span class='op'>=&gt;</span> <span class='ivar'>@exposed_api</span><span class='rbrace'>}</span>
719
+ <span class='kw'>end</span></pre>
720
+ </td>
721
+ </tr>
722
+ </table>
723
+ </div>
724
+
725
+ </div>
726
+
727
+ </div>
728
+
729
+ <div id="footer">
730
+ Generated on Sun Oct 23 21:07:37 2011 by
731
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
732
+ 0.7.3 (ruby-1.9.2).
733
+ </div>
734
+
735
+ </body>
736
+ </html>