merb 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/README +68 -58
  2. data/Rakefile +7 -6
  3. data/TODO +18 -0
  4. data/bin/merb +2 -2
  5. data/doc/rdoc/classes/Hash.html +148 -0
  6. data/doc/rdoc/classes/Merb/Config.html +161 -0
  7. data/doc/rdoc/classes/Merb/Controller.html +488 -0
  8. data/doc/rdoc/classes/Merb/RouteMatcher.html +354 -0
  9. data/doc/rdoc/classes/Merb/Server.html +288 -0
  10. data/doc/rdoc/classes/Merb.html +143 -0
  11. data/doc/rdoc/classes/MerbHandler.html +404 -0
  12. data/doc/rdoc/classes/MerbHash.html +457 -0
  13. data/doc/rdoc/classes/Noroutefound.html +172 -0
  14. data/doc/rdoc/classes/Object.html +149 -0
  15. data/doc/rdoc/classes/String.html +200 -0
  16. data/doc/rdoc/classes/Symbol.html +172 -0
  17. data/doc/rdoc/created.rid +1 -0
  18. data/doc/rdoc/files/LICENSE.html +129 -0
  19. data/doc/rdoc/files/README.html +330 -0
  20. data/doc/rdoc/files/TODO.html +154 -0
  21. data/doc/rdoc/files/lib/merb/merb_controller_rb.html +101 -0
  22. data/doc/rdoc/files/lib/merb/merb_daemon_rb.html +113 -0
  23. data/doc/rdoc/files/lib/merb/merb_handler_rb.html +108 -0
  24. data/doc/rdoc/files/lib/merb/merb_router_rb.html +101 -0
  25. data/doc/rdoc/files/lib/merb/merb_utils_rb.html +101 -0
  26. data/doc/rdoc/files/lib/merb/noroutefound_rb.html +101 -0
  27. data/doc/rdoc/files/lib/merb_config_rb.html +101 -0
  28. data/doc/rdoc/files/lib/merb_rb.html +112 -0
  29. data/doc/rdoc/fr_class_index.html +38 -0
  30. data/doc/rdoc/fr_file_index.html +38 -0
  31. data/doc/rdoc/fr_method_index.html +78 -0
  32. data/doc/rdoc/index.html +24 -0
  33. data/doc/rdoc/rdoc-style.css +208 -0
  34. data/examples/sample_app/{app → dist/app}/controllers/posts.rb +8 -8
  35. data/examples/sample_app/{app → dist/app}/controllers/test.rb +8 -5
  36. data/examples/sample_app/{app → dist/app}/controllers/upload.rb +13 -5
  37. data/examples/sample_app/dist/app/models/post.rb +13 -0
  38. data/examples/sample_app/dist/app/views/layout/application.rhtml +6 -0
  39. data/examples/sample_app/dist/app/views/layout/foo.rhtml +6 -0
  40. data/examples/sample_app/dist/app/views/layout/posts.rhtml +6 -0
  41. data/examples/sample_app/{app → dist/app}/views/posts/list.rhtml +1 -7
  42. data/examples/sample_app/{app → dist/app}/views/posts/new.rhtml +1 -7
  43. data/examples/sample_app/{app → dist/app}/views/posts/show.rhtml +1 -8
  44. data/examples/sample_app/dist/app/views/test/foo.rhtml +2 -0
  45. data/examples/sample_app/{app → dist/app}/views/test/hello.rhtml +1 -8
  46. data/examples/sample_app/{app → dist/app}/views/upload/start.rhtml +0 -8
  47. data/examples/sample_app/{app → dist/app}/views/upload/upload.rhtml +0 -0
  48. data/examples/sample_app/{conf → dist/conf}/merb_init.rb +5 -2
  49. data/examples/sample_app/{conf → dist/conf}/router.rb +6 -8
  50. data/examples/sample_app/test/test_helper.rb +1 -0
  51. data/examples/skeleton/dist/conf/merb_init.rb +21 -0
  52. data/examples/skeleton/dist/conf/router.rb +23 -0
  53. data/examples/skeleton/test/test_helper.rb +1 -0
  54. data/lib/merb/merb_controller.rb +54 -15
  55. data/lib/merb/merb_daemon.rb +35 -20
  56. data/lib/merb/merb_handler.rb +49 -38
  57. data/lib/merb/merb_router.rb +25 -28
  58. data/lib/merb/merb_utils.rb +98 -9
  59. data/{examples/sample_app/app/controllers → lib/merb}/noroutefound.rb +1 -1
  60. data/lib/merb.rb +4 -4
  61. data/lib/merb_config.rb +1 -1
  62. data/test/unit/route_matcher_test.rb +12 -31
  63. metadata +109 -28
  64. data/examples/sample_app/app/models/post.rb +0 -2
  65. data/examples/sample_app/app/views/test/foo.rhtml +0 -6
