wee 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/README +0 -1
  2. data/Rakefile +5 -0
  3. data/TODO +6 -0
  4. data/doc/rdoc/classes/Enumerable.html +6 -6
  5. data/doc/rdoc/classes/Wee/AnswerDecoration.html +10 -10
  6. data/doc/rdoc/classes/Wee/Application.html +110 -52
  7. data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +8 -15
  8. data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +8 -19
  9. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +22 -22
  10. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +156 -0
  11. data/doc/rdoc/classes/Wee/Brush/FormTag.html +50 -25
  12. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  13. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +36 -36
  14. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  15. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +16 -16
  16. data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +8 -15
  17. data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
  18. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  19. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +28 -28
  20. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +14 -14
  21. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  22. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  23. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  24. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +36 -36
  25. data/doc/rdoc/classes/Wee/Brush/TableTag.html +6 -6
  26. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +28 -28
  27. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  28. data/doc/rdoc/classes/Wee/Brush.html +19 -19
  29. data/doc/rdoc/classes/Wee/CallbackRegistry.html +33 -33
  30. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  31. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  32. data/doc/rdoc/classes/Wee/Component.html +163 -138
  33. data/doc/rdoc/classes/Wee/Decoration.html +72 -41
  34. data/doc/rdoc/classes/Wee/Delegate.html +31 -31
  35. data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
  36. data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
  37. data/doc/rdoc/classes/Wee/Helper.html +148 -0
  38. data/doc/rdoc/classes/Wee/HtmlCanvas.html +267 -166
  39. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  40. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
  41. data/doc/rdoc/classes/Wee/PageDecoration.html +199 -0
  42. data/doc/rdoc/classes/Wee/Presenter.html +69 -69
  43. data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
  44. data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
  45. data/doc/rdoc/classes/Wee/Request.html +18 -18
  46. data/doc/rdoc/classes/Wee/RequestHandler.html +32 -31
  47. data/doc/rdoc/classes/Wee/Response.html +24 -24
  48. data/doc/rdoc/classes/Wee/Session.html +83 -64
  49. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +18 -18
  50. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  51. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  52. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  53. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +66 -62
  54. data/doc/rdoc/classes/Wee.html +63 -2
  55. data/doc/rdoc/created.rid +1 -1
  56. data/doc/rdoc/files/README.html +6 -9
  57. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  58. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  59. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +101 -0
  60. data/doc/rdoc/files/lib/wee/components_rb.html +108 -0
  61. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  62. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  63. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
  64. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  65. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  66. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  67. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  68. data/doc/rdoc/files/lib/wee/session_rb.html +2 -1
  69. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +101 -0
  70. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +108 -0
  71. data/doc/rdoc/files/lib/wee_rb.html +2 -1
  72. data/doc/rdoc/fr_class_index.html +3 -1
  73. data/doc/rdoc/fr_file_index.html +4 -0
  74. data/doc/rdoc/fr_method_index.html +203 -191
  75. data/examples/example.rb +2 -16
  76. data/examples/test.rb +15 -18
  77. data/lib/wee/adaptors/webrick.rb +3 -1
  78. data/lib/wee/application.rb +55 -19
  79. data/lib/wee/components/page_decoration.rb +14 -0
  80. data/lib/wee/components.rb +1 -0
  81. data/lib/wee/core/callback.rb +1 -1
  82. data/lib/wee/core/component.rb +27 -3
  83. data/lib/wee/core/decoration.rb +9 -0
  84. data/lib/wee/renderer/html/brushes.rb +21 -23
  85. data/lib/wee/renderer/html/canvas.rb +25 -4
  86. data/lib/wee/requesthandler.rb +1 -0
  87. data/lib/wee/session.rb +21 -1
  88. data/lib/wee/utils/autoreload.rb +27 -0
  89. data/lib/wee/utils/helper.rb +15 -0
  90. data/lib/wee.rb +2 -1
  91. metadata +203 -191
  92. data/test/components/page_decoration.rb +0 -7
@@ -95,10 +95,10 @@ important subclasses.
95
95
  <div id="contents-list">
96
96
  <h3 class="section-bar">Contents</h3>
97
97
  <ul>
98
- <li><a href="#SEC00079">Render</a></li>
99
- <li><a href="#SEC00080">Callback</a></li>
100
- <li><a href="#SEC00081">Backtrack</a></li>
101
- <li><a href="#SEC00082">Session</a></li>
98
+ <li><a href="#SEC00083">Render</a></li>
99
+ <li><a href="#SEC00084">Callback</a></li>
100
+ <li><a href="#SEC00085">Backtrack</a></li>
101
+ <li><a href="#SEC00086">Session</a></li>
102
102
  </ul>
