wee 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +0 -1
- data/Rakefile +5 -0
- data/TODO +6 -0
- data/doc/rdoc/classes/Enumerable.html +6 -6
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +10 -10
- data/doc/rdoc/classes/Wee/Application.html +110 -52
- data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +8 -15
- data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +8 -19
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +22 -22
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +156 -0
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +50 -25
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +36 -36
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +16 -16
- data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +8 -15
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +28 -28
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +36 -36
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +6 -6
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +28 -28
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush.html +19 -19
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +33 -33
- data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
- data/doc/rdoc/classes/Wee/Canvas.html +24 -24
- data/doc/rdoc/classes/Wee/Component.html +163 -138
- data/doc/rdoc/classes/Wee/Decoration.html +72 -41
- data/doc/rdoc/classes/Wee/Delegate.html +31 -31
- data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
- data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
- data/doc/rdoc/classes/Wee/Helper.html +148 -0
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +267 -166
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
- data/doc/rdoc/classes/Wee/PageDecoration.html +199 -0
- data/doc/rdoc/classes/Wee/Presenter.html +69 -69
- data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
- data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
- data/doc/rdoc/classes/Wee/Request.html +18 -18
- data/doc/rdoc/classes/Wee/RequestHandler.html +32 -31
- data/doc/rdoc/classes/Wee/Response.html +24 -24
- data/doc/rdoc/classes/Wee/Session.html +83 -64
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +18 -18
- data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
- data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
- data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
- data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +66 -62
- data/doc/rdoc/classes/Wee.html +63 -2
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README.html +6 -9
- data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/components_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
- data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/session_rb.html +2 -1
- data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/utils/helper_rb.html +108 -0
- data/doc/rdoc/files/lib/wee_rb.html +2 -1
- data/doc/rdoc/fr_class_index.html +3 -1
- data/doc/rdoc/fr_file_index.html +4 -0
- data/doc/rdoc/fr_method_index.html +203 -191
- data/examples/example.rb +2 -16
- data/examples/test.rb +15 -18
- data/lib/wee/adaptors/webrick.rb +3 -1
- data/lib/wee/application.rb +55 -19
- data/lib/wee/components/page_decoration.rb +14 -0
- data/lib/wee/components.rb +1 -0
- data/lib/wee/core/callback.rb +1 -1
- data/lib/wee/core/component.rb +27 -3
- data/lib/wee/core/decoration.rb +9 -0
- data/lib/wee/renderer/html/brushes.rb +21 -23
- data/lib/wee/renderer/html/canvas.rb +25 -4
- data/lib/wee/requesthandler.rb +1 -0
- data/lib/wee/session.rb +21 -1
- data/lib/wee/utils/autoreload.rb +27 -0
- data/lib/wee/utils/helper.rb +15 -0
- data/lib/wee.rb +2 -1
- metadata +203 -191
- 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="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
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="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
109
|
+
<a href="#M000197">backtrack_state</a>
|
110
|
+
<a href="#M000191">do_render</a>
|
111
|
+
<a href="#M000196">process_callbacks</a>
|
112
|
+
<a href="#M000193">r</a>
|
113
|
+
<a href="#M000190">render</a>
|
114
|
+
<a href="#M000192">renderer</a>
|
115
|
+
<a href="#M000195">renderer_class</a>
|
116
|
+
<a href="#M000198">session</a>
|
117
|
+
<a href="#M000194">with_renderer_for</a>
|
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="
|
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-
|
154
|
-
<a name="
|
153
|
+
<div id="method-M000191" class="method-detail">
|
154
|
+
<a name="M000191"></a>
|
155
155
|
|
156
156
|
<div class="method-heading">
|
157
|
-
<a href="#
|
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’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#
|
170
|
-
renderer, then invokes method <a href="Presenter.html#
|
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('
|
179
|
-
<div class="method-source-code" id="
|
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-
|
191
|
-
<a name="
|
190
|
+
<div id="method-M000190" class="method-detail">
|
191
|
+
<a name="M000190"></a>
|
192
192
|
|
193
193
|
<div class="method-heading">
|
194
|
-
<a href="#
|
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#
|
210
|
-
href="Presenter.html#
|
209
|
+
href="Presenter.html#M000192">renderer</a> or it’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('
|
214
|
-
<div class="method-source-code" id="
|
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-
|
227
|
-
<a name="
|
226
|
+
<div id="method-M000193" class="method-detail">
|
227
|
+
<a name="M000193"></a>
|
228
228
|
|
229
229
|
<div class="method-heading">
|
230
|
-
<a href="#
|
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#
|
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('
|
241
|
-
<div class="method-source-code" id="
|
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-
|
251
|
-
<a name="
|
250
|
+
<div id="method-M000192" class="method-detail">
|
251
|
+
<a name="M000192"></a>
|
252
252
|
|
253
253
|
<div class="method-heading">
|
254
|
-
<a href="#
|
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('
|
265
|
-
<div class="method-source-code" id="
|
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-
|
275
|
-
<a name="
|
274
|
+
<div id="method-M000195" class="method-detail">
|
275
|
+
<a name="M000195"></a>
|
276
276
|
|
277
277
|
<div class="method-heading">
|
278
|
-
<a href="#
|
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('
|
290
|
-
<div class="method-source-code" id="
|
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-
|
302
|
-
<a name="
|
301
|
+
<div id="method-M000194" class="method-detail">
|
302
|
+
<a name="M000194"></a>
|
303
303
|
|
304
304
|
<div class="method-heading">
|
305
|
-
<a href="#
|
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#
|
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('
|
320
|
-
<div class="method-source-code" id="
|
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="
|
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-
|
360
|
-
<a name="
|
359
|
+
<div id="method-M000196" class="method-detail">
|
360
|
+
<a name="M000196"></a>
|
361
361
|
|
362
362
|
<div class="method-heading">
|
363
|
-
<a href="#
|
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('
|
387
|
-
<div class="method-source-code" id="
|
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="
|
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-
|
431
|
-
<a name="
|
430
|
+
<div id="method-M000197" class="method-detail">
|
431
|
+
<a name="M000197"></a>
|
432
432
|
|
433
433
|
<div class="method-heading">
|
434
|
-
<a href="#
|
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#
|
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('
|
452
|
-
<div class="method-source-code" id="
|
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="
|
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-
|
482
|
-
<a name="
|
481
|
+
<div id="method-M000198" class="method-detail">
|
482
|
+
<a name="M000198"></a>
|
483
483
|
|
484
484
|
<div class="method-heading">
|
485
|
-
<a href="#
|
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('
|
498
|
-
<div class="method-source-code" id="
|
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="#
|
91
|
+
<a href="#M000189">new</a>
|
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-
|
114
|
-
<a name="
|
113
|
+
<div id="method-M000189" class="method-detail">
|
114
|
+
<a name="M000189"></a>
|
115
115
|
|
116
116
|
<div class="method-heading">
|
117
|
-
<a href="#
|
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('
|
125
|
-
<div class="method-source-code" id="
|
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="#
|
91
|
+
<a href="#M000168">new</a>
|
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-
|
114
|
-
<a name="
|
113
|
+
<div id="method-M000168" class="method-detail">
|
114
|
+
<a name="M000168"></a>
|
115
115
|
|
116
116
|
<div class="method-heading">
|
117
|
-
<a href="#
|
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('
|
125
|
-
<div class="method-source-code" id="
|
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 "xxx" and
|
|
100
100
|
<h3 class="section-bar">Methods</h3>
|
101
101
|
|
102
102
|
<div class="name-list">
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
103
|
+
<a href="#M000207">application_path</a>
|
104
|
+
<a href="#M000208">build_url</a>
|
105
|
+
<a href="#M000206">new</a>
|
106
106
|
</div>
|
107
107
|
</div>
|
108
108
|
|
@@ -147,19 +147,19 @@ NOTE that if there are fields named "xxx" and
|
|
147
147
|
<div id="methods">
|
148
148
|
<h3 class="section-bar">Public Class methods</h3>
|
149
149
|
|
150
|
-
<div id="method-
|
151
|
-
<a name="
|
150
|
+
<div id="method-M000206" class="method-detail">
|
151
|
+
<a name="M000206"></a>
|
152
152
|
|
153
153
|
<div class="method-heading">
|
154
|
-
<a href="#
|
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('
|
162
|
-
<div class="method-source-code" id="
|
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 "xxx" and
|
|
195
195
|
|
196
196
|
<h3 class="section-bar">Public Instance methods</h3>
|
197
197
|
|
198
|
-
<div id="method-
|
199
|
-
<a name="
|
198
|
+
<div id="method-M000207" class="method-detail">
|
199
|
+
<a name="M000207"></a>
|
200
200
|
|
201
201
|
<div class="method-heading">
|
202
|
-
<a href="#
|
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('
|
210
|
-
<div class="method-source-code" id="
|
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 "xxx" and
|
|
218
218
|
</div>
|
219
219
|
</div>
|
220
220
|
|
221
|
-
<div id="method-
|
222
|
-
<a name="
|
221
|
+
<div id="method-M000208" class="method-detail">
|
222
|
+
<a name="M000208"></a>
|
223
223
|
|
224
224
|
<div class="method-heading">
|
225
|
-
<a href="#
|
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('
|
233
|
-
<div class="method-source-code" id="
|
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>)
|