Capcode 0.9.7 → 0.9.8
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.
- data/README.rdoc +8 -0
- data/doc/rdoc/classes/Capcode.html +486 -439
- data/doc/rdoc/classes/Capcode/Configuration.html +28 -28
- data/doc/rdoc/classes/Capcode/Helpers.html +93 -63
- data/doc/rdoc/classes/Capcode/Helpers/Authorization.html +6 -6
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README_rdoc.html +26 -2
- data/doc/rdoc/files/lib/capcode/configuration_rb.html +1 -1
- data/doc/rdoc/files/lib/capcode/filters_rb.html +1 -1
- data/doc/rdoc/files/lib/capcode_rb.html +4 -1
- data/doc/rdoc/fr_method_index.html +17 -15
- data/examples/rest-run.rb +1 -1
- data/examples/rest.log +70 -0
- data/examples/rest.rb +4 -3
- data/examples/rest.ru +1 -1
- data/lib/capcode.rb +41 -8
- data/lib/capcode/configuration.rb +2 -2
- data/lib/capcode/filters.rb +7 -1
- data/lib/capcode/version.rb +1 -1
- metadata +5 -4
@@ -86,10 +86,10 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
89
|
+
<a href="#M000027">get</a>
|
90
|
+
<a href="#M000028">options</a>
|
91
|
+
<a href="#M000025">print_debug</a>
|
92
|
+
<a href="#M000026">set</a>
|
93
93
|
</div>
|
94
94
|
</div>
|
95
95
|
|
@@ -111,19 +111,19 @@
|
|
111
111
|
<div id="methods">
|
112
112
|
<h3 class="section-bar">Public Class methods</h3>
|
113
113
|
|
114
|
-
<div id="method-
|
115
|
-
<a name="
|
114
|
+
<div id="method-M000027" class="method-detail">
|
115
|
+
<a name="M000027"></a>
|
116
116
|
|
117
117
|
<div class="method-heading">
|
118
|
-
<a href="#
|
118
|
+
<a href="#M000027" class="method-signature">
|
119
119
|
<span class="method-name">get</span><span class="method-args">( key = nil )</span>
|
120
120
|
</a>
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div class="method-description">
|
124
124
|
<p><a class="source-toggle" href="#"
|
125
|
-
onclick="toggleCode('
|
126
|
-
<div class="method-source-code" id="
|
125
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
126
|
+
<div class="method-source-code" id="M000027-source">
|
127
127
|
<pre>
|
128
128
|
<span class="ruby-comment cmt"># File lib/capcode/configuration.rb, line 67</span>
|
129
129
|
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>( <span class="ruby-identifier">key</span> = <span class="ruby-keyword kw">nil</span> )
|
@@ -138,19 +138,19 @@
|
|
138
138
|
</div>
|
139
139
|
</div>
|
140
140
|
|
141
|
-
<div id="method-
|
142
|
-
<a name="
|
141
|
+
<div id="method-M000028" class="method-detail">
|
142
|
+
<a name="M000028"></a>
|
143
143
|
|
144
144
|
<div class="method-heading">
|
145
|
-
<a href="#
|
145
|
+
<a href="#M000028" class="method-signature">
|
146
146
|
<span class="method-name">options</span><span class="method-args">()</span>
|
147
147
|
</a>
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div class="method-description">
|
151
151
|
<p><a class="source-toggle" href="#"
|
152
|
-
onclick="toggleCode('
|
153
|
-
<div class="method-source-code" id="
|
152
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
153
|
+
<div class="method-source-code" id="M000028-source">
|
154
154
|
<pre>
|
155
155
|
<span class="ruby-comment cmt"># File lib/capcode/configuration.rb, line 75</span>
|
156
156
|
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">options</span>
|
@@ -161,19 +161,19 @@
|
|
161
161
|
</div>
|
162
162
|
</div>
|
163
163
|
|
164
|
-
<div id="method-
|
165
|
-
<a name="
|
164
|
+
<div id="method-M000025" class="method-detail">
|
165
|
+
<a name="M000025"></a>
|
166
166
|
|
167
167
|
<div class="method-heading">
|
168
|
-
<a href="#
|
168
|
+
<a href="#M000025" class="method-signature">
|
169
169
|
<span class="method-name">print_debug</span><span class="method-args">()</span>
|
170
170
|
</a>
|
171
171
|
</div>
|
172
172
|
|
173
173
|
<div class="method-description">
|
174
174
|
<p><a class="source-toggle" href="#"
|
175
|
-
onclick="toggleCode('
|
176
|
-
<div class="method-source-code" id="
|
175
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000025-source">
|
177
177
|
<pre>
|
178
178
|
<span class="ruby-comment cmt"># File lib/capcode/configuration.rb, line 28</span>
|
179
179
|
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_debug</span>
|
@@ -186,18 +186,18 @@
|
|
186
186
|
</div>
|
187
187
|
</div>
|
188
188
|
|
189
|
-
<div id="method-
|
190
|
-
<a name="
|
189
|
+
<div id="method-M000026" class="method-detail">
|
190
|
+
<a name="M000026"></a>
|
191
191
|
|
192
192
|
<div class="method-heading">
|
193
|
-
<a href="#
|
193
|
+
<a href="#M000026" class="method-signature">
|
194
194
|
<span class="method-name">set</span><span class="method-args">( key, value, opts = {} )</span>
|
195
195
|
</a>
|
196
196
|
</div>
|
197
197
|
|
198
198
|
<div class="method-description">
|
199
199
|
<p>
|
200
|
-
Set global configuration <a href="Configuration.html#
|
200
|
+
Set global configuration <a href="Configuration.html#M000028">options</a>
|
201
201
|
</p>
|
202
202
|
<p>
|
203
203
|
Options :
|
@@ -209,7 +209,7 @@ Options :
|
|
209
209
|
<li><tt>:host</tt> = Listen host (default: 0.0.0.0)
|
210
210
|
|
211
211
|
</li>
|
212
|
-
<li><tt>:server</tt> = Server type (webrick, mongrel or
|
212
|
+
<li><tt>:server</tt> = Server type (webrick, mongrel, thin, unicorn or rainbow)
|
213
213
|
|
214
214
|
</li>
|
215
215
|
<li><tt>:log</tt> = Output logfile (default: STDOUT)
|
@@ -239,12 +239,12 @@ This is also the working directory !
|
|
239
239
|
|
240
240
|
</li>
|
241
241
|
<li><tt>:auth</tt> = HTTP Basic Authentication <a
|
242
|
-
href="Configuration.html#
|
242
|
+
href="Configuration.html#M000028">options</a>
|
243
243
|
|
244
244
|
</li>
|
245
245
|
</ul>
|
246
246
|
<p>
|
247
|
-
It can exist specifics <a href="Configuration.html#
|
247
|
+
It can exist specifics <a href="Configuration.html#M000028">options</a>
|
248
248
|
depending on a renderer, a helper, …
|
249
249
|
</p>
|
250
250
|
<p>
|
@@ -257,8 +257,8 @@ Example :
|
|
257
257
|
end
|
258
258
|
</pre>
|
259
259
|
<p><a class="source-toggle" href="#"
|
260
|
-
onclick="toggleCode('
|
261
|
-
<div class="method-source-code" id="
|
260
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
261
|
+
<div class="method-source-code" id="M000026-source">
|
262
262
|
<pre>
|
263
263
|
<span class="ruby-comment cmt"># File lib/capcode/configuration.rb, line 58</span>
|
264
264
|
58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>( <span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">opts</span> = {} )
|
@@ -95,14 +95,15 @@ controllers
|
|
95
95
|
<h3 class="section-bar">Methods</h3>
|
96
96
|
|
97
97
|
<div class="name-list">
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
98
|
+
<a href="#M000020">URL</a>
|
99
|
+
<a href="#M000015">args</a>
|
100
|
+
<a href="#M000016">args=</a>
|
101
|
+
<a href="#M000021">content_for</a>
|
102
|
+
<a href="#M000018">json</a>
|
103
|
+
<a href="#M000023">log</a>
|
104
|
+
<a href="#M000019">redirect</a>
|
105
|
+
<a href="#M000017">render</a>
|
106
|
+
<a href="#M000022">static</a>
|
106
107
|
</div>
|
107
108
|
</div>
|
108
109
|
|
@@ -137,19 +138,19 @@ controllers
|
|
137
138
|
<div id="methods">
|
138
139
|
<h3 class="section-bar">Public Class methods</h3>
|
139
140
|
|
140
|
-
<div id="method-
|
141
|
-
<a name="
|
141
|
+
<div id="method-M000015" class="method-detail">
|
142
|
+
<a name="M000015"></a>
|
142
143
|
|
143
144
|
<div class="method-heading">
|
144
|
-
<a href="#
|
145
|
+
<a href="#M000015" class="method-signature">
|
145
146
|
<span class="method-name">args</span><span class="method-args">()</span>
|
146
147
|
</a>
|
147
148
|
</div>
|
148
149
|
|
149
150
|
<div class="method-description">
|
150
151
|
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('
|
152
|
-
<div class="method-source-code" id="
|
152
|
+
onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
|
153
|
+
<div class="method-source-code" id="M000015-source">
|
153
154
|
<pre>
|
154
155
|
<span class="ruby-comment cmt"># File lib/capcode.rb, line 37</span>
|
155
156
|
37: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">args</span>
|
@@ -160,19 +161,19 @@ controllers
|
|
160
161
|
</div>
|
161
162
|
</div>
|
162
163
|
|
163
|
-
<div id="method-
|
164
|
-
<a name="
|
164
|
+
<div id="method-M000016" class="method-detail">
|
165
|
+
<a name="M000016"></a>
|
165
166
|
|
166
167
|
<div class="method-heading">
|
167
|
-
<a href="#
|
168
|
+
<a href="#M000016" class="method-signature">
|
168
169
|
<span class="method-name">args=</span><span class="method-args">(x)</span>
|
169
170
|
</a>
|
170
171
|
</div>
|
171
172
|
|
172
173
|
<div class="method-description">
|
173
174
|
<p><a class="source-toggle" href="#"
|
174
|
-
onclick="toggleCode('
|
175
|
-
<div class="method-source-code" id="
|
175
|
+
onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000016-source">
|
176
177
|
<pre>
|
177
178
|
<span class="ruby-comment cmt"># File lib/capcode.rb, line 40</span>
|
178
179
|
40: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">args=</span>(<span class="ruby-identifier">x</span>)
|
@@ -185,18 +186,18 @@ controllers
|
|
185
186
|
|
186
187
|
<h3 class="section-bar">Public Instance methods</h3>
|
187
188
|
|
188
|
-
<div id="method-
|
189
|
-
<a name="
|
189
|
+
<div id="method-M000020" class="method-detail">
|
190
|
+
<a name="M000020"></a>
|
190
191
|
|
191
192
|
<div class="method-heading">
|
192
|
-
<a href="#
|
193
|
+
<a href="#M000020" class="method-signature">
|
193
194
|
<span class="method-name">URL</span><span class="method-args">( klass, *a )</span>
|
194
195
|
</a>
|
195
196
|
</div>
|
196
197
|
|
197
198
|
<div class="method-description">
|
198
199
|
<p>
|
199
|
-
Builds an <a href="Helpers.html#
|
200
|
+
Builds an <a href="Helpers.html#M000020">URL</a> route to a controller or a
|
200
201
|
path
|
201
202
|
</p>
|
202
203
|
<p>
|
@@ -216,8 +217,8 @@ then
|
|
216
217
|
URL( Capcode::Hello, "you" ) # => /hello/you
|
217
218
|
</pre>
|
218
219
|
<p><a class="source-toggle" href="#"
|
219
|
-
onclick="toggleCode('
|
220
|
-
<div class="method-source-code" id="
|
220
|
+
onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
|
221
|
+
<div class="method-source-code" id="M000020-source">
|
221
222
|
<pre>
|
222
223
|
<span class="ruby-comment cmt"># File lib/capcode.rb, line 204</span>
|
223
224
|
204: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">URL</span>( <span class="ruby-identifier">klass</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">a</span> )
|
@@ -259,18 +260,18 @@ then
|
|
259
260
|
</div>
|
260
261
|
</div>
|
261
262
|
|
262
|
-
<div id="method-
|
263
|
-
<a name="
|
263
|
+
<div id="method-M000021" class="method-detail">
|
264
|
+
<a name="M000021"></a>
|
264
265
|
|
265
266
|
<div class="method-heading">
|
266
|
-
<a href="#
|
267
|
+
<a href="#M000021" class="method-signature">
|
267
268
|
<span class="method-name">content_for</span><span class="method-args">( x ) {|| ...}</span>
|
268
269
|
</a>
|
269
270
|
</div>
|
270
271
|
|
271
272
|
<div class="method-description">
|
272
273
|
<p>
|
273
|
-
Calling <a href="Helpers.html#
|
274
|
+
Calling <a href="Helpers.html#M000021">content_for</a> stores a block of
|
274
275
|
markup in an identifier.
|
275
276
|
</p>
|
276
277
|
<pre>
|
@@ -306,8 +307,8 @@ markup in an identifier.
|
|
306
307
|
end
|
307
308
|
</pre>
|
308
309
|
<p><a class="source-toggle" href="#"
|
309
|
-
onclick="toggleCode('
|
310
|
-
<div class="method-source-code" id="
|
310
|
+
onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
|
311
|
+
<div class="method-source-code" id="M000021-source">
|
311
312
|
<pre>
|
312
313
|
<span class="ruby-comment cmt"># File lib/capcode.rb, line 271</span>
|
313
314
|
271: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content_for</span>( <span class="ruby-identifier">x</span> )
|
@@ -320,11 +321,11 @@ markup in an identifier.
|
|
320
321
|
</div>
|
321
322
|
</div>
|
322
323
|
|
323
|
-
<div id="method-
|
324
|
-
<a name="
|
324
|
+
<div id="method-M000018" class="method-detail">
|
325
|
+
<a name="M000018"></a>
|
325
326
|
|
326
327
|
<div class="method-heading">
|
327
|
-
<a href="#
|
328
|
+
<a href="#M000018" class="method-signature">
|
328
329
|
<span class="method-name">json</span><span class="method-args">( d )</span>
|
329
330
|
</a>
|
330
331
|
</div>
|
@@ -344,12 +345,12 @@ Help you to return a JSON response
|
|
344
345
|
</pre>
|
345
346
|
<p>
|
346
347
|
<b>DEPRECATED</b>, please use <tt><a
|
347
|
-
href="Helpers.html#
|
348
|
-
href="Helpers.html#
|
348
|
+
href="Helpers.html#M000017">render</a>( :<a
|
349
|
+
href="Helpers.html#M000018">json</a> => o )</tt>
|
349
350
|
</p>
|
350
351
|
<p><a class="source-toggle" href="#"
|
351
|
-
onclick="toggleCode('
|
352
|
-
<div class="method-source-code" id="
|
352
|
+
onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
|
353
|
+
<div class="method-source-code" id="M000018-source">
|
353
354
|
<pre>
|
354
355
|
<span class="ruby-comment cmt"># File lib/capcode.rb, line 148</span>
|
355
356
|
148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">json</span>( <span class="ruby-identifier">d</span> ) <span class="ruby-comment cmt">## DELETE THIS IN 1.0.0</span>
|
@@ -361,18 +362,47 @@ href="Helpers.html#M000017">json</a> => o )</tt>
|
|
361
362
|
</div>
|
362
363
|
</div>
|
363
364
|
|
364
|
-
<div id="method-
|
365
|
-
<a name="
|
365
|
+
<div id="method-M000023" class="method-detail">
|
366
|
+
<a name="M000023"></a>
|
366
367
|
|
367
368
|
<div class="method-heading">
|
368
|
-
<a href="#
|
369
|
+
<a href="#M000023" class="method-signature">
|
370
|
+
<span class="method-name">log</span><span class="method-args">()</span>
|
371
|
+
</a>
|
372
|
+
</div>
|
373
|
+
|
374
|
+
<div class="method-description">
|
375
|
+
<p>
|
376
|
+
Use the Rack logger
|
377
|
+
</p>
|
378
|
+
<pre>
|
379
|
+
log.write( "This is a log !" )
|
380
|
+
</pre>
|
381
|
+
<p><a class="source-toggle" href="#"
|
382
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
383
|
+
<div class="method-source-code" id="M000023-source">
|
384
|
+
<pre>
|
385
|
+
<span class="ruby-comment cmt"># File lib/capcode.rb, line 291</span>
|
386
|
+
291: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>
|
387
|
+
292: <span class="ruby-constant">Capcode</span>.<span class="ruby-identifier">logger</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">env</span>[<span class="ruby-value str">'rack.errors'</span>]
|
388
|
+
293: <span class="ruby-keyword kw">end</span>
|
389
|
+
</pre>
|
390
|
+
</div>
|
391
|
+
</div>
|
392
|
+
</div>
|
393
|
+
|
394
|
+
<div id="method-M000019" class="method-detail">
|
395
|
+
<a name="M000019"></a>
|
396
|
+
|
397
|
+
<div class="method-heading">
|
398
|
+
<a href="#M000019" class="method-signature">
|
369
399
|
<span class="method-name">redirect</span><span class="method-args">( klass, *a )</span>
|
370
400
|
</a>
|
371
401
|
</div>
|
372
402
|
|
373
403
|
<div class="method-description">
|
374
404
|
<p>
|
375
|
-
Send a <a href="Helpers.html#
|
405
|
+
Send a <a href="Helpers.html#M000019">redirect</a> response
|
376
406
|
</p>
|
377
407
|
<pre>
|
378
408
|
module Capcode
|
@@ -401,7 +431,7 @@ it can be a string path
|
|
401
431
|
</pre>
|
402
432
|
<p>
|
403
433
|
it can be an http status code (by default <tt><a
|
404
|
-
href="Helpers.html#
|
434
|
+
href="Helpers.html#M000019">redirect</a></tt> use the http status code 302)
|
405
435
|
</p>
|
406
436
|
<pre>
|
407
437
|
redirect( 304, MyController )
|
@@ -411,8 +441,8 @@ For more informations about HTTP status, see <a
|
|
411
441
|
href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection">en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection</a>
|
412
442
|
</p>
|
413
443
|
<p><a class="source-toggle" href="#"
|
414
|
-
onclick="toggleCode('
|
415
|
-
<div class="method-source-code" id="
|
444
|
+
onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
|
445
|
+
<div class="method-source-code" id="M000019-source">
|
416
446
|
<pre>
|
417
447
|
<span class="ruby-comment cmt"># File lib/capcode.rb, line 180</span>
|
418
448
|
180: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">redirect</span>( <span class="ruby-identifier">klass</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">a</span> )
|
@@ -430,11 +460,11 @@ href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection">en
|
|
430
460
|
</div>
|
431
461
|
</div>
|
432
462
|
|
433
|
-
<div id="method-
|
434
|
-
<a name="
|
463
|
+
<div id="method-M000017" class="method-detail">
|
464
|
+
<a name="M000017"></a>
|
435
465
|
|
436
466
|
<div class="method-heading">
|
437
|
-
<a href="#
|
467
|
+
<a href="#M000017" class="method-signature">
|
438
468
|
<span class="method-name">render</span><span class="method-args">( hash )</span>
|
439
469
|
</a>
|
440
470
|
</div>
|
@@ -444,7 +474,7 @@ href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection">en
|
|
444
474
|
Render a view
|
445
475
|
</p>
|
446
476
|
<p>
|
447
|
-
<a href="Helpers.html#
|
477
|
+
<a href="Helpers.html#M000017">render</a>‘s parameter can be a Hash
|
448
478
|
or a string. Passing a string is equivalent to do
|
449
479
|
</p>
|
450
480
|
<pre>
|
@@ -473,13 +503,13 @@ exist in sass_path
|
|
473
503
|
<li>:text => "my text"
|
474
504
|
|
475
505
|
</li>
|
476
|
-
<li>:<a href="Helpers.html#
|
506
|
+
<li>:<a href="Helpers.html#M000018">json</a> => MyObject : this suppose
|
477
507
|
that‘s MyObject respond to .to_json
|
478
508
|
|
479
509
|
</li>
|
480
|
-
<li>:<a href="Helpers.html#
|
510
|
+
<li>:<a href="Helpers.html#M000022">static</a> => "my_file.xxx" :
|
481
511
|
this suppose that‘s my_file.xxx exist in the <a
|
482
|
-
href="Helpers.html#
|
512
|
+
href="Helpers.html#M000022">static</a> directory
|
483
513
|
|
484
514
|
</li>
|
485
515
|
<li>:xml => :my_func : :my_func must be defined in <a
|
@@ -518,8 +548,8 @@ If you use the WebDav renderer, you can use the option
|
|
518
548
|
:resource_class (see http://github.com/georgi/rack_dav for more informations)
|
519
549
|
</pre>
|
520
550
|
<p><a class="source-toggle" href="#"
|
521
|
-
onclick="toggleCode('
|
522
|
-
<div class="method-source-code" id="
|
551
|
+
onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
|
552
|
+
<div class="method-source-code" id="M000017-source">
|
523
553
|
<pre>
|
524
554
|
<span class="ruby-comment cmt"># File lib/capcode.rb, line 74</span>
|
525
555
|
74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>( <span class="ruby-identifier">hash</span> )
|
@@ -589,33 +619,33 @@ If you use the WebDav renderer, you can use the option
|
|
589
619
|
</div>
|
590
620
|
</div>
|
591
621
|
|
592
|
-
<div id="method-
|
593
|
-
<a name="
|
622
|
+
<div id="method-M000022" class="method-detail">
|
623
|
+
<a name="M000022"></a>
|
594
624
|
|
595
625
|
<div class="method-heading">
|
596
|
-
<a href="#
|
626
|
+
<a href="#M000022" class="method-signature">
|
597
627
|
<span class="method-name">static</span><span class="method-args">()</span>
|
598
628
|
</a>
|
599
629
|
</div>
|
600
630
|
|
601
631
|
<div class="method-description">
|
602
632
|
<p>
|
603
|
-
Return information about the <a href="Helpers.html#
|
633
|
+
Return information about the <a href="Helpers.html#M000022">static</a>
|
604
634
|
directory
|
605
635
|
</p>
|
606
636
|
<ul>
|
607
|
-
<li><tt><a href="Helpers.html#
|
608
|
-
href="Helpers.html#
|
637
|
+
<li><tt><a href="Helpers.html#M000022">static</a>[:uri]</tt> give the <a
|
638
|
+
href="Helpers.html#M000022">static</a> URI
|
609
639
|
|
610
640
|
</li>
|
611
|
-
<li><tt><a href="Helpers.html#
|
612
|
-
the <a href="Helpers.html#
|
641
|
+
<li><tt><a href="Helpers.html#M000022">static</a>[:path]</tt> give the path to
|
642
|
+
the <a href="Helpers.html#M000022">static</a> directory on the server
|
613
643
|
|
614
644
|
</li>
|
615
645
|
</ul>
|
616
646
|
<p><a class="source-toggle" href="#"
|
617
|
-
onclick="toggleCode('
|
618
|
-
<div class="method-source-code" id="
|
647
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
648
|
+
<div class="method-source-code" id="M000022-source">
|
619
649
|
<pre>
|
620
650
|
<span class="ruby-comment cmt"># File lib/capcode.rb, line 281</span>
|
621
651
|
281: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">static</span>
|