103
103
  </div>
104
104
 
@@ -106,15 +106,15 @@ important subclasses.
106
106
  <h3 class="section-bar">Methods</h3>
107
107
 
108
108
  <div class="name-list">
109
- <a href="#M000188">backtrack_state</a>&nbsp;&nbsp;
110
- <a href="#M000182">do_render</a>&nbsp;&nbsp;
111
- <a href="#M000187">process_callbacks</a>&nbsp;&nbsp;
112
- <a href="#M000184">r</a>&nbsp;&nbsp;
113
- <a href="#M000181">render</a>&nbsp;&nbsp;
114
- <a href="#M000183">renderer</a>&nbsp;&nbsp;
115
- <a href="#M000186">renderer_class</a>&nbsp;&nbsp;
116
- <a href="#M000189">session</a>&nbsp;&nbsp;
117
- <a href="#M000185">with_renderer_for</a>&nbsp;&nbsp;
109
+ <a href="#M000197">backtrack_state</a>&nbsp;&nbsp;
110
+ <a href="#M000191">do_render</a>&nbsp;&nbsp;
111
+ <a href="#M000196">process_callbacks</a>&nbsp;&nbsp;
112
+ <a href="#M000193">r</a>&nbsp;&nbsp;
113
+ <a href="#M000190">render</a>&nbsp;&nbsp;
114
+ <a href="#M000192">renderer</a>&nbsp;&nbsp;
115
+ <a href="#M000195">renderer_class</a>&nbsp;&nbsp;
116
+ <a href="#M000198">session</a>&nbsp;&nbsp;
117
+ <a href="#M000194">with_renderer_for</a>&nbsp;&nbsp;
118
118
  </div>
119
119
  </div>
120
120
 
@@ -134,7 +134,7 @@ important subclasses.
134
134
 
135
135
  <!-- if method_list -->
136
136
  <div id="section">
137
- <h2 class="section-title"><a name="SEC00079">Render</a></h2>
137
+ <h2 class="section-title"><a name="SEC00083">Render</a></h2>
138
138
  <div class="section-comment">
139
139
 
140
140
  </div>
@@ -150,11 +150,11 @@ important subclasses.
150
150
  <div id="methods">
151
151
  <h3 class="section-bar">Public Instance methods</h3>
152
152
 
153
- <div id="method-M000182" class="method-detail">
154
- <a name="M000182"></a>
153
+ <div id="method-M000191" class="method-detail">
154
+ <a name="M000191"></a>
155
155
 
156
156
  <div class="method-heading">
157
- <a href="#M000182" class="method-signature">
157
+ <a href="#M000191" class="method-signature">
158
158
  <span class="method-name">do_render</span><span class="method-args">(rendering_context)</span>
159
159
  </a>
160
160
  </div>
@@ -166,8 +166,8 @@ overwrite this method, unless you know exactly what you&#8217;re doing!
166
166
  </p>
167
167
  <p>
168
168
  Creates a new renderer object of the class returned by method <a
169
- href="Presenter.html#M000186">renderer_class</a>, makes this the current
170
- renderer, then invokes method <a href="Presenter.html#M000181">render</a>.
169
+ href="Presenter.html#M000195">renderer_class</a>, makes this the current
170
+ renderer, then invokes method <a href="Presenter.html#M000190">render</a>.
171
171
  </p>
172
172
  <dl>
173
173
  <dt><tt>rendering_context</tt></dt><dd>An object of class <a href="RenderingContext.html">RenderingContext</a>
@@ -175,8 +175,8 @@ renderer, then invokes method <a href="Presenter.html#M000181">render</a>.
175
175
  </dd>
176
176
  </dl>
177
177
  <p><a class="source-toggle" href="#"
178
- onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
179
- <div class="method-source-code" id="M000182-source">
178
+ onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
179
+ <div class="method-source-code" id="M000191-source">
180
180
  <pre>
181
181
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 33</span>
182
182
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">do_render</span>(<span class="ruby-identifier">rendering_context</span>)
@@ -187,11 +187,11 @@ renderer, then invokes method <a href="Presenter.html#M000181">render</a>.
187
187
  </div>
188
188
  </div>
189
189
 
190
- <div id="method-M000181" class="method-detail">
191
- <a name="M000181"></a>
190
+ <div id="method-M000190" class="method-detail">
191
+ <a name="M000190"></a>
192
192
 
193
193
  <div class="method-heading">
194
- <a href="#M000181" class="method-signature">
194
+ <a href="#M000190" class="method-signature">
195
195
  <span class="method-name">render</span><span class="method-args">()</span>
196
196
  </a>
197
197
  </div>
@@ -206,12 +206,12 @@ view. By default this method does nothing!
206
206
  </p>
207
207
  <p>
208
208
  Use the current renderer as returned by <a
209
- href="Presenter.html#M000183">renderer</a> or it&#8217;s short-cut <a
210
- href="Presenter.html#M000184">r</a>.
209
+ href="Presenter.html#M000192">renderer</a> or it&#8217;s short-cut <a
210
+ href="Presenter.html#M000193">r</a>.
211
211
  </p>
212
212
  <p><a class="source-toggle" href="#"
213
- onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
214
- <div class="method-source-code" id="M000181-source">
213
+ onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
214
+ <div class="method-source-code" id="M000190-source">
215
215
  <pre>
216
216
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 20</span>
217
217
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>
@@ -223,22 +223,22 @@ href="Presenter.html#M000184">r</a>.
223
223
 
224
224
  <h3 class="section-bar">Protected Instance methods</h3>
225
225
 
226
- <div id="method-M000184" class="method-detail">
227
- <a name="M000184"></a>
226
+ <div id="method-M000193" class="method-detail">
227
+ <a name="M000193"></a>
228
228
 
229
229
  <div class="method-heading">
230
- <a href="#M000184" class="method-signature">
230
+ <a href="#M000193" class="method-signature">
231
231
  <span class="method-name">r</span><span class="method-args">()</span>
232
232
  </a>
233
233
  </div>
234
234
 
235
235
  <div class="method-description">
236
236
  <p>
237
- Short cut for <a href="Presenter.html#M000183">renderer</a>.
237
+ Short cut for <a href="Presenter.html#M000192">renderer</a>.
238
238
  </p>
239
239
  <p><a class="source-toggle" href="#"
240
- onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
241
- <div class="method-source-code" id="M000184-source">
240
+ onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
241
+ <div class="method-source-code" id="M000193-source">
242
242
  <pre>
243
243
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 43</span>
244
244
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">r</span>() <span class="ruby-ivar">@renderer</span> <span class="ruby-keyword kw">end</span>
@@ -247,11 +247,11 @@ Short cut for <a href="Presenter.html#M000183">renderer</a>.
247
247
  </div>
248
248
  </div>
249
249
 
250
- <div id="method-M000183" class="method-detail">
251
- <a name="M000183"></a>
250
+ <div id="method-M000192" class="method-detail">
251
+ <a name="M000192"></a>
252
252
 
253
253
  <div class="method-heading">
254
- <a href="#M000183" class="method-signature">
254
+ <a href="#M000192" class="method-signature">
255
255
  <span class="method-name">renderer</span><span class="method-args">()</span>
256
256
  </a>
257
257
  </div>
@@ -261,8 +261,8 @@ Short cut for <a href="Presenter.html#M000183">renderer</a>.
261
261
  Returns the current renderer object for use by the render methods.
262
262
  </p>
263
263
  <p><a class="source-toggle" href="#"
264
- onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
265
- <div class="method-source-code" id="M000183-source">
264
+ onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
265
+ <div class="method-source-code" id="M000192-source">
266
266
  <pre>
267
267
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 40</span>
268
268
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">renderer</span>() <span class="ruby-ivar">@renderer</span> <span class="ruby-keyword kw">end</span>
@@ -271,11 +271,11 @@ Returns the current renderer object for use by the render methods.
271
271
  </div>
272
272
  </div>
273
273
 
274
- <div id="method-M000186" class="method-detail">
275
- <a name="M000186"></a>
274
+ <div id="method-M000195" class="method-detail">
275
+ <a name="M000195"></a>
276
276
 
277
277
  <div class="method-heading">
278
- <a href="#M000186" class="method-signature">
278
+ <a href="#M000195" class="method-signature">
279
279
  <span class="method-name">renderer_class</span><span class="method-args">()</span>
280
280
  </a>
281
281
  </div>
@@ -286,8 +286,8 @@ Returns the class used as renderer for this presenter. Overwrite this
286
286
  method if you want to use a different renderer.
287
287
  </p>