@@ -0,0 +1,457 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: MerbHash</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">MerbHash</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/merb/merb_utils_rb.html">
59
+ lib/merb/merb_utils.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Hash.html">
69
+ Hash
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000011">[]=</a>&nbsp;&nbsp;
92
+ <a href="#M000020">convert_key</a>&nbsp;&nbsp;
93
+ <a href="#M000021">convert_value</a>&nbsp;&nbsp;
94
+ <a href="#M000010">default</a>&nbsp;&nbsp;
95
+ <a href="#M000018">delete</a>&nbsp;&nbsp;
96
+ <a href="#M000016">dup</a>&nbsp;&nbsp;
97
+ <a href="#M000014">fetch</a>&nbsp;&nbsp;
98
+ <a href="#M000013">key?</a>&nbsp;&nbsp;
99
+ <a href="#M000017">merge</a>&nbsp;&nbsp;
100
+ <a href="#M000019">method_missing</a>&nbsp;&nbsp;
101
+ <a href="#M000009">new</a>&nbsp;&nbsp;
102
+ <a href="#M000012">update</a>&nbsp;&nbsp;
103
+ <a href="#M000015">values_at</a>&nbsp;&nbsp;
104
+ </div>
105
+ </div>
106
+
107
+ </div>
108
+
109
+
110
+ <!-- if includes -->
111
+
112
+ <div id="section">
113
+
114
+
115
+
116
+ <div id="aliases-list">
117
+ <h3 class="section-bar">External Aliases</h3>
118
+
119
+ <div class="name-list">
120
+ <table summary="aliases">
121
+ <tr class="top-aligned-row context-row">
122
+ <td class="context-item-name">[]=</td>
123
+ <td>-&gt;</td>
124
+ <td class="context-item-value">regular_writer</td>
125
+ </tr>
126
+ </table>
127
+ </div>
128
+ </div>
129
+
130
+
131
+
132
+
133
+
134
+ <!-- if method_list -->
135
+ <div id="methods">
136
+ <h3 class="section-bar">Public Class methods</h3>
137
+
138
+ <div id="method-M000009" class="method-detail">
139
+ <a name="M000009"></a>
140
+
141
+ <div class="method-heading">
142
+ <a href="#M000009" class="method-signature">
143
+ <span class="method-name">new</span><span class="method-args">(constructor = {})</span>
144
+ </a>
145
+ </div>
146
+
147
+ <div class="method-description">
148
+ <p><a class="source-toggle" href="#"
149
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
150
+ <div class="method-source-code" id="M000009-source">
151
+ <pre>
152
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 44</span>
153
+ 44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">constructor</span> = {})
154
+ 45: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">constructor</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
155
+ 46: <span class="ruby-keyword kw">super</span>()
156
+ 47: <span class="ruby-identifier">update</span>(<span class="ruby-identifier">constructor</span>)
157
+ 48: <span class="ruby-keyword kw">else</span>
158
+ 49: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">constructor</span>)
159
+ 50: <span class="ruby-keyword kw">end</span>
160
+ 51: <span class="ruby-keyword kw">end</span>
161
+ </pre>
162
+ </div>
163
+ </div>
164
+ </div>
165
+
166
+ <h3 class="section-bar">Public Instance methods</h3>
167
+
168
+ <div id="method-M000011" class="method-detail">
169
+ <a name="M000011"></a>
170
+
171
+ <div class="method-heading">
172
+ <a href="#M000011" class="method-signature">
173
+ <span class="method-name">[]=</span><span class="method-args">(key, value)</span>
174
+ </a>
175
+ </div>
176
+
177
+ <div class="method-description">
178
+ <p><a class="source-toggle" href="#"
179
+ onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
180
+ <div class="method-source-code" id="M000011-source">
181
+ <pre>
182
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 60</span>
183
+ 60: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
184
+ 61: <span class="ruby-identifier">regular_writer</span>(<span class="ruby-identifier">convert_key</span>(<span class="ruby-identifier">key</span>), <span class="ruby-identifier">convert_value</span>(<span class="ruby-identifier">value</span>))
185
+ 62: <span class="ruby-keyword kw">end</span>
186
+ </pre>
187
+ </div>
188
+ </div>
189
+ </div>
190
+
191
+ <div id="method-M000020" class="method-detail">
192
+ <a name="M000020"></a>
193
+
194
+ <div class="method-heading">
195
+ <a href="#M000020" class="method-signature">
196
+ <span class="method-name">convert_key</span><span class="method-args">(key)</span>
197
+ </a>
198
+ </div>
199
+
200
+ <div class="method-description">
201
+ <p><a class="source-toggle" href="#"
202
+ onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
203
+ <div class="method-source-code" id="M000020-source">
204
+ <pre>
205
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 104</span>
206
+ 104: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_key</span>(<span class="ruby-identifier">key</span>)
207
+ 105: <span class="ruby-identifier">key</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Symbol</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">key</span>
208
+ 106: <span class="ruby-keyword kw">end</span>
209
+ </pre>
210
+ </div>
211
+ </div>
212
+ </div>
213
+
214
+ <div id="method-M000021" class="method-detail">
215
+ <a name="M000021"></a>
216
+
217
+ <div class="method-heading">
218
+ <a href="#M000021" class="method-signature">
219
+ <span class="method-name">convert_value</span><span class="method-args">(value)</span>
220
+ </a>
221
+ </div>
222
+
223
+ <div class="method-description">
224
+ <p><a class="source-toggle" href="#"
225
+ onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
226
+ <div class="method-source-code" id="M000021-source">
227
+ <pre>
228
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 107</span>
229
+ 107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_value</span>(<span class="ruby-identifier">value</span>)
230
+ 108: <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">with_indifferent_access</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">value</span>
231
+ 109: <span class="ruby-keyword kw">end</span>
232
+ </pre>
233
+ </div>
234
+ </div>
235
+ </div>
236
+
237
+ <div id="method-M000010" class="method-detail">
238
+ <a name="M000010"></a>
239
+
240
+ <div class="method-heading">
241
+ <a href="#M000010" class="method-signature">
242
+ <span class="method-name">default</span><span class="method-args">(key)</span>
243
+ </a>
244
+ </div>
245
+
246
+ <div class="method-description">
247
+ <p><a class="source-toggle" href="#"
248
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
249
+ <div class="method-source-code" id="M000010-source">
250
+ <pre>
251
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 53</span>
252
+ 53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default</span>(<span class="ruby-identifier">key</span>)
253
+ 54: <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>)
254
+ 55: <span class="ruby-keyword kw">end</span>
255
+ </pre>
256
+ </div>
257
+ </div>
258
+ </div>
259
+
260
+ <div id="method-M000018" class="method-detail">
261
+ <a name="M000018"></a>
262
+
263
+ <div class="method-heading">
264
+ <a href="#M000018" class="method-signature">
265
+ <span class="method-name">delete</span><span class="method-args">(key)</span>
266
+ </a>
267
+ </div>
268
+
269
+ <div class="method-description">
270
+ <p><a class="source-toggle" href="#"
271
+ onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
272
+ <div class="method-source-code" id="M000018-source">
273
+ <pre>
274
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 95</span>
275
+ 95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>)
276
+ 96: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">convert_key</span>(<span class="ruby-identifier">key</span>))
277
+ 97: <span class="ruby-keyword kw">end</span>
278
+ </pre>
279
+ </div>
280
+ </div>
281
+ </div>
282
+
283
+ <div id="method-M000016" class="method-detail">
284
+ <a name="M000016"></a>
285
+
286
+ <div class="method-heading">
287
+ <a href="#M000016" class="method-signature">
288
+ <span class="method-name">dup</span><span class="method-args">()</span>
289
+ </a>
290
+ </div>
291
+
292
+ <div class="method-description">
293
+ <p><a class="source-toggle" href="#"
294
+ onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
295
+ <div class="method-source-code" id="M000016-source">
296
+ <pre>
297
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 87</span>
298
+ 87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dup</span>
299
+ 88: <span class="ruby-constant">MerbHash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
300
+ 89: <span class="ruby-keyword kw">end</span>
301
+ </pre>
302
+ </div>
303
+ </div>
304
+ </div>
305
+
306
+ <div id="method-M000014" class="method-detail">
307
+ <a name="M000014"></a>
308
+
309
+ <div class="method-heading">
310
+ <a href="#M000014" class="method-signature">
311
+ <span class="method-name">fetch</span><span class="method-args">(key, *extras)</span>
312
+ </a>
313
+ </div>
314
+
315
+ <div class="method-description">
316
+ <p><a class="source-toggle" href="#"
317
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
318
+ <div class="method-source-code" id="M000014-source">
319
+ <pre>
320
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 79</span>
321
+ 79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">key</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">extras</span>)
322
+ 80: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">convert_key</span>(<span class="ruby-identifier">key</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">extras</span>)
323
+ 81: <span class="ruby-keyword kw">end</span>
324
+ </pre>
325
+ </div>
326
+ </div>
327
+ </div>
328
+
329
+ <div id="method-M000013" class="method-detail">
330
+ <a name="M000013"></a>
331
+
332
+ <div class="method-heading">
333
+ <a href="#M000013" class="method-signature">
334
+ <span class="method-name">key?</span><span class="method-args">(key)</span>
335
+ </a>
336
+ </div>
337
+
338
+ <div class="method-description">
339
+ <p><a class="source-toggle" href="#"
340
+ onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
341
+ <div class="method-source-code" id="M000013-source">
342
+ <pre>
343
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 71</span>
344
+ 71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key?</span>(<span class="ruby-identifier">key</span>)
345
+ 72: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">convert_key</span>(<span class="ruby-identifier">key</span>))
346
+ 73: <span class="ruby-keyword kw">end</span>
347
+ </pre>
348
+ </div>
349
+ </div>
350
+ </div>
351
+
352
+ <div id="method-M000017" class="method-detail">
353
+ <a name="M000017"></a>
354
+
355
+ <div class="method-heading">
356
+ <a href="#M000017" class="method-signature">
357
+ <span class="method-name">merge</span><span class="method-args">(hash)</span>
358
+ </a>
359
+ </div>
360
+
361
+ <div class="method-description">
362
+ <p><a class="source-toggle" href="#"
363
+ onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
364
+ <div class="method-source-code" id="M000017-source">
365
+ <pre>
366
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 91</span>
367
+ 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">hash</span>)
368
+ 92: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">hash</span>)
369
+ 93: <span class="ruby-keyword kw">end</span>
370
+ </pre>
371
+ </div>
372
+ </div>
373
+ </div>
374
+
375
+ <div id="method-M000019" class="method-detail">
376
+ <a name="M000019"></a>
377
+
378
+ <div class="method-heading">
379
+ <a href="#M000019" class="method-signature">
380
+ <span class="method-name">method_missing</span><span class="method-args">(m,*a)</span>
381
+ </a>
382
+ </div>
383
+
384
+ <div class="method-description">
385
+ <p><a class="source-toggle" href="#"
386
+ onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
387
+ <div class="method-source-code" id="M000019-source">
388
+ <pre>
389
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 99</span>
390
+ 99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">m</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>)
391
+ 100: <span class="ruby-identifier">m</span>.<span class="ruby-identifier">to_s</span><span class="ruby-operator">=~</span><span class="ruby-regexp re">/=$/</span><span class="ruby-operator">?</span><span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">$`</span>]=<span class="ruby-identifier">a</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">:</span><span class="ruby-identifier">a</span><span class="ruby-operator">==</span>[]<span class="ruby-operator">?</span><span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">m</span>]<span class="ruby-operator">:</span><span class="ruby-identifier">raise</span>(<span class="ruby-constant">NoMethodError</span>,<span class="ruby-node">&quot;#{m}&quot;</span>)
392
+ 101: <span class="ruby-keyword kw">end</span>
393
+ </pre>
394
+ </div>
395
+ </div>
396
+ </div>
397
+
398
+ <div id="method-M000012" class="method-detail">
399
+ <a name="M000012"></a>
400
+
401
+ <div class="method-heading">
402
+ <a href="#M000012" class="method-signature">
403
+ <span class="method-name">update</span><span class="method-args">(other_hash)</span>
404
+ </a>
405
+ </div>
406
+
407
+ <div class="method-description">
408
+ <p><a class="source-toggle" href="#"
409
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
410
+ <div class="method-source-code" id="M000012-source">
411
+ <pre>
412
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 64</span>
413
+ 64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">other_hash</span>)
414
+ 65: <span class="ruby-identifier">other_hash</span>.<span class="ruby-identifier">each_pair</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">regular_writer</span>(<span class="ruby-identifier">convert_key</span>(<span class="ruby-identifier">key</span>), <span class="ruby-identifier">convert_value</span>(<span class="ruby-identifier">value</span>)) }
415
+ 66: <span class="ruby-keyword kw">self</span>
416
+ 67: <span class="ruby-keyword kw">end</span>
417
+ </pre>
418
+ </div>
419
+ </div>
420
+ </div>
421
+
422
+ <div id="method-M000015" class="method-detail">
423
+ <a name="M000015"></a>
424
+
425
+ <div class="method-heading">
426
+ <a href="#M000015" class="method-signature">
427
+ <span class="method-name">values_at</span><span class="method-args">(*indices)</span>
428
+ </a>
429
+ </div>
430
+
431
+ <div class="method-description">
432
+ <p><a class="source-toggle" href="#"
433
+ onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
434
+ <div class="method-source-code" id="M000015-source">
435
+ <pre>
436
+ <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 83</span>
437
+ 83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">indices</span>)
438
+ 84: <span class="ruby-identifier">indices</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">convert_key</span>(<span class="ruby-identifier">key</span>)]}
439
+ 85: <span class="ruby-keyword kw">end</span>
440
+ </pre>
441
+ </div>
442
+ </div>
443
+ </div>
444
+
445
+
446
+ </div>
447
+
448
+
449
+ </div>
450
+
451
+
452
+ <div id="validator-badges">
453
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
454
+ </div>
455
+
456
+ </body>
457
+ </html>
@@ -0,0 +1,172 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Noroutefound</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Noroutefound</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/merb/noroutefound_rb.html">
59
+ lib/merb/noroutefound.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Merb/Controller.html">
69
+ Merb::Controller
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000022">method_missing</a>&nbsp;&nbsp;
92
+ <a href="#M000023">to_s</a>&nbsp;&nbsp;
93
+ </div>
94
+ </div>
95
+
96
+ </div>
97
+
98
+
99
+ <!-- if includes -->
100
+
101
+ <div id="section">
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <!-- if method_list -->
111
+ <div id="methods">
112
+ <h3 class="section-bar">Public Instance methods</h3>
113
+
114
+ <div id="method-M000022" class="method-detail">
115
+ <a name="M000022"></a>
116
+
117
+ <div class="method-heading">
118
+ <a href="#M000022" class="method-signature">
119
+ <span class="method-name">method_missing</span><span class="method-args">(sym, *args, &amp;blk)</span>
120
+ </a>
121
+ </div>
122
+
123
+ <div class="method-description">
124
+ <p><a class="source-toggle" href="#"
125
+ onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000022-source">
127
+ <pre>
128
+ <span class="ruby-comment cmt"># File lib/merb/noroutefound.rb, line 3</span>
129
+ 3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
130
+ 4: <span class="ruby-value str">&quot;&lt;html&gt;&lt;body&gt;&lt;h1&gt;No Matching Route&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;&quot;</span>
131
+ 5: <span class="ruby-keyword kw">end</span>
132
+ </pre>
133
+ </div>
134
+ </div>
135
+ </div>
136
+
137
+ <div id="method-M000023" class="method-detail">
138
+ <a name="M000023"></a>
139
+
140
+ <div class="method-heading">
141
+ <a href="#M000023" class="method-signature">
142
+ <span class="method-name">to_s</span><span class="method-args">()</span>
143
+ </a>
144
+ </div>
145
+
146
+ <div class="method-description">
147
+ <p><a class="source-toggle" href="#"
148
+ onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
149
+ <div class="method-source-code" id="M000023-source">
150
+ <pre>
151
+ <span class="ruby-comment cmt"># File lib/merb/noroutefound.rb, line 7</span>
152
+ 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
153
+ 8: <span class="ruby-value str">&quot;&lt;html&gt;&lt;body&gt;&lt;h1&gt;No Matching Route s&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;&quot;</span>
154
+ 9: <span class="ruby-keyword kw">end</span>
155
+ </pre>
156
+ </div>
157
+ </div>
158
+ </div>
159
+
160
+
161
+ </div>
162
+
163
+
164
+ </div>
165
+
166
+
167
+ <div id="validator-badges">
168
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
169
+ </div>
170
+
171
+ </body>
172
+ </html>