wee 2.0.0 → 2.1.0
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/TODO +31 -0
- data/benchmark.rb +37 -0
- data/demo.ru +11 -0
- data/doc/rdoc/classes/Array.html +22 -26
- data/doc/rdoc/classes/Hash.html +22 -26
- data/doc/rdoc/classes/Object.html +21 -26
- data/doc/rdoc/classes/String.html +19 -87
- data/doc/rdoc/classes/Struct.html +22 -26
- data/doc/rdoc/classes/Wee.html +75 -206
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +35 -66
- data/doc/rdoc/classes/Wee/AnswerDecoration/Answer.html +28 -46
- data/doc/rdoc/classes/Wee/Application.html +63 -114
- data/doc/rdoc/classes/Wee/Application/SessionCache.html +30 -44
- data/doc/rdoc/classes/Wee/Brush.html +52 -101
- data/doc/rdoc/classes/Wee/Brush/ActionInputTag.html +29 -51
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +44 -101
- data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +43 -76
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +29 -46
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +48 -110
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +30 -42
- data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +37 -58
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +93 -210
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +38 -63
- data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +35 -52
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +28 -61
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +34 -107
- data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +28 -54
- data/doc/rdoc/classes/Wee/Brush/Page.html +39 -73
- data/doc/rdoc/classes/Wee/Brush/PasswordInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/RadioButtonTag.html +54 -98
- data/doc/rdoc/classes/Wee/Brush/RadioGroup.html +46 -84
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +87 -187
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +29 -56
- data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +28 -55
- data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +28 -55
- data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +56 -113
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +27 -58
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -140
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/CallAnswerMixin.html +51 -79
- data/doc/rdoc/classes/Wee/CallbackMixin.html +44 -77
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +69 -125
- data/doc/rdoc/classes/Wee/Callbacks.html +43 -82
- data/doc/rdoc/classes/Wee/Component.html +142 -292
- data/doc/rdoc/classes/Wee/Decoration.html +85 -141
- data/doc/rdoc/classes/Wee/DecorationMixin.html +111 -118
- data/doc/rdoc/classes/Wee/Delegate.html +72 -115
- data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/ErrorResponse.html +31 -48
- data/doc/rdoc/classes/Wee/FormDecoration.html +32 -46
- data/doc/rdoc/classes/Wee/GenericResponse.html +30 -50
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +209 -562
- data/doc/rdoc/classes/Wee/HtmlDocument.html +51 -91
- data/doc/rdoc/classes/Wee/HtmlWriter.html +76 -156
- data/doc/rdoc/classes/Wee/IdGenerator.html +28 -44
- data/doc/rdoc/classes/Wee/IdGenerator/Secure.html +53 -95
- data/doc/rdoc/classes/Wee/IdGenerator/Sequential.html +37 -63
- data/doc/rdoc/classes/Wee/JQuery.html +36 -64
- data/doc/rdoc/classes/Wee/LRUCache.html +94 -189
- data/doc/rdoc/classes/Wee/LRUCache/Item.html +30 -42
- data/doc/rdoc/classes/Wee/ObjectSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/PageDecoration.html +48 -79
- data/doc/rdoc/classes/Wee/Presenter.html +86 -143
- data/doc/rdoc/classes/Wee/RedirectResponse.html +31 -49
- data/doc/rdoc/classes/Wee/RefreshResponse.html +34 -48
- data/doc/rdoc/classes/Wee/Renderer.html +56 -125
- data/doc/rdoc/classes/Wee/Request.html +57 -115
- data/doc/rdoc/classes/Wee/Response.html +24 -26
- data/doc/rdoc/classes/Wee/Session.html +137 -292
- data/doc/rdoc/classes/Wee/Session/AbortCallbackProcessing.html +29 -46
- data/doc/rdoc/classes/Wee/Session/MutexSerializer.html +29 -42
- data/doc/rdoc/classes/Wee/Session/Page.html +22 -21
- data/doc/rdoc/classes/Wee/Session/ThreadSerializer.html +36 -60
- data/doc/rdoc/classes/Wee/State.html +57 -105
- data/doc/rdoc/classes/Wee/State/Snapshot.html +22 -21
- data/doc/rdoc/classes/Wee/State/SnapshotIVars.html +22 -21
- data/doc/rdoc/classes/Wee/StructSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +42 -68
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README_rdoc.html +26 -17
- data/doc/rdoc/files/lib/wee/application_rb.html +25 -19
- data/doc/rdoc/files/lib/wee/call_answer_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/callback_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/component_rb.html +25 -19
- data/doc/rdoc/files/lib/wee/decoration_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_brushes_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/html_canvas_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_document_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_writer_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/id_generator_rb.html +24 -17
- data/doc/rdoc/files/lib/wee/jquery/jquery_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/jquery_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/lru_cache_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/presenter_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/renderer_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/request_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/response_rb.html +24 -17
- data/doc/rdoc/files/lib/wee/session_rb.html +26 -21
- data/doc/rdoc/files/lib/wee/state_rb.html +23 -12
- data/doc/rdoc/files/lib/wee_rb.html +37 -47
- data/doc/rdoc/fr_class_index.html +12 -86
- data/doc/rdoc/fr_file_index.html +12 -30
- data/doc/rdoc/fr_method_index.html +242 -473
- data/doc/rdoc/index.html +8 -5
- data/doc/rdoc/rdoc-style.css +119 -210
- data/examples/ObjectSpaceBrowser.rb +4 -4
- data/examples/TODO +21 -0
- data/examples/ajax.rb +6 -4
- data/examples/blog.rb +42 -0
- data/examples/demo.rb +5 -3
- data/examples/demo/calculator.rb +3 -3
- data/examples/demo/calendar.rb +4 -4
- data/examples/demo/counter.rb +2 -2
- data/examples/demo/editable_counter.rb +2 -2
- data/examples/demo/example.rb +25 -16
- data/examples/demo/window.rb +10 -3
- data/examples/hw2.rb +17 -0
- data/examples/recipe/description.rb +170 -0
- data/examples/recipe/migrations/001_create_recipes.rb +13 -0
- data/examples/recipe/model.rb +27 -0
- data/examples/recipe/models/recipe.rb +18 -0
- data/examples/recipe/recipe_editor.rb +28 -0
- data/lib/wee.rb +1 -7
- data/lib/wee/component.rb +37 -74
- data/lib/wee/decoration.rb +16 -15
- data/lib/wee/html_brushes.rb +16 -17
- data/lib/wee/presenter.rb +2 -1
- data/lib/wee/response.rb +4 -4
- data/lib/wee/session.rb +2 -2
- data/lib/wee/state.rb +2 -2
- data/test/t.rb +67 -0
- data/wee.gemspec +1 -1
- metadata +157 -167
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
|
|
3
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
7
|
<head>
|
|
5
|
-
<title>Class: Wee::Presenter
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::Presenter</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
7
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
8
11
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
9
12
|
<script type="text/javascript">
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
return false;
|
|
23
26
|
|
|
24
27
|
elemStyle = elem.style;
|
|
25
|
-
|
|
28
|
+
|
|
26
29
|
if ( elemStyle.display != "block" ) {
|
|
27
30
|
elemStyle.display = "block"
|
|
28
31
|
} else {
|
|
@@ -31,10 +34,10 @@
|
|
|
31
34
|
|
|
32
35
|
return true;
|
|
33
36
|
}
|
|
34
|
-
|
|
37
|
+
|
|
35
38
|
// Make codeblocks hidden by default
|
|
36
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }
|
|
37
|
-
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
38
41
|
// ]]>
|
|
39
42
|
</script>
|
|
40
43
|
|
|
@@ -42,6 +45,7 @@
|
|
|
42
45
|
<body>
|
|
43
46
|
|
|
44
47
|
|
|
48
|
+
|
|
45
49
|
<div id="classHeader">
|
|
46
50
|
<table class="header-table">
|
|
47
51
|
<tr class="top-aligned-row">
|
|
@@ -51,40 +55,29 @@
|
|
|
51
55
|
<tr class="top-aligned-row">
|
|
52
56
|
<td><strong>In:</strong></td>
|
|
53
57
|
<td>
|
|
54
|
-
|
|
55
|
-
|
|
56
58
|
<a href="../../files/lib/wee/presenter_rb.html">
|
|
57
|
-
|
|
58
59
|
lib/wee/presenter.rb
|
|
59
|
-
|
|
60
60
|
</a>
|
|
61
|
-
|
|
62
|
-
|
|
63
61
|
<br />
|
|
64
|
-
|
|
65
62
|
</td>
|
|
66
63
|
</tr>
|
|
67
64
|
|
|
68
|
-
|
|
69
65
|
<tr class="top-aligned-row">
|
|
70
66
|
<td><strong>Parent:</strong></td>
|
|
71
67
|
<td>
|
|
72
|
-
|
|
73
68
|
<a href="../Object.html">
|
|
74
|
-
|
|
75
69
|
Object
|
|
76
|
-
|
|
77
70
|
</a>
|
|
78
|
-
|
|
79
71
|
</td>
|
|
80
72
|
</tr>
|
|
81
|
-
|
|
82
73
|
</table>
|
|
83
74
|
</div>
|
|
84
75
|
<!-- banner header -->
|
|
85
76
|
|
|
86
77
|
<div id="bodyContent">
|
|
87
78
|
|
|
79
|
+
|
|
80
|
+
|
|
88
81
|
<div id="contextContent">
|
|
89
82
|
|
|
90
83
|
<div id="description">
|
|
@@ -95,37 +88,31 @@ specifies an interface without actual implementation.
|
|
|
95
88
|
</p>
|
|
96
89
|
<p>
|
|
97
90
|
Class <a href="Component.html">Component</a> and <a
|
|
98
|
-
href="Decoration.html">Decoration</a> are it&#
|
|
91
|
+
href="Decoration.html">Decoration</a> are it‘s two most important
|
|
99
92
|
subclasses.
|
|
100
93
|
</p>
|
|
101
94
|
|
|
102
95
|
</div>
|
|
103
96
|
|
|
104
|
-
</div>
|
|
105
97
|
|
|
98
|
+
</div>
|
|
106
99
|
|
|
107
100
|
<div id="method-list">
|
|
108
101
|
<h3 class="section-bar">Methods</h3>
|
|
109
102
|
|
|
110
103
|
<div class="name-list">
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<a href="#M000059">render_on</a>
|
|
119
|
-
|
|
120
|
-
<a href="#M000063">renderer_class</a>
|
|
121
|
-
|
|
122
|
-
<a href="#M000064">session</a>
|
|
123
|
-
|
|
104
|
+
<a href="#M000194">process_callbacks</a>
|
|
105
|
+
<a href="#M000192">render</a>
|
|
106
|
+
<a href="#M000191">render_on</a>
|
|
107
|
+
<a href="#M000195">renderer_class</a>
|
|
108
|
+
<a href="#M000196">session</a>
|
|
109
|
+
<a href="#M000193">state</a>
|
|
124
110
|
</div>
|
|
125
111
|
</div>
|
|
126
112
|
|
|
127
113
|
</div>
|
|
128
114
|
|
|
115
|
+
|
|
129
116
|
<!-- if includes -->
|
|
130
117
|
|
|
131
118
|
<div id="section">
|
|
@@ -133,115 +120,69 @@ subclasses.
|
|
|
133
120
|
|
|
134
121
|
|
|
135
122
|
|
|
136
|
-
<!-- if method_list -->
|
|
137
|
-
|
|
138
|
-
<div id="methods">
|
|
139
|
-
|
|
140
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<div id="method-M000061" class="method-detail">
|
|
144
|
-
<a name="M000061"></a>
|
|
145
|
-
|
|
146
|
-
<div class="method-heading">
|
|
147
|
-
|
|
148
|
-
<a href="#M000061" class="method-signature">
|
|
149
|
-
|
|
150
|
-
<span class="method-name">backtrack</span><span class="method-args">(state)</span>
|
|
151
|
-
|
|
152
|
-
</a>
|
|
153
|
-
|
|
154
|
-
</div>
|
|
155
|
-
|
|
156
|
-
<div class="method-description">
|
|
157
123
|
|
|
158
|
-
|
|
159
|
-
onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
|
|
160
|
-
<div class="method-source-code" id="M000061-source">
|
|
161
|
-
<pre>
|
|
162
|
-
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line 17</span>
|
|
163
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backtrack</span>(<span class="ruby-identifier">state</span>); <span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">end</span>
|
|
164
|
-
</pre>
|
|
165
|
-
</div>
|
|
124
|
+
|
|
166
125
|
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
126
|
|
|
127
|
+
<!-- if method_list -->
|
|
128
|
+
<div id="methods">
|
|
129
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
|
170
130
|
|
|
171
|
-
<div id="method-
|
|
172
|
-
<a name="
|
|
131
|
+
<div id="method-M000194" class="method-detail">
|
|
132
|
+
<a name="M000194"></a>
|
|
173
133
|
|
|
174
134
|
<div class="method-heading">
|
|
175
|
-
|
|
176
|
-
<a href="#M000062" class="method-signature">
|
|
177
|
-
|
|
135
|
+
<a href="#M000194" class="method-signature">
|
|
178
136
|
<span class="method-name">process_callbacks</span><span class="method-args">(callbacks)</span>
|
|
179
|
-
|
|
180
137
|
</a>
|
|
181
|
-
|
|
182
138
|
</div>
|
|
183
|
-
|
|
139
|
+
|
|
184
140
|
<div class="method-description">
|
|
185
|
-
|
|
186
141
|
<p><a class="source-toggle" href="#"
|
|
187
|
-
onclick="toggleCode('
|
|
188
|
-
<div class="method-source-code" id="
|
|
142
|
+
onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
|
|
143
|
+
<div class="method-source-code" id="M000194-source">
|
|
189
144
|
<pre>
|
|
190
|
-
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line
|
|
145
|
+
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line 19</span>
|
|
191
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callbacks</span>); <span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">end</span>
|
|
192
147
|
</pre>
|
|
193
148
|
</div>
|
|
194
|
-
|
|
195
149
|
</div>
|
|
196
150
|
</div>
|
|
197
151
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
<a name="M000060"></a>
|
|
152
|
+
<div id="method-M000192" class="method-detail">
|
|
153
|
+
<a name="M000192"></a>
|
|
201
154
|
|
|
202
155
|
<div class="method-heading">
|
|
203
|
-
|
|
204
|
-
<a href="#M000060" class="method-signature">
|
|
205
|
-
|
|
156
|
+
<a href="#M000192" class="method-signature">
|
|
206
157
|
<span class="method-name">render</span><span class="method-args">(r)</span>
|
|
207
|
-
|
|
208
158
|
</a>
|
|
209
|
-
|
|
210
159
|
</div>
|
|
211
|
-
|
|
160
|
+
|
|
212
161
|
<div class="method-description">
|
|
213
|
-
|
|
214
162
|
<p><a class="source-toggle" href="#"
|
|
215
|
-
onclick="toggleCode('
|
|
216
|
-
<div class="method-source-code" id="
|
|
163
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
|
164
|
+
<div class="method-source-code" id="M000192-source">
|
|
217
165
|
<pre>
|
|
218
166
|
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line 16</span>
|
|
219
167
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">r</span>); <span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">end</span>
|
|
220
168
|
</pre>
|
|
221
169
|
</div>
|
|
222
|
-
|
|
223
170
|
</div>
|
|
224
171
|
</div>
|
|
225
172
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
<a name="M000059"></a>
|
|
173
|
+
<div id="method-M000191" class="method-detail">
|
|
174
|
+
<a name="M000191"></a>
|
|
229
175
|
|
|
230
176
|
<div class="method-heading">
|
|
231
|
-
|
|
232
|
-
<a href="#M000059" class="method-signature">
|
|
233
|
-
|
|
177
|
+
<a href="#M000191" class="method-signature">
|
|
234
178
|
<span class="method-name">render_on</span><span class="method-args">(r)</span>
|
|
235
|
-
|
|
236
179
|
</a>
|
|
237
|
-
|
|
238
180
|
</div>
|
|
239
|
-
|
|
181
|
+
|
|
240
182
|
<div class="method-description">
|
|
241
|
-
|
|
242
183
|
<p><a class="source-toggle" href="#"
|
|
243
|
-
onclick="toggleCode('
|
|
244
|
-
<div class="method-source-code" id="
|
|
184
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
|
185
|
+
<div class="method-source-code" id="M000191-source">
|
|
245
186
|
<pre>
|
|
246
187
|
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line 12</span>
|
|
247
188
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_on</span>(<span class="ruby-identifier">r</span>)
|
|
@@ -249,26 +190,19 @@ subclasses.
|
|
|
249
190
|
<span class="ruby-keyword kw">end</span>
|
|
250
191
|
</pre>
|
|
251
192
|
</div>
|
|
252
|
-
|
|
253
193
|
</div>
|
|
254
194
|
</div>
|
|
255
195
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
<a name="M000063"></a>
|
|
196
|
+
<div id="method-M000195" class="method-detail">
|
|
197
|
+
<a name="M000195"></a>
|
|
259
198
|
|
|
260
199
|
<div class="method-heading">
|
|
261
|
-
|
|
262
|
-
<a href="#M000063" class="method-signature">
|
|
263
|
-
|
|
200
|
+
<a href="#M000195" class="method-signature">
|
|
264
201
|
<span class="method-name">renderer_class</span><span class="method-args">()</span>
|
|
265
|
-
|
|
266
202
|
</a>
|
|
267
|
-
|
|
268
203
|
</div>
|
|
269
|
-
|
|
204
|
+
|
|
270
205
|
<div class="method-description">
|
|
271
|
-
|
|
272
206
|
<p>
|
|
273
207
|
Returns the class used as <a href="Renderer.html">Renderer</a> for this
|
|
274
208
|
presenter. Overwrite this method if you want to use a different <a
|
|
@@ -278,72 +212,81 @@ href="Renderer.html">Renderer</a> than the default one.
|
|
|
278
212
|
Returned class must be a subclass of <a
|
|
279
213
|
href="Renderer.html">Wee::Renderer</a>.
|
|
280
214
|
</p>
|
|
281
|
-
|
|
282
215
|
<p><a class="source-toggle" href="#"
|
|
283
|
-
onclick="toggleCode('
|
|
284
|
-
<div class="method-source-code" id="
|
|
216
|
+
onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
|
|
217
|
+
<div class="method-source-code" id="M000195-source">
|
|
285
218
|
<pre>
|
|
286
|
-
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line
|
|
219
|
+
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line 27</span>
|
|
287
220
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">renderer_class</span>
|
|
288
221
|
<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">DefaultRenderer</span>
|
|
289
222
|
<span class="ruby-keyword kw">end</span>
|
|
290
223
|
</pre>
|
|
291
224
|
</div>
|
|
292
|
-
|
|
293
225
|
</div>
|
|
294
226
|
</div>
|
|
295
227
|
|
|
228
|
+
<div id="method-M000193" class="method-detail">
|
|
229
|
+
<a name="M000193"></a>
|
|
296
230
|
|
|
297
|
-
|
|
231
|
+
<div class="method-heading">
|
|
232
|
+
<a href="#M000193" class="method-signature">
|
|
233
|
+
<span class="method-name">state</span><span class="method-args">(s)</span>
|
|
234
|
+
</a>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<div class="method-description">
|
|
238
|
+
<p><a class="source-toggle" href="#"
|
|
239
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
|
240
|
+
<div class="method-source-code" id="M000193-source">
|
|
241
|
+
<pre>
|
|
242
|
+
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line 17</span>
|
|
243
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">state</span>(<span class="ruby-identifier">s</span>); <span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">end</span>
|
|
244
|
+
</pre>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
298
248
|
|
|
249
|
+
<h3 class="section-bar">Protected Instance methods</h3>
|
|
299
250
|
|
|
300
|
-
<div id="method-
|
|
301
|
-
<a name="
|
|
251
|
+
<div id="method-M000196" class="method-detail">
|
|
252
|
+
<a name="M000196"></a>
|
|
302
253
|
|
|
303
254
|
<div class="method-heading">
|
|
304
|
-
|
|
305
|
-
<a href="#M000064" class="method-signature">
|
|
306
|
-
|
|
255
|
+
<a href="#M000196" class="method-signature">
|
|
307
256
|
<span class="method-name">session</span><span class="method-args">()</span>
|
|
308
|
-
|
|
309
257
|
</a>
|
|
310
|
-
|
|
311
258
|
</div>
|
|
312
|
-
|
|
259
|
+
|
|
313
260
|
<div class="method-description">
|
|
314
|
-
|
|
315
261
|
<p>
|
|
316
|
-
Returns the current session
|
|
317
|
-
|
|
318
|
-
href="
|
|
262
|
+
Returns the current <a href="Presenter.html#M000196">session</a>. A
|
|
263
|
+
presenter (or component) has always an associated <a
|
|
264
|
+
href="Presenter.html#M000196">session</a>. The returned object is of class
|
|
265
|
+
<a href="Session.html">Wee::Session</a> or a subclass thereof.
|
|
319
266
|
</p>
|
|
320
|
-
|
|
321
267
|
<p><a class="source-toggle" href="#"
|
|
322
|
-
onclick="toggleCode('
|
|
323
|
-
<div class="method-source-code" id="
|
|
268
|
+
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
|
269
|
+
<div class="method-source-code" id="M000196-source">
|
|
324
270
|
<pre>
|
|
325
|
-
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line
|
|
271
|
+
<span class="ruby-comment cmt"># File lib/wee/presenter.rb, line 38</span>
|
|
326
272
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">session</span>
|
|
327
273
|
<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Session</span>.<span class="ruby-identifier">current</span>
|
|
328
274
|
<span class="ruby-keyword kw">end</span>
|
|
329
275
|
</pre>
|
|
330
276
|
</div>
|
|
331
|
-
|
|
332
277
|
</div>
|
|
333
278
|
</div>
|
|
334
279
|
|
|
335
280
|
|
|
336
|
-
|
|
337
281
|
</div>
|
|
338
282
|
|
|
339
283
|
|
|
340
|
-
|
|
341
|
-
|
|
342
284
|
</div>
|
|
343
285
|
|
|
286
|
+
|
|
344
287
|
<div id="validator-badges">
|
|
345
288
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
346
289
|
</div>
|
|
347
290
|
|
|
348
291
|
</body>
|
|
349
|
-
</html>
|
|
292
|
+
</html>
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
|
|
3
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
7
|
<head>
|
|
5
|
-
<title>Class: Wee::RedirectResponse
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::RedirectResponse</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
7
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
8
11
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
9
12
|
<script type="text/javascript">
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
return false;
|
|
23
26
|
|
|
24
27
|
elemStyle = elem.style;
|
|
25
|
-
|
|
28
|
+
|
|
26
29
|
if ( elemStyle.display != "block" ) {
|
|
27
30
|
elemStyle.display = "block"
|
|
28
31
|
} else {
|
|
@@ -31,10 +34,10 @@
|
|
|
31
34
|
|
|
32
35
|
return true;
|
|
33
36
|
}
|
|
34
|
-
|
|
37
|
+
|
|
35
38
|
// Make codeblocks hidden by default
|
|
36
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }
|
|
37
|
-
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
38
41
|
// ]]>
|
|
39
42
|
</script>
|
|
40
43
|
|
|
@@ -42,6 +45,7 @@
|
|
|
42
45
|
<body>
|
|
43
46
|
|
|
44
47
|
|
|
48
|
+
|
|
45
49
|
<div id="classHeader">
|
|
46
50
|
<table class="header-table">
|
|
47
51
|
<tr class="top-aligned-row">
|
|
@@ -51,106 +55,87 @@
|
|
|
51
55
|
<tr class="top-aligned-row">
|
|
52
56
|
<td><strong>In:</strong></td>
|
|
53
57
|
<td>
|
|
54
|
-
|
|
55
|
-
|
|
56
58
|
<a href="../../files/lib/wee/response_rb.html">
|
|
57
|
-
|
|
58
59
|
lib/wee/response.rb
|
|
59
|
-
|
|
60
60
|
</a>
|
|
61
|
-
|
|
62
|
-
|
|
63
61
|
<br />
|
|
64
|
-
|
|
65
62
|
</td>
|
|
66
63
|
</tr>
|
|
67
64
|
|
|
68
|
-
|
|
69
65
|
<tr class="top-aligned-row">
|
|
70
66
|
<td><strong>Parent:</strong></td>
|
|
71
67
|
<td>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Wee::GenericResponse
|
|
76
|
-
|
|
68
|
+
<a href="Response.html">
|
|
69
|
+
Response
|
|
77
70
|
</a>
|
|
78
|
-
|
|
79
71
|
</td>
|
|
80
72
|
</tr>
|
|
81
|
-
|
|
82
73
|
</table>
|
|
83
74
|
</div>
|
|
84
75
|
<!-- banner header -->
|
|
85
76
|
|
|
86
77
|
<div id="bodyContent">
|
|
87
78
|
|
|
79
|
+
|
|
80
|
+
|
|
88
81
|
<div id="contextContent">
|
|
89
82
|
|
|
90
|
-
</div>
|
|
91
83
|
|
|
92
84
|
|
|
85
|
+
</div>
|
|
86
|
+
|
|
93
87
|
<div id="method-list">
|
|
94
88
|
<h3 class="section-bar">Methods</h3>
|
|
95
89
|
|
|
96
90
|
<div class="name-list">
|
|
97
|
-
|
|
98
|
-
<a href="#M000113">new</a>
|
|
99
|
-
|
|
91
|
+
<a href="#M000190">new</a>
|
|
100
92
|
</div>
|
|
101
93
|
</div>
|
|
102
94
|
|
|
103
95
|
</div>
|
|
104
96
|
|
|
97
|
+
|
|
105
98
|
<!-- if includes -->
|
|
106
99
|
|
|
107
100
|
<div id="section">
|
|
108
101
|
|
|
102
|
+
|
|
109
103
|
<div id="constants-list">
|
|
110
104
|
<h3 class="section-bar">Constants</h3>
|
|
111
105
|
|
|
112
106
|
<div class="name-list">
|
|
113
107
|
<table summary="Constants">
|
|
114
|
-
|
|
115
108
|
<tr class="top-aligned-row context-row">
|
|
116
109
|
<td class="context-item-name">LOCATION_HEADER</td>
|
|
117
110
|
<td>=</td>
|
|
118
111
|
<td class="context-item-value">'Location'.freeze</td>
|
|
119
|
-
|
|
120
112
|
</tr>
|
|
121
|
-
|
|
122
113
|
</table>
|
|
123
114
|
</div>
|
|
124
115
|
</div>
|
|
125
116
|
|
|
126
117
|
|
|
127
118
|
|
|
119
|
+
|
|
128
120
|
|
|
129
|
-
<!-- if method_list -->
|
|
130
121
|
|
|
122
|
+
<!-- if method_list -->
|
|
131
123
|
<div id="methods">
|
|
132
|
-
|
|
133
124
|
<h3 class="section-bar">Public Class methods</h3>
|
|
134
125
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
<a name="M000113"></a>
|
|
126
|
+
<div id="method-M000190" class="method-detail">
|
|
127
|
+
<a name="M000190"></a>
|
|
138
128
|
|
|
139
129
|
<div class="method-heading">
|
|
140
|
-
|
|
141
|
-
<a href="#M000113" class="method-signature">
|
|
142
|
-
|
|
130
|
+
<a href="#M000190" class="method-signature">
|
|
143
131
|
<span class="method-name">new</span><span class="method-args">(location)</span>
|
|
144
|
-
|
|
145
132
|
</a>
|
|
146
|
-
|
|
147
133
|
</div>
|
|
148
|
-
|
|
134
|
+
|
|
149
135
|
<div class="method-description">
|
|
150
|
-
|
|
151
136
|
<p><a class="source-toggle" href="#"
|
|
152
|
-
onclick="toggleCode('
|
|
153
|
-
<div class="method-source-code" id="
|
|
137
|
+
onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
|
|
138
|
+
<div class="method-source-code" id="M000190-source">
|
|
154
139
|
<pre>
|
|
155
140
|
<span class="ruby-comment cmt"># File lib/wee/response.rb, line 23</span>
|
|
156
141
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">location</span>)
|
|
@@ -160,22 +145,19 @@
|
|
|
160
145
|
<span class="ruby-keyword kw">end</span>
|
|
161
146
|
</pre>
|
|
162
147
|
</div>
|
|
163
|
-
|
|
164
148
|
</div>
|
|
165
149
|
</div>
|
|
166
150
|
|
|
167
151
|
|
|
168
|
-
|
|
169
152
|
</div>
|
|
170
153
|
|
|
171
154
|
|
|
172
|
-
|
|
173
|
-
|
|
174
155
|
</div>
|
|
175
156
|
|
|
157
|
+
|
|
176
158
|
<div id="validator-badges">
|
|
177
159
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
178
160
|
</div>
|
|
179
161
|
|
|
180
162
|
</body>
|
|
181
|
-
</html>
|
|
163
|
+
</html>
|