288
288
  <p><a class="source-toggle" href="#"
289
- onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
290
- <div class="method-source-code" id="M000186-source">
289
+ onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
290
+ <div class="method-source-code" id="M000195-source">
291
291
  <pre>
292
292
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 66</span>
293
293
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">renderer_class</span>
@@ -298,11 +298,11 @@ method if you want to use a different renderer.
298
298
  </div>
299
299
  </div>
300
300
 
301
- <div id="method-M000185" class="method-detail">
302
- <a name="M000185"></a>
301
+ <div id="method-M000194" class="method-detail">
302
+ <a name="M000194"></a>
303
303
 
304
304
  <div class="method-heading">
305
- <a href="#M000185" class="method-signature">
305
+ <a href="#M000194" class="method-signature">
306
306
  <span class="method-name">with_renderer_for</span><span class="method-args">(rendering_context) {|| ...}</span>
307
307
  </a>
308
308
  </div>
@@ -310,14 +310,14 @@ method if you want to use a different renderer.
310
310
  <div class="method-description">
311
311
  <p>
312
312
  Creates a new renderer object of the class returned by method <a
313
- href="Presenter.html#M000186">renderer_class</a>, then makes this the
313
+ href="Presenter.html#M000195">renderer_class</a>, then makes this the
314
314
  current renderer for the time the block it yields to executes. Finally, it
315
315
  restores the current renderer to the former one and closes the newly
316
316
  created renderer.
317
317
  </p>
318
318
  <p><a class="source-toggle" href="#"
319
- onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
320
- <div class="method-source-code" id="M000185-source">
319
+ onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
320
+ <div class="method-source-code" id="M000194-source">
321
321
  <pre>
322
322
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 50</span>
323
323
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_renderer_for</span>(<span class="ruby-identifier">rendering_context</span>)
@@ -340,7 +340,7 @@ created renderer.
340
340
 
341
341
  </div>
342
342
  <div id="section">
343
- <h2 class="section-title"><a name="SEC00080">Callback</a></h2>
343
+ <h2 class="section-title"><a name="SEC00084">Callback</a></h2>
344
344
  <div class="section-comment">
345
345
 
346
346
  </div>
@@ -356,11 +356,11 @@ created renderer.
356
356
  <div id="methods">
357
357
  <h3 class="section-bar">Public Instance methods</h3>
358
358
 
359
- <div id="method-M000187" class="method-detail">
360
- <a name="M000187"></a>
359
+ <div id="method-M000196" class="method-detail">
360
+ <a name="M000196"></a>
361
361
 
362
362
  <div class="method-heading">
363
- <a href="#M000187" class="method-signature">
363
+ <a href="#M000196" class="method-signature">
364
364
  <span class="method-name">process_callbacks</span><span class="method-args">(callback_stream) {|| ...}</span>
365
365
  </a>
366
366
  </div>
@@ -383,8 +383,8 @@ NOTE: Input callbacks should never call other components!
383
383
  </dd>
384
384
  </dl>
385
385
  <p><a class="source-toggle" href="#"
386
- onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
387
- <div class="method-source-code" id="M000187-source">
386
+ onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
387
+ <div class="method-source-code" id="M000196-source">
388
388
  <pre>
389
389
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 87</span>
390
390
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callback_stream</span>) <span class="ruby-comment cmt"># :yields:</span>
@@ -411,7 +411,7 @@ NOTE: Input callbacks should never call other components!
411
411
 
412
412
  </div>
413
413
  <div id="section">
414
- <h2 class="section-title"><a name="SEC00081">Backtrack</a></h2>
414
+ <h2 class="section-title"><a name="SEC00085">Backtrack</a></h2>
415
415
  <div class="section-comment">
416
416
 
417
417
  </div>
@@ -427,11 +427,11 @@ NOTE: Input callbacks should never call other components!
427
427
  <div id="methods">
428
428
  <h3 class="section-bar">Public Instance methods</h3>
429
429
 
430
- <div id="method-M000188" class="method-detail">
431
- <a name="M000188"></a>
430
+ <div id="method-M000197" class="method-detail">
431
+ <a name="M000197"></a>
432
432
 
433
433
  <div class="method-heading">
434
- <a href="#M000188" class="method-signature">
434
+ <a href="#M000197" class="method-signature">
435
435
  <span class="method-name">backtrack_state</span><span class="method-args">(snapshot)</span>
436
436
  </a>
437
437
  </div>
@@ -439,7 +439,7 @@ NOTE: Input callbacks should never call other components!
439
439
  <div class="method-description">
440
440
  <p>
441
441
  Dummy implementation. See <a
442
- href="Component.html#M000177">Component#backtrack_state</a> for more
442
+ href="Component.html#M000186">Component#backtrack_state</a> for more
443
443
  information.
444
444
  </p>
445
445
  <dl>
@@ -448,8 +448,8 @@ information.
448
448
  </dd>
449
449
  </dl>
450
450
  <p><a class="source-toggle" href="#"
451
- onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
452
- <div class="method-source-code" id="M000188-source">
451
+ onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
452
+ <div class="method-source-code" id="M000197-source">
453
453
  <pre>
454
454
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 115</span>
455
455
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backtrack_state</span>(<span class="ruby-identifier">snapshot</span>)
@@ -462,7 +462,7 @@ information.
462
462
 
463
463
  </div>
464
464
  <div id="section">
465
- <h2 class="section-title"><a name="SEC00082">Session</a></h2>
465
+ <h2 class="section-title"><a name="SEC00086">Session</a></h2>
466
466
  <div class="section-comment">
467
467
 
468
468
  </div>
@@ -478,11 +478,11 @@ information.
478
478
  <div id="methods">
479
479
  <h3 class="section-bar">Public Instance methods</h3>
480
480
 
481
- <div id="method-M000189" class="method-detail">
482
- <a name="M000189"></a>
481
+ <div id="method-M000198" class="method-detail">
482
+ <a name="M000198"></a>
483
483
 
484
484
  <div class="method-heading">
485
- <a href="#M000189" class="method-signature">
485
+ <a href="#M000198" class="method-signature">
486
486
  <span class="method-name">session</span><span class="method-args">()</span>
487
487
  </a>
488
488
  </div>
@@ -494,8 +494,8 @@ associated session. The returned object is of class <a
494
494
  href="Session.html">Wee::Session</a> or a subclass thereof.
495
495
  </p>
496
496
  <p><a class="source-toggle" href="#"
497
- onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
498
- <div class="method-source-code" id="M000189-source">
497
+ onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
498
+ <div class="method-source-code" id="M000198-source">
499
499
  <pre>
500
500
  <span class="ruby-comment cmt"># File lib/wee/core/presenter.rb, line 128</span>
501
501
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">session</span>
@@ -88,7 +88,7 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000180">new</a>&nbsp;&nbsp;
91
+ <a href="#M000189">new</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -110,19 +110,19 @@
110
110
  <div id="methods">
111
111
  <h3 class="section-bar">Public Class methods</h3>
112
112
 
113
- <div id="method-M000180" class="method-detail">
114
- <a name="M000180"></a>
113
+ <div id="method-M000189" class="method-detail">
114
+ <a name="M000189"></a>
115
115
 
116
116
  <div class="method-heading">
117
- <a href="#M000180" class="method-signature">
117
+ <a href="#M000189" class="method-signature">
118
118
  <span class="method-name">new</span><span class="method-args">(location)</span>
119
119
  </a>
120
120
  </div>
121
121
 
122
122
  <div class="method-description">
123
123
  <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000180-source">
124
+ onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
125
+ <div class="method-source-code" id="M000189-source">
126
126
  <pre>
127
127
  <span class="ruby-comment cmt"># File lib/wee/response.rb, line 41</span>
128
128
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">location</span>)
@@ -88,7 +88,7 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000159">new</a>&nbsp;&nbsp;
91
+ <a href="#M000168">new</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -110,19 +110,19 @@
110
110
  <div id="methods">
111
111
  <h3 class="section-bar">Public Class methods</h3>
112
112
 
113
- <div id="method-M000159" class="method-detail">
114
- <a name="M000159"></a>
113
+ <div id="method-M000168" class="method-detail">
114
+ <a name="M000168"></a>
115
115
 
116
116
  <div class="method-heading">
117
- <a href="#M000159" class="method-signature">
117
+ <a href="#M000168" class="method-signature">
118
118
  <span class="method-name">new</span><span class="method-args">(message, location, seconds=10)</span>
119
119
  </a>
120
120
  </div>
121
121
 
122
122
  <div class="method-description">
123
123
  <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000159-source">
124
+ onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
125
+ <div class="method-source-code" id="M000168-source">
126
126
  <pre>
127
127
  <span class="ruby-comment cmt"># File lib/wee/response.rb, line 49</span>
128
128
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">location</span>, <span class="ruby-identifier">seconds</span>=<span class="ruby-value">10</span>)
@@ -100,9 +100,9 @@ NOTE that if there are fields named &quot;xxx&quot; and
100
100
  <h3 class="section-bar">Methods</h3>
101
101
 
102
102
  <div class="name-list">
103
- <a href="#M000198">application_path</a>&nbsp;&nbsp;
104
- <a href="#M000199">build_url</a>&nbsp;&nbsp;
105
- <a href="#M000197">new</a>&nbsp;&nbsp;
103
+ <a href="#M000207">application_path</a>&nbsp;&nbsp;
104
+ <a href="#M000208">build_url</a>&nbsp;&nbsp;
105
+ <a href="#M000206">new</a>&nbsp;&nbsp;
106
106
  </div>
107
107
  </div>
108
108
 
@@ -147,19 +147,19 @@ NOTE that if there are fields named &quot;xxx&quot; and
147
147
  <div id="methods">
148
148
  <h3 class="section-bar">Public Class methods</h3>
149
149
 
150
- <div id="method-M000197" class="method-detail">
151
- <a name="M000197"></a>
150
+ <div id="method-M000206" class="method-detail">
151
+ <a name="M000206"></a>
152
152
 
153
153
  <div class="method-heading">
154
- <a href="#M000197" class="method-signature">
154
+ <a href="#M000206" class="method-signature">
155
155
  <span class="method-name">new</span><span class="method-args">(app_path, path, headers, fields)</span>
156
156
  </a>
157
157
  </div>
158
158
 
159
159
  <div class="method-description">
160
160
  <p><a class="source-toggle" href="#"
161
- onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
162
- <div class="method-source-code" id="M000197-source">
161
+ onclick="toggleCode('M000206-source');return false;">[Source]</a></p>
162
+ <div class="method-source-code" id="M000206-source">
163
163
  <pre>
164
164
  <span class="ruby-comment cmt"># File lib/wee/request.rb, line 11</span>
165
165
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">app_path</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">headers</span>, <span class="ruby-identifier">fields</span>)
@@ -195,19 +195,19 @@ NOTE that if there are fields named &quot;xxx&quot; and
195
195
 
196
196
  <h3 class="section-bar">Public Instance methods</h3>
197
197
 
198
- <div id="method-M000198" class="method-detail">
199
- <a name="M000198"></a>
198
+ <div id="method-M000207" class="method-detail">
199
+ <a name="M000207"></a>
200
200
 
201
201
  <div class="method-heading">
202
- <a href="#M000198" class="method-signature">
202
+ <a href="#M000207" class="method-signature">
203
203
  <span class="method-name">application_path</span><span class="method-args">()</span>
204
204
  </a>
205
205
  </div>
206
206
 
207
207
  <div class="method-description">
208
208
  <p><a class="source-toggle" href="#"
209
- onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
210
- <div class="method-source-code" id="M000198-source">
209
+ onclick="toggleCode('M000207-source');return false;">[Source]</a></p>
210
+ <div class="method-source-code" id="M000207-source">
211
211
  <pre>
212
212
  <span class="ruby-comment cmt"># File lib/wee/request.rb, line 38</span>
213
213
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">application_path</span>
@@ -218,19 +218,19 @@ NOTE that if there are fields named &quot;xxx&quot; and
218
218
  </div>
219
219
  </div>
220
220
 
221
- <div id="method-M000199" class="method-detail">
222
- <a name="M000199"></a>
221
+ <div id="method-M000208" class="method-detail">
222
+ <a name="M000208"></a>
223
223
 
224
224
  <div class="method-heading">
225
- <a href="#M000199" class="method-signature">
225
+ <a href="#M000208" class="method-signature">
226
226
  <span class="method-name">build_url</span><span class="method-args">(request_handler_id=nil, page_id=nil, callback_id=nil)</span>
227
227
  </a>
228
228
  </div>
229
229
 
230
230
  <div class="method-description">
231
231
  <p><a class="source-toggle" href="#"
232
- onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
233
- <div class="method-source-code" id="M000199-source">
232
+ onclick="toggleCode('M000208-source');return false;">[Source]</a></p>
233
+ <div class="method-source-code" id="M000208-source">
234
234
  <pre>
235
235
  <span class="ruby-comment cmt"># File lib/wee/request.rb, line 42</span>
236
236
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">request_handler_id</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">page_id</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">callback_id</span>=<span class="ruby-keyword kw">nil</span>)