wee 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +18 -0
- data/doc/rdoc/classes/Enumerable.html +6 -6
- data/doc/rdoc/classes/Object.html +12 -12
- data/doc/rdoc/classes/OgScaffolder.html +53 -6
- data/doc/rdoc/classes/OgScaffolder/Editor.html +182 -107
- data/doc/rdoc/classes/String.html +12 -12
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
- data/doc/rdoc/classes/Wee/Application.html +42 -42
- data/doc/rdoc/classes/Wee/Brush.html +18 -18
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +6 -6
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +84 -84
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +18 -18
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +6 -6
- data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +31 -23
- data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +11 -7
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +6 -6
- 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 +12 -12
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +36 -36
- 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 +124 -124
- data/doc/rdoc/classes/Wee/Component/OnAnswer.html +6 -6
- data/doc/rdoc/classes/Wee/Decoration.html +40 -40
- data/doc/rdoc/classes/Wee/Delegate.html +27 -27
- data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
- data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
- data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +214 -214
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
- data/doc/rdoc/classes/Wee/Md5IdGenerator.html +12 -12
- data/doc/rdoc/classes/Wee/MessageBox.html +12 -12
- data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
- data/doc/rdoc/classes/Wee/PagelessApplication.html +6 -6
- data/doc/rdoc/classes/Wee/PagelessRequest.html +12 -12
- data/doc/rdoc/classes/Wee/PagelessSession.html +24 -24
- data/doc/rdoc/classes/Wee/Presenter.html +85 -85
- 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 +30 -30
- data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
- data/doc/rdoc/classes/Wee/Response.html +36 -36
- data/doc/rdoc/classes/Wee/Session.html +104 -104
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +12 -12
- data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
- data/doc/rdoc/classes/Wee/Utils.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 +46 -46
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README.html +5 -5
- data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
- data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +8 -1
- data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +268 -264
- data/lib/wee.rb +1 -1
- data/lib/wee/databases/og/scaffolder.rb +62 -17
- data/lib/wee/renderer/html/brushes.rb +17 -5
- metadata +21 -21
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000191">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -121,21 +121,21 @@
|
|
121
121
|
<div id="methods">
|
122
122
|
<h3 class="section-bar">Public Class methods</h3>
|
123
123
|
|
124
|
-
<div id="method-
|
125
|
-
<a name="
|
124
|
+
<div id="method-M000191" class="method-detail">
|
125
|
+
<a name="M000191"></a>
|
126
126
|
|
127
127
|
<div class="method-heading">
|
128
|
-
<a href="#
|
128
|
+
<a href="#M000191" class="method-signature">
|
129
129
|
<span class="method-name">new</span><span class="method-args">()</span>
|
130
130
|
</a>
|
131
131
|
</div>
|
132
132
|
|
133
133
|
<div class="method-description">
|
134
134
|
<p><a class="source-toggle" href="#"
|
135
|
-
onclick="toggleCode('
|
136
|
-
<div class="method-source-code" id="
|
135
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
136
|
+
<div class="method-source-code" id="M000191-source">
|
137
137
|
<pre>
|
138
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
138
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 379</span>
|
139
139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
140
140
|
<span class="ruby-keyword kw">super</span>
|
141
141
|
<span class="ruby-identifier">type</span>(<span class="ruby-value str">'text'</span>)
|
@@ -107,12 +107,12 @@ The format of the internal datastructure is:
|
|
107
107
|
<h3 class="section-bar">Methods</h3>
|
108
108
|
|
109
109
|
<div class="name-list">
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
110
|
+
<a href="#M000242">all_of_type</a>
|
111
|
+
<a href="#M000241">get_callback_for</a>
|
112
|
+
<a href="#M000240">get_ids_for</a>
|
113
|
+
<a href="#M000237">new</a>
|
114
|
+
<a href="#M000238">register_for</a>
|
115
|
+
<a href="#M000239">register_named_for</a>
|
116
116
|
</div>
|
117
117
|
</div>
|
118
118
|
|
@@ -134,19 +134,19 @@ The format of the internal datastructure is:
|
|
134
134
|
<div id="methods">
|
135
135
|
<h3 class="section-bar">Public Class methods</h3>
|
136
136
|
|
137
|
-
<div id="method-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000237" class="method-detail">
|
138
|
+
<a name="M000237"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
141
|
+
<a href="#M000237" class="method-signature">
|
142
142
|
<span class="method-name">new</span><span class="method-args">(id_generator)</span>
|
143
143
|
</a>
|
144
144
|
</div>
|
145
145
|
|
146
146
|
<div class="method-description">
|
147
147
|
<p><a class="source-toggle" href="#"
|
148
|
-
onclick="toggleCode('
|
149
|
-
<div class="method-source-code" id="
|
148
|
+
onclick="toggleCode('M000237-source');return false;">[Source]</a></p>
|
149
|
+
<div class="method-source-code" id="M000237-source">
|
150
150
|
<pre>
|
151
151
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 11</span>
|
152
152
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id_generator</span>)
|
@@ -161,11 +161,11 @@ The format of the internal datastructure is:
|
|
161
161
|
|
162
162
|
<h3 class="section-bar">Public Instance methods</h3>
|
163
163
|
|
164
|
-
<div id="method-
|
165
|
-
<a name="
|
164
|
+
<div id="method-M000238" class="method-detail">
|
165
|
+
<a name="M000238"></a>
|
166
166
|
|
167
167
|
<div class="method-heading">
|
168
|
-
<a href="#
|
168
|
+
<a href="#M000238" class="method-signature">
|
169
169
|
<span class="method-name">register_for</span><span class="method-args">(object, type, callback)</span>
|
170
170
|
</a>
|
171
171
|
</div>
|
@@ -176,8 +176,8 @@ Register <tt>callback</tt> for <tt>object</tt> under <tt>type</tt> and
|
|
176
176
|
return a unique callback id.
|
177
177
|
</p>
|
178
178
|
<p><a class="source-toggle" href="#"
|
179
|
-
onclick="toggleCode('
|
180
|
-
<div class="method-source-code" id="
|
179
|
+
onclick="toggleCode('M000238-source');return false;">[Source]</a></p>
|
180
|
+
<div class="method-source-code" id="M000238-source">
|
181
181
|
<pre>
|
182
182
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 19</span>
|
183
183
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_for</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
|
@@ -188,11 +188,11 @@ return a unique callback id.
|
|
188
188
|
</div>
|
189
189
|
</div>
|
190
190
|
|
191
|
-
<div id="method-
|
192
|
-
<a name="
|
191
|
+
<div id="method-M000239" class="method-detail">
|
192
|
+
<a name="M000239"></a>
|
193
193
|
|
194
194
|
<div class="method-heading">
|
195
|
-
<a href="#
|
195
|
+
<a href="#M000239" class="method-signature">
|
196
196
|
<span class="method-name">register_named_for</span><span class="method-args">(object, type, callback, named_id)</span>
|
197
197
|
</a>
|
198
198
|
</div>
|
@@ -203,8 +203,8 @@ Register <tt>callback</tt> for <tt>object</tt> under <tt>type</tt> with the
|
|
203
203
|
id <tt>named_id</tt>.
|
204
204
|
</p>
|
205
205
|
<p><a class="source-toggle" href="#"
|
206
|
-
onclick="toggleCode('
|
207
|
-
<div class="method-source-code" id="
|
206
|
+
onclick="toggleCode('M000239-source');return false;">[Source]</a></p>
|
207
|
+
<div class="method-source-code" id="M000239-source">
|
208
208
|
<pre>
|
209
209
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 25</span>
|
210
210
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_named_for</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>, <span class="ruby-identifier">named_id</span>)
|
@@ -240,19 +240,19 @@ id <tt>named_id</tt>.
|
|
240
240
|
<div id="methods">
|
241
241
|
<h3 class="section-bar">Public Instance methods</h3>
|
242
242
|
|
243
|
-
<div id="method-
|
244
|
-
<a name="
|
243
|
+
<div id="method-M000242" class="method-detail">
|
244
|
+
<a name="M000242"></a>
|
245
245
|
|
246
246
|
<div class="method-heading">
|
247
|
-
<a href="#
|
247
|
+
<a href="#M000242" class="method-signature">
|
248
248
|
<span class="method-name">all_of_type</span><span class="method-args">(type)</span>
|
249
249
|
</a>
|
250
250
|
</div>
|
251
251
|
|
252
252
|
<div class="method-description">
|
253
253
|
<p><a class="source-toggle" href="#"
|
254
|
-
onclick="toggleCode('
|
255
|
-
<div class="method-source-code" id="
|
254
|
+
onclick="toggleCode('M000242-source');return false;">[Source]</a></p>
|
255
|
+
<div class="method-source-code" id="M000242-source">
|
256
256
|
<pre>
|
257
257
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 55</span>
|
258
258
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all_of_type</span>(<span class="ruby-identifier">type</span>)
|
@@ -267,19 +267,19 @@ id <tt>named_id</tt>.
|
|
267
267
|
</div>
|
268
268
|
</div>
|
269
269
|
|
270
|
-
<div id="method-
|
271
|
-
<a name="
|
270
|
+
<div id="method-M000241" class="method-detail">
|
271
|
+
<a name="M000241"></a>
|
272
272
|
|
273
273
|
<div class="method-heading">
|
274
|
-
<a href="#
|
274
|
+
<a href="#M000241" class="method-signature">
|
275
275
|
<span class="method-name">get_callback_for</span><span class="method-args">(id, type)</span>
|
276
276
|
</a>
|
277
277
|
</div>
|
278
278
|
|
279
279
|
<div class="method-description">
|
280
280
|
<p><a class="source-toggle" href="#"
|
281
|
-
onclick="toggleCode('
|
282
|
-
<div class="method-source-code" id="
|
281
|
+
onclick="toggleCode('M000241-source');return false;">[Source]</a></p>
|
282
|
+
<div class="method-source-code" id="M000241-source">
|
283
283
|
<pre>
|
284
284
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 47</span>
|
285
285
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_callback_for</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">type</span>)
|
@@ -294,19 +294,19 @@ id <tt>named_id</tt>.
|
|
294
294
|
</div>
|
295
295
|
</div>
|
296
296
|
|
297
|
-
<div id="method-
|
298
|
-
<a name="
|
297
|
+
<div id="method-M000240" class="method-detail">
|
298
|
+
<a name="M000240"></a>
|
299
299
|
|
300
300
|
<div class="method-heading">
|
301
|
-
<a href="#
|
301
|
+
<a href="#M000240" class="method-signature">
|
302
302
|
<span class="method-name">get_ids_for</span><span class="method-args">(object, type)</span>
|
303
303
|
</a>
|
304
304
|
</div>
|
305
305
|
|
306
306
|
<div class="method-description">
|
307
307
|
<p><a class="source-toggle" href="#"
|
308
|
-
onclick="toggleCode('
|
309
|
-
<div class="method-source-code" id="
|
308
|
+
onclick="toggleCode('M000240-source');return false;">[Source]</a></p>
|
309
|
+
<div class="method-source-code" id="M000240-source">
|
310
310
|
<pre>
|
311
311
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 39</span>
|
312
312
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_ids_for</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">type</span>)
|
@@ -94,9 +94,9 @@ The intersection of registered callbacks and those that occured.
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
97
|
+
<a href="#M000304">all_of_type</a>
|
98
|
+
<a href="#M000302">new</a>
|
99
|
+
<a href="#M000303">with_callbacks_for</a>
|
100
100
|
</div>
|
101
101
|
</div>
|
102
102
|
|
@@ -118,11 +118,11 @@ The intersection of registered callbacks and those that occured.
|
|
118
118
|
<div id="methods">
|
119
119
|
<h3 class="section-bar">Public Class methods</h3>
|
120
120
|
|
121
|
-
<div id="method-
|
122
|
-
<a name="
|
121
|
+
<div id="method-M000302" class="method-detail">
|
122
|
+
<a name="M000302"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="#
|
125
|
+
<a href="#M000302" class="method-signature">
|
126
126
|
<span class="method-name">new</span><span class="method-args">(callbacks, ids_and_values)</span>
|
127
127
|
</a>
|
128
128
|
</div>
|
@@ -138,8 +138,8 @@ occurend in a request, e.g. { id => value }.
|
|
138
138
|
</dd>
|
139
139
|
</dl>
|
140
140
|
<p><a class="source-toggle" href="#"
|
141
|
-
onclick="toggleCode('
|
142
|
-
<div class="method-source-code" id="
|
141
|
+
onclick="toggleCode('M000302-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000302-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 78</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">callbacks</span>, <span class="ruby-identifier">ids_and_values</span>)
|
@@ -154,11 +154,11 @@ occurend in a request, e.g. { id => value }.
|
|
154
154
|
|
155
155
|
<h3 class="section-bar">Public Instance methods</h3>
|
156
156
|
|
157
|
-
<div id="method-
|
158
|
-
<a name="
|
157
|
+
<div id="method-M000304" class="method-detail">
|
158
|
+
<a name="M000304"></a>
|
159
159
|
|
160
160
|
<div class="method-heading">
|
161
|
-
<a href="#
|
161
|
+
<a href="#M000304" class="method-signature">
|
162
162
|
<span class="method-name">all_of_type</span><span class="method-args">(type)</span>
|
163
163
|
</a>
|
164
164
|
</div>
|
@@ -169,8 +169,8 @@ Returns a [callback, value] array of all callbacks of <tt>type</tt> for
|
|
169
169
|
which an id was given.
|
170
170
|
</p>
|
171
171
|
<p><a class="source-toggle" href="#"
|
172
|
-
onclick="toggleCode('
|
173
|
-
<div class="method-source-code" id="
|
172
|
+
onclick="toggleCode('M000304-source');return false;">[Source]</a></p>
|
173
|
+
<div class="method-source-code" id="M000304-source">
|
174
174
|
<pre>
|
175
175
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 95</span>
|
176
176
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all_of_type</span>(<span class="ruby-identifier">type</span>)
|
@@ -185,19 +185,19 @@ which an id was given.
|
|
185
185
|
</div>
|
186
186
|
</div>
|
187
187
|
|
188
|
-
<div id="method-
|
189
|
-
<a name="
|
188
|
+
<div id="method-M000303" class="method-detail">
|
189
|
+
<a name="M000303"></a>
|
190
190
|
|
191
191
|
<div class="method-heading">
|
192
|
-
<a href="#
|
192
|
+
<a href="#M000303" class="method-signature">
|
193
193
|
<span class="method-name">with_callbacks_for</span><span class="method-args">(object, type) {|@callbacks.get_callback_for(id, type), @ids_and_values[id]| ...}</span>
|
194
194
|
</a>
|
195
195
|
</div>
|
196
196
|
|
197
197
|
<div class="method-description">
|
198
198
|
<p><a class="source-toggle" href="#"
|
199
|
-
onclick="toggleCode('
|
200
|
-
<div class="method-source-code" id="
|
199
|
+
onclick="toggleCode('M000303-source');return false;">[Source]</a></p>
|
200
|
+
<div class="method-source-code" id="M000303-source">
|
201
201
|
<pre>
|
202
202
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 84</span>
|
203
203
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_callbacks_for</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">type</span>)
|
@@ -88,10 +88,10 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
91
|
+
<a href="#M000244">close</a>
|
92
|
+
<a href="#M000246">nest</a>
|
93
|
+
<a href="#M000243">new</a>
|
94
|
+
<a href="#M000245">set_brush</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -113,19 +113,19 @@
|
|
113
113
|
<div id="methods">
|
114
114
|
<h3 class="section-bar">Public Class methods</h3>
|
115
115
|
|
116
|
-
<div id="method-
|
117
|
-
<a name="
|
116
|
+
<div id="method-M000243" class="method-detail">
|
117
|
+
<a name="M000243"></a>
|
118
118
|
|
119
119
|
<div class="method-heading">
|
120
|
-
<a href="#
|
120
|
+
<a href="#M000243" class="method-signature">
|
121
121
|
<span class="method-name">new</span><span class="method-args">()</span>
|
122
122
|
</a>
|
123
123
|
</div>
|
124
124
|
|
125
125
|
<div class="method-description">
|
126
126
|
<p><a class="source-toggle" href="#"
|
127
|
-
onclick="toggleCode('
|
128
|
-
<div class="method-source-code" id="
|
127
|
+
onclick="toggleCode('M000243-source');return false;">[Source]</a></p>
|
128
|
+
<div class="method-source-code" id="M000243-source">
|
129
129
|
<pre>
|
130
130
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 4</span>
|
131
131
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -139,19 +139,19 @@
|
|
139
139
|
|
140
140
|
<h3 class="section-bar">Public Instance methods</h3>
|
141
141
|
|
142
|
-
<div id="method-
|
143
|
-
<a name="
|
142
|
+
<div id="method-M000244" class="method-detail">
|
143
|
+
<a name="M000244"></a>
|
144
144
|
|
145
145
|
<div class="method-heading">
|
146
|
-
<a href="#
|
146
|
+
<a href="#M000244" class="method-signature">
|
147
147
|
<span class="method-name">close</span><span class="method-args">()</span>
|
148
148
|
</a>
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div class="method-description">
|
152
152
|
<p><a class="source-toggle" href="#"
|
153
|
-
onclick="toggleCode('
|
154
|
-
<div class="method-source-code" id="
|
153
|
+
onclick="toggleCode('M000244-source');return false;">[Source]</a></p>
|
154
|
+
<div class="method-source-code" id="M000244-source">
|
155
155
|
<pre>
|
156
156
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 9</span>
|
157
157
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -163,19 +163,19 @@
|
|
163
163
|
</div>
|
164
164
|
</div>
|
165
165
|
|
166
|
-
<div id="method-
|
167
|
-
<a name="
|
166
|
+
<div id="method-M000246" class="method-detail">
|
167
|
+
<a name="M000246"></a>
|
168
168
|
|
169
169
|
<div class="method-heading">
|
170
|
-
<a href="#
|
170
|
+
<a href="#M000246" class="method-signature">
|
171
171
|
<span class="method-name">nest</span><span class="method-args">(&block)</span>
|
172
172
|
</a>
|
173
173
|
</div>
|
174
174
|
|
175
175
|
<div class="method-description">
|
176
176
|
<p><a class="source-toggle" href="#"
|
177
|
-
onclick="toggleCode('
|
178
|
-
<div class="method-source-code" id="
|
177
|
+
onclick="toggleCode('M000246-source');return false;">[Source]</a></p>
|
178
|
+
<div class="method-source-code" id="M000246-source">
|
179
179
|
<pre>
|
180
180
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 25</span>
|
181
181
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nest</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -190,19 +190,19 @@
|
|
190
190
|
</div>
|
191
191
|
</div>
|
192
192
|
|
193
|
-
<div id="method-
|
194
|
-
<a name="
|
193
|
+
<div id="method-M000245" class="method-detail">
|
194
|
+
<a name="M000245"></a>
|
195
195
|
|
196
196
|
<div class="method-heading">
|
197
|
-
<a href="#
|
197
|
+
<a href="#M000245" class="method-signature">
|
198
198
|
<span class="method-name">set_brush</span><span class="method-args">(brush)</span>
|
199
199
|
</a>
|
200
200
|
</div>
|
201
201
|
|
202
202
|
<div class="method-description">
|
203
203
|
<p><a class="source-toggle" href="#"
|
204
|
-
onclick="toggleCode('
|
205
|
-
<div class="method-source-code" id="
|
204
|
+
onclick="toggleCode('M000245-source');return false;">[Source]</a></p>
|
205
|
+
<div class="method-source-code" id="M000245-source">
|
206
206
|
<pre>
|
207
207
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 14</span>
|
208
208
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_brush</span>(<span class="ruby-identifier">brush</span>)
|
@@ -87,7 +87,7 @@
|
|
87
87
|
<div id="description">
|
88
88
|
<p>
|
89
89
|
The base class of all components. You should at least overwrite method <a
|
90
|
-
href="Component.html#
|
90
|
+
href="Component.html#M000254">render</a> in your own subclasses.
|
91
91
|
</p>
|
92
92
|
|
93
93
|
</div>
|
@@ -111,24 +111,24 @@ href="Component.html#M000250">render</a> in your own subclasses.
|
|
111
111
|
<h3 class="section-bar">Methods</h3>
|
112
112
|
|
113
113
|
<div class="name-list">
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
119
|
-
<a href="#
|
120
|
-
<a href="#
|
121
|
-
<a href="#
|
122
|
-
<a href="#
|
123
|
-
<a href="#
|
124
|
-
<a href="#
|
125
|
-
<a href="#
|
126
|
-
<a href="#
|
127
|
-
<a href="#
|
128
|
-
<a href="#
|
129
|
-
<a href="#
|
130
|
-
<a href="#
|
131
|
-
<a href="#
|
114
|
+
<a href="#M000259">add_child</a>
|
115
|
+
<a href="#M000263">add_decoration</a>
|
116
|
+
<a href="#M000269">answer</a>
|
117
|
+
<a href="#M000267">backtrack_state</a>
|
118
|
+
<a href="#M000266">backtrack_state_chain</a>
|
119
|
+
<a href="#M000268">call</a>
|
120
|
+
<a href="#M000270">call</a>
|
121
|
+
<a href="#M000258">children</a>
|
122
|
+
<a href="#M000260">decoration</a>
|
123
|
+
<a href="#M000261">decoration=</a>
|
124
|
+
<a href="#M000253">do_render_chain</a>
|
125
|
+
<a href="#M000262">each_decoration</a>
|
126
|
+
<a href="#M000257">initialize</a>
|
127
|
+
<a href="#M000256">process_callbacks</a>
|
128
|
+
<a href="#M000255">process_callbacks_chain</a>
|
129
|
+
<a href="#M000264">remove_decoration</a>
|
130
|
+
<a href="#M000265">remove_decoration_if</a>
|
131
|
+
<a href="#M000254">render</a>
|
132
132
|
</div>
|
133
133
|
</div>
|
134
134
|
|
@@ -164,11 +164,11 @@ href="Component.html#M000250">render</a> in your own subclasses.
|
|
164
164
|
<div id="methods">
|
165
165
|
<h3 class="section-bar">Public Instance methods</h3>
|
166
166
|
|
167
|
-
<div id="method-
|
168
|
-
<a name="
|
167
|
+
<div id="method-M000253" class="method-detail">
|
168
|
+
<a name="M000253"></a>
|
169
169
|
|
170
170
|
<div class="method-heading">
|
171
|
-
<a href="#
|
171
|
+
<a href="#M000253" class="method-signature">
|
172
172
|
<span class="method-name">do_render_chain</span><span class="method-args">(rendering_context)</span>
|
173
173
|
</a>
|
174
174
|
</div>
|
@@ -176,7 +176,7 @@ href="Component.html#M000250">render</a> in your own subclasses.
|
|
176
176
|
<div class="method-description">
|
177
177
|
<p>
|
178
178
|
Starts rendering the decoration chain by calling method <a
|
179
|
-
href="Presenter.html#
|
179
|
+
href="Presenter.html#M000288">Presenter#do_render</a> for the first
|
180
180
|
decoration of the component, or calling <em>do_render</em> for the
|
181
181
|
component itself if no decorations were specified.
|
182
182
|
</p>
|
@@ -186,8 +186,8 @@ component itself if no decorations were specified.
|
|
186
186
|
</dd>
|
187
187
|
</dl>
|
188
188
|
<p><a class="source-toggle" href="#"
|
189
|
-
onclick="toggleCode('
|
190
|
-
<div class="method-source-code" id="
|
189
|
+
onclick="toggleCode('M000253-source');return false;">[Source]</a></p>
|
190
|
+
<div class="method-source-code" id="M000253-source">
|
191
191
|
<pre>
|
192
192
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 19</span>
|
193
193
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">do_render_chain</span>(<span class="ruby-identifier">rendering_context</span>)
|
@@ -198,11 +198,11 @@ component itself if no decorations were specified.
|
|
198
198
|
</div>
|
199
199
|
</div>
|
200
200
|
|
201
|
-
<div id="method-
|
202
|
-
<a name="
|
201
|
+
<div id="method-M000254" class="method-detail">
|
202
|
+
<a name="M000254"></a>
|
203
203
|
|
204
204
|
<div class="method-heading">
|
205
|
-
<a href="#
|
205
|
+
<a href="#M000254" class="method-signature">
|
206
206
|
<span class="method-name">render</span><span class="method-args">()</span>
|
207
207
|
</a>
|
208
208
|
</div>
|
@@ -219,8 +219,8 @@ view. By default this method does nothing!
|
|
219
219
|
Use the current renderer as returned by renderer or it’s short-cut r.
|
220
220
|
</p>
|
221
221
|
<p><a class="source-toggle" href="#"
|
222
|
-
onclick="toggleCode('
|
223
|
-
<div class="method-source-code" id="
|
222
|
+
onclick="toggleCode('M000254-source');return false;">[Source]</a></p>
|
223
|
+
<div class="method-source-code" id="M000254-source">
|
224
224
|
<pre>
|
225
225
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 30</span>
|
226
226
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>
|
@@ -249,11 +249,11 @@ Use the current renderer as returned by renderer or it’s short-cut r.
|
|
249
249
|
<div id="methods">
|
250
250
|
<h3 class="section-bar">Public Instance methods</h3>
|
251
251
|
|
252
|
-
<div id="method-
|
253
|
-
<a name="
|
252
|
+
<div id="method-M000256" class="method-detail">
|
253
|
+
<a name="M000256"></a>
|
254
254
|
|
255
255
|
<div class="method-heading">
|
256
|
-
<a href="#
|
256
|
+
<a href="#M000256" class="method-signature">
|
257
257
|
<span class="method-name">process_callbacks</span><span class="method-args">(callback_stream)</span>
|
258
258
|
</a>
|
259
259
|
</div>
|
@@ -273,8 +273,8 @@ processed/invoked before any of the action callbacks are processed/invoked.
|
|
273
273
|
</dd>
|
274
274
|
</dl>
|
275
275
|
<p><a class="source-toggle" href="#"
|
276
|
-
onclick="toggleCode('
|
277
|
-
<div class="method-source-code" id="
|
276
|
+
onclick="toggleCode('M000256-source');return false;">[Source]</a></p>
|
277
|
+
<div class="method-source-code" id="M000256-source">
|
278
278
|
<pre>
|
279
279
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 59</span>
|
280
280
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callback_stream</span>)
|
@@ -290,11 +290,11 @@ processed/invoked before any of the action callbacks are processed/invoked.
|
|
290
290
|
</div>
|
291
291
|
</div>
|
292
292
|
|
293
|
-
<div id="method-
|
294
|
-
<a name="
|
293
|
+
<div id="method-M000255" class="method-detail">
|
294
|
+
<a name="M000255"></a>
|
295
295
|
|
296
296
|
<div class="method-heading">
|
297
|
-
<a href="#
|
297
|
+
<a href="#M000255" class="method-signature">
|
298
298
|
<span class="method-name">process_callbacks_chain</span><span class="method-args">(callback_stream)</span>
|
299
299
|
</a>
|
300
300
|
</div>
|
@@ -302,7 +302,7 @@ processed/invoked before any of the action callbacks are processed/invoked.
|
|
302
302
|
<div class="method-description">
|
303
303
|
<p>
|
304
304
|
Starts processing the callbacks for the decoration chain by invoking method
|
305
|
-
<a href="Component.html#
|
305
|
+
<a href="Component.html#M000256">process_callbacks</a> of the first
|
306
306
|
decoration or the component itself if no decorations were specified.
|
307
307
|
</p>
|
308
308
|
<dl>
|
@@ -311,8 +311,8 @@ decoration or the component itself if no decorations were specified.
|
|
311
311
|
</dd>
|
312
312
|
</dl>
|
313
313
|
<p><a class="source-toggle" href="#"
|
314
|
-
onclick="toggleCode('
|
315
|
-
<div class="method-source-code" id="
|
314
|
+
onclick="toggleCode('M000255-source');return false;">[Source]</a></p>
|
315
|
+
<div class="method-source-code" id="M000255-source">
|
316
316
|
<pre>
|
317
317
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 46</span>
|
318
318
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks_chain</span>(<span class="ruby-identifier">callback_stream</span>)
|
@@ -342,11 +342,11 @@ decoration or the component itself if no decorations were specified.
|
|
342
342
|
<div id="methods">
|
343
343
|
<h3 class="section-bar">Protected Instance methods</h3>
|
344
344
|
|
345
|
-
<div id="method-
|
346
|
-
<a name="
|
345
|
+
<div id="method-M000257" class="method-detail">
|
346
|
+
<a name="M000257"></a>
|
347
347
|
|
348
348
|
<div class="method-heading">
|
349
|
-
<a href="#
|
349
|
+
<a href="#M000257" class="method-signature">
|
350
350
|
<span class="method-name">initialize</span><span class="method-args">()</span>
|
351
351
|
</a>
|
352
352
|
</div>
|
@@ -360,8 +360,8 @@ Call this method from your own components’ <em>initialize</em> method
|
|
360
360
|
using <tt>super</tt>, before setting up anything else!
|
361
361
|
</p>
|
362
362
|
<p><a class="source-toggle" href="#"
|
363
|
-
onclick="toggleCode('
|
364
|
-
<div class="method-source-code" id="
|
363
|
+
onclick="toggleCode('M000257-source');return false;">[Source]</a></p>
|
364
|
+
<div class="method-source-code" id="M000257-source">
|
365
365
|
<pre>
|
366
366
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 79</span>
|
367
367
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>() <span class="ruby-comment cmt"># :notnew:</span>
|
@@ -392,11 +392,11 @@ using <tt>super</tt>, before setting up anything else!
|
|
392
392
|
<div id="methods">
|
393
393
|
<h3 class="section-bar">Protected Instance methods</h3>
|
394
394
|
|
395
|
-
<div id="method-
|
396
|
-
<a name="
|
395
|
+
<div id="method-M000259" class="method-detail">
|
396
|
+
<a name="M000259"></a>
|
397
397
|
|
398
398
|
<div class="method-heading">
|
399
|
-
<a href="#
|
399
|
+
<a href="#M000259" class="method-signature">
|
400
400
|
<span class="method-name">add_child</span><span class="method-args">(child)</span>
|
401
401
|
</a>
|
402
402
|
</div>
|
@@ -425,8 +425,8 @@ course only if you want backtracking at all):
|
|
425
425
|
end
|
426
426
|
</pre>
|
427
427
|
<p><a class="source-toggle" href="#"
|
428
|
-
onclick="toggleCode('
|
429
|
-
<div class="method-source-code" id="
|
428
|
+
onclick="toggleCode('M000259-source');return false;">[Source]</a></p>
|
429
|
+
<div class="method-source-code" id="M000259-source">
|
430
430
|
<pre>
|
431
431
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 115</span>
|
432
432
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_child</span>(<span class="ruby-identifier">child</span>)
|
@@ -438,11 +438,11 @@ course only if you want backtracking at all):
|
|
438
438
|
</div>
|
439
439
|
</div>
|
440
440
|
|
441
|
-
<div id="method-
|
442
|
-
<a name="
|
441
|
+
<div id="method-M000258" class="method-detail">
|
442
|
+
<a name="M000258"></a>
|
443
443
|
|
444
444
|
<div class="method-heading">
|
445
|
-
<a href="#
|
445
|
+
<a href="#M000258" class="method-signature">
|
446
446
|
<span class="method-name">children</span><span class="method-args">()</span>
|
447
447
|
</a>
|
448
448
|
</div>
|
@@ -452,8 +452,8 @@ course only if you want backtracking at all):
|
|
452
452
|
Returns all direct child components collected in an array.
|
453
453
|
</p>
|
454
454
|
<p><a class="source-toggle" href="#"
|
455
|
-
onclick="toggleCode('
|
456
|
-
<div class="method-source-code" id="
|
455
|
+
onclick="toggleCode('M000258-source');return false;">[Source]</a></p>
|
456
|
+
<div class="method-source-code" id="M000258-source">
|
457
457
|
<pre>
|
458
458
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 92</span>
|
459
459
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">children</span>
|
@@ -483,11 +483,11 @@ Returns all direct child components collected in an array.
|
|
483
483
|
<div id="methods">
|
484
484
|
<h3 class="section-bar">Public Instance methods</h3>
|
485
485
|
|
486
|
-
<div id="method-
|
487
|
-
<a name="
|
486
|
+
<div id="method-M000263" class="method-detail">
|
487
|
+
<a name="M000263"></a>
|
488
488
|
|
489
489
|
<div class="method-heading">
|
490
|
-
<a href="#
|
490
|
+
<a href="#M000263" class="method-signature">
|
491
491
|
<span class="method-name">add_decoration</span><span class="method-args">(d)</span>
|
492
492
|
</a>
|
493
493
|
</div>
|
@@ -505,8 +505,8 @@ global decorations.
|
|
505
505
|
Returns: <tt>self</tt>
|
506
506
|
</p>
|
507
507
|
<p><a class="source-toggle" href="#"
|
508
|
-
onclick="toggleCode('
|
509
|
-
<div class="method-source-code" id="
|
508
|
+
onclick="toggleCode('M000263-source');return false;">[Source]</a></p>
|
509
|
+
<div class="method-source-code" id="M000263-source">
|
510
510
|
<pre>
|
511
511
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 158</span>
|
512
512
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_decoration</span>(<span class="ruby-identifier">d</span>)
|
@@ -540,11 +540,11 @@ Returns: <tt>self</tt>
|
|
540
540
|
</div>
|
541
541
|
</div>
|
542
542
|
|
543
|
-
<div id="method-
|
544
|
-
<a name="
|
543
|
+
<div id="method-M000260" class="method-detail">
|
544
|
+
<a name="M000260"></a>
|
545
545
|
|
546
546
|
<div class="method-heading">
|
547
|
-
<a href="#
|
547
|
+
<a href="#M000260" class="method-signature">
|
548
548
|
<span class="method-name">decoration</span><span class="method-args">()</span>
|
549
549
|
</a>
|
550
550
|
</div>
|
@@ -555,8 +555,8 @@ Returns the first decoration from the component’s decoration chain,
|
|
555
555
|
or <tt>self</tt> if no decorations were specified for the component.
|
556
556
|
</p>
|
557
557
|
<p><a class="source-toggle" href="#"
|
558
|
-
onclick="toggleCode('
|
559
|
-
<div class="method-source-code" id="
|
558
|
+
onclick="toggleCode('M000260-source');return false;">[Source]</a></p>
|
559
|
+
<div class="method-source-code" id="M000260-source">
|
560
560
|
<pre>
|
561
561
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 129</span>
|
562
562
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decoration</span>
|
@@ -567,11 +567,11 @@ or <tt>self</tt> if no decorations were specified for the component.
|
|
567
567
|
</div>
|
568
568
|
</div>
|
569
569
|
|
570
|
-
<div id="method-
|
571
|
-
<a name="
|
570
|
+
<div id="method-M000261" class="method-detail">
|
571
|
+
<a name="M000261"></a>
|
572
572
|
|
573
573
|
<div class="method-heading">
|
574
|
-
<a href="#
|
574
|
+
<a href="#M000261" class="method-signature">
|
575
575
|
<span class="method-name">decoration=</span><span class="method-args">(d)</span>
|
576
576
|
</a>
|
577
577
|
</div>
|
@@ -581,8 +581,8 @@ or <tt>self</tt> if no decorations were specified for the component.
|
|
581
581
|
Set the pointer to the first decoration to <tt>d</tt>.
|
582
582
|
</p>
|
583
583
|
<p><a class="source-toggle" href="#"
|
584
|
-
onclick="toggleCode('
|
585
|
-
<div class="method-source-code" id="
|
584
|
+
onclick="toggleCode('M000261-source');return false;">[Source]</a></p>
|
585
|
+
<div class="method-source-code" id="M000261-source">
|
586
586
|
<pre>
|
587
587
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 135</span>
|
588
588
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decoration=</span>(<span class="ruby-identifier">d</span>)
|
@@ -593,11 +593,11 @@ Set the pointer to the first decoration to <tt>d</tt>.
|
|
593
593
|
</div>
|
594
594
|
</div>
|
595
595
|
|
596
|
-
<div id="method-
|
597
|
-
<a name="
|
596
|
+
<div id="method-M000262" class="method-detail">
|
597
|
+
<a name="M000262"></a>
|
598
598
|
|
599
599
|
<div class="method-heading">
|
600
|
-
<a href="#
|
600
|
+
<a href="#M000262" class="method-signature">
|
601
601
|
<span class="method-name">each_decoration</span><span class="method-args">( {|decoration| ...}</span>
|
602
602
|
</a>
|
603
603
|
</div>
|
@@ -607,8 +607,8 @@ Set the pointer to the first decoration to <tt>d</tt>.
|
|
607
607
|
Iterates over all decorations (note that the component itself is excluded).
|
608
608
|
</p>
|
609
609
|
<p><a class="source-toggle" href="#"
|
610
|
-
onclick="toggleCode('
|
611
|
-
<div class="method-source-code" id="
|
610
|
+
onclick="toggleCode('M000262-source');return false;">[Source]</a></p>
|
611
|
+
<div class="method-source-code" id="M000262-source">
|
612
612
|
<pre>
|
613
613
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 141</span>
|
614
614
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_decoration</span> <span class="ruby-comment cmt"># :yields: decoration</span>
|
@@ -624,11 +624,11 @@ Iterates over all decorations (note that the component itself is excluded).
|
|
624
624
|
</div>
|
625
625
|
</div>
|
626
626
|
|
627
|
-
<div id="method-
|
628
|
-
<a name="
|
627
|
+
<div id="method-M000264" class="method-detail">
|
628
|
+
<a name="M000264"></a>
|
629
629
|
|
630
630
|
<div class="method-heading">
|
631
|
-
<a href="#
|
631
|
+
<a href="#M000264" class="method-signature">
|
632
632
|
<span class="method-name">remove_decoration</span><span class="method-args">(d)</span>
|
633
633
|
</a>
|
634
634
|
</div>
|
@@ -642,8 +642,8 @@ Returns the removed decoration or <tt>nil</tt> if it did not exist in the
|
|
642
642
|
decoration chain.
|
643
643
|
</p>
|
644
644
|
<p><a class="source-toggle" href="#"
|
645
|
-
onclick="toggleCode('
|
646
|
-
<div class="method-source-code" id="
|
645
|
+
onclick="toggleCode('M000264-source');return false;">[Source]</a></p>
|
646
|
+
<div class="method-source-code" id="M000264-source">
|
647
647
|
<pre>
|
648
648
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 190</span>
|
649
649
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_decoration</span>(<span class="ruby-identifier">d</span>)
|
@@ -668,11 +668,11 @@ decoration chain.
|
|
668
668
|
</div>
|
669
669
|
</div>
|
670
670
|
|
671
|
-
<div id="method-
|
672
|
-
<a name="
|
671
|
+
<div id="method-M000265" class="method-detail">
|
672
|
+
<a name="M000265"></a>
|
673
673
|
|
674
674
|
<div class="method-heading">
|
675
|
-
<a href="#
|
675
|
+
<a href="#M000265" class="method-signature">
|
676
676
|
<span class="method-name">remove_decoration_if</span><span class="method-args">( {|decoration| ...}</span>
|
677
677
|
</a>
|
678
678
|
</div>
|
@@ -688,8 +688,8 @@ Example (removes all decorations of class <tt>HaloDecoration</tt>):
|
|
688
688
|
remove_decoration_if {|d| d.class == HaloDecoration}
|
689
689
|
</pre>
|
690
690
|
<p><a class="source-toggle" href="#"
|
691
|
-
onclick="toggleCode('
|
692
|
-
<div class="method-source-code" id="
|
691
|
+
onclick="toggleCode('M000265-source');return false;">[Source]</a></p>
|
692
|
+
<div class="method-source-code" id="M000265-source">
|
693
693
|
<pre>
|
694
694
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 215</span>
|
695
695
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_decoration_if</span> <span class="ruby-comment cmt"># :yields: decoration</span>
|
@@ -721,11 +721,11 @@ Example (removes all decorations of class <tt>HaloDecoration</tt>):
|
|
721
721
|
<div id="methods">
|
722
722
|
<h3 class="section-bar">Public Instance methods</h3>
|
723
723
|
|
724
|
-
<div id="method-
|
725
|
-
<a name="
|
724
|
+
<div id="method-M000267" class="method-detail">
|
725
|
+
<a name="M000267"></a>
|
726
726
|
|
727
727
|
<div class="method-heading">
|
728
|
-
<a href="#
|
728
|
+
<a href="#M000267" class="method-signature">
|
729
729
|
<span class="method-name">backtrack_state</span><span class="method-args">(snapshot)</span>
|
730
730
|
</a>
|
731
731
|
</div>
|
@@ -752,7 +752,7 @@ the decoration-object itself!).
|
|
752
752
|
<p>
|
753
753
|
For example if you dynamically add children to your component, you might
|
754
754
|
want to backtrack the children array. Therefore you simply pass it to the
|
755
|
-
<a href="Snapshot.html#
|
755
|
+
<a href="Snapshot.html#M000142">Snapshot#add</a> method:
|
756
756
|
</p>
|
757
757
|
<pre>
|
758
758
|
def backtrack_state(snapshot)
|
@@ -774,8 +774,8 @@ as argument.
|
|
774
774
|
</dd>
|
775
775
|
</dl>
|
776
776
|
<p><a class="source-toggle" href="#"
|
777
|
-
onclick="toggleCode('
|
778
|
-
<div class="method-source-code" id="
|
777
|
+
onclick="toggleCode('M000267-source');return false;">[Source]</a></p>
|
778
|
+
<div class="method-source-code" id="M000267-source">
|
779
779
|
<pre>
|
780
780
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 272</span>
|
781
781
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backtrack_state</span>(<span class="ruby-identifier">snapshot</span>)
|
@@ -787,11 +787,11 @@ as argument.
|
|
787
787
|
</div>
|
788
788
|
</div>
|
789
789
|
|
790
|
-
<div id="method-
|
791
|
-
<a name="
|
790
|
+
<div id="method-M000266" class="method-detail">
|
791
|
+
<a name="M000266"></a>
|
792
792
|
|
793
793
|
<div class="method-heading">
|
794
|
-
<a href="#
|
794
|
+
<a href="#M000266" class="method-signature">
|
795
795
|
<span class="method-name">backtrack_state_chain</span><span class="method-args">(snapshot)</span>
|
796
796
|
</a>
|
797
797
|
</div>
|
@@ -799,11 +799,11 @@ as argument.
|
|
799
799
|
<div class="method-description">
|
800
800
|
<p>
|
801
801
|
Starts the backtrack-state phase for the decoration chain, by invoking
|
802
|
-
method <a href="Component.html#
|
802
|
+
method <a href="Component.html#M000267">backtrack_state</a> of the first
|
803
803
|
decoration or the component itself if no decorations were specified.
|
804
804
|
</p>
|
805
805
|
<p>
|
806
|
-
See <a href="Component.html#
|
806
|
+
See <a href="Component.html#M000267">backtrack_state</a> for details.
|
807
807
|
</p>
|
808
808
|
<dl>
|
809
809
|
<dt><tt>snapshot</tt></dt><dd>An object of class <a href="Snapshot.html">Snapshot</a>
|
@@ -811,8 +811,8 @@ See <a href="Component.html#M000263">backtrack_state</a> for details.
|
|
811
811
|
</dd>
|
812
812
|
</dl>
|
813
813
|
<p><a class="source-toggle" href="#"
|
814
|
-
onclick="toggleCode('
|
815
|
-
<div class="method-source-code" id="
|
814
|
+
onclick="toggleCode('M000266-source');return false;">[Source]</a></p>
|
815
|
+
<div class="method-source-code" id="M000266-source">
|
816
816
|
<pre>
|
817
817
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 236</span>
|
818
818
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backtrack_state_chain</span>(<span class="ruby-identifier">snapshot</span>)
|
@@ -848,11 +848,11 @@ See <a href="Component.html#M000263">backtrack_state</a> for details.
|
|
848
848
|
<div id="methods">
|
849
849
|
<h3 class="section-bar">Protected Instance methods</h3>
|
850
850
|
|
851
|
-
<div id="method-
|
852
|
-
<a name="
|
851
|
+
<div id="method-M000269" class="method-detail">
|
852
|
+
<a name="M000269"></a>
|
853
853
|
|
854
854
|
<div class="method-heading">
|
855
|
-
<a href="#
|
855
|
+
<a href="#M000269" class="method-signature">
|
856
856
|
<span class="method-name">answer</span><span class="method-args">(*args)</span>
|
857
857
|
</a>
|
858
858
|
</div>
|
@@ -862,15 +862,15 @@ See <a href="Component.html#M000263">backtrack_state</a> for details.
|
|
862
862
|
Return from a called component.
|
863
863
|
</p>
|
864
864
|
<p>
|
865
|
-
NOTE that <a href="Component.html#
|
865
|
+
NOTE that <a href="Component.html#M000269">answer</a> never returns.
|
866
866
|
</p>
|
867
867
|
<p>
|
868
|
-
See <a href="Component.html#
|
868
|
+
See <a href="Component.html#M000268">call</a> for a detailed description of
|
869
869
|
the call/answer mechanism.
|
870
870
|
</p>
|
871
871
|
<p><a class="source-toggle" href="#"
|
872
|
-
onclick="toggleCode('
|
873
|
-
<div class="method-source-code" id="
|
872
|
+
onclick="toggleCode('M000269-source');return false;">[Source]</a></p>
|
873
|
+
<div class="method-source-code" id="M000269-source">
|
874
874
|
<pre>
|
875
875
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 350</span>
|
876
876
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">answer</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -881,11 +881,11 @@ the call/answer mechanism.
|
|
881
881
|
</div>
|
882
882
|
</div>
|
883
883
|
|
884
|
-
<div id="method-
|
885
|
-
<a name="
|
884
|
+
<div id="method-M000268" class="method-detail">
|
885
|
+
<a name="M000268"></a>
|
886
886
|
|
887
887
|
<div class="method-heading">
|
888
|
-
<a href="#
|
888
|
+
<a href="#M000268" class="method-signature">
|
889
889
|
<span class="method-name">call</span><span class="method-args">(component, return_callback=nil, *args)</span>
|
890
890
|
</a>
|
891
891
|
</div>
|
@@ -894,14 +894,14 @@ the call/answer mechanism.
|
|
894
894
|
<p>
|
895
895
|
Call another component. The calling component is neither rendered nor are
|
896
896
|
it’s callbacks processed until the called component answers using
|
897
|
-
method <a href="Component.html#
|
897
|
+
method <a href="Component.html#M000269">answer</a>.
|
898
898
|
</p>
|
899
899
|
<dl>
|
900
900
|
<dt><tt>component</tt></dt><dd>The component to be called.
|
901
901
|
|
902
902
|
</dd>
|
903
903
|
<dt><tt>return_callback</tt></dt><dd>Is invoked when the called component answers. Either a symbol or any object
|
904
|
-
that responds to <a href="Component.html#
|
904
|
+
that responds to <a href="Component.html#M000268">call</a>. If it’s a
|
905
905
|
symbol, then the corresponding method of the current component will be
|
906
906
|
called.
|
907
907
|
|
@@ -934,17 +934,17 @@ we’d break compatibility with the implementation using continuations.
|
|
934
934
|
</p>
|
935
935
|
<p>
|
936
936
|
When at a later point in time the called component invokes <a
|
937
|
-
href="Component.html#
|
937
|
+
href="Component.html#M000269">answer</a>, this will throw a
|
938
938
|
<em>:wee_answer</em> exception which is catched in the <a
|
939
939
|
href="AnswerDecoration.html">AnswerDecoration</a>. The <a
|
940
940
|
href="AnswerDecoration.html">AnswerDecoration</a> then invokes the
|
941
941
|
<tt>on_answer</tt> callback which cleans up the decorations we added during
|
942
|
-
<a href="Component.html#
|
942
|
+
<a href="Component.html#M000268">call</a>, and finally passes control to
|
943
943
|
the <tt>return_callback</tt>.
|
944
944
|
</p>
|
945
945
|
<p><a class="source-toggle" href="#"
|
946
|
-
onclick="toggleCode('
|
947
|
-
<div class="method-source-code" id="
|
946
|
+
onclick="toggleCode('M000268-source');return false;">[Source]</a></p>
|
947
|
+
<div class="method-source-code" id="M000268-source">
|
948
948
|
<pre>
|
949
949
|
<span class="ruby-comment cmt"># File lib/wee/core/component.rb, line 321</span>
|
950
950
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">component</span>, <span class="ruby-identifier">return_callback</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -978,11 +978,11 @@ the <tt>return_callback</tt>.
|
|
978
978
|
<div id="methods">
|
979
979
|
<h3 class="section-bar">Protected Instance methods</h3>
|
980
980
|
|
981
|
-
<div id="method-
|
982
|
-
<a name="
|
981
|
+
<div id="method-M000270" class="method-detail">
|
982
|
+
<a name="M000270"></a>
|
983
983
|
|
984
984
|
<div class="method-heading">
|
985
|
-
<a href="#
|
985
|
+
<a href="#M000270" class="method-signature">
|
986
986
|
<span class="method-name">call</span><span class="method-args">(component, return_callback=:use_continuation, *additional_args)</span>
|
987
987
|
</a>
|
988
988
|
</div>
|
@@ -991,7 +991,7 @@ the <tt>return_callback</tt>.
|
|
991
991
|
<p>
|
992
992
|
Call another component. The calling component is neither rendered nor are
|
993
993
|
it’s callbacks processed until the called component answers using
|
994
|
-
method <a href="Component.html#
|
994
|
+
method <a href="Component.html#M000269">answer</a>.
|
995
995
|
</p>
|
996
996
|
<dl>
|
997
997
|
<dt><tt>component</tt></dt><dd>The component to be called.
|
@@ -1011,15 +1011,15 @@ calling component (self), which delegates to the component to be called
|
|
1011
1011
|
href="Session.html">Session</a> by throwing <em>:wee_back_to_session</em>.
|
1012
1012
|
This means, that there is only ever one action callback invoked per
|
1013
1013
|
request. When at a later point in time the called component invokes <a
|
1014
|
-
href="Component.html#
|
1014
|
+
href="Component.html#M000269">answer</a>, this will throw a
|
1015
1015
|
<em>:wee_answer</em> exception which is catched in the <a
|
1016
1016
|
href="AnswerDecoration.html">AnswerDecoration</a>. The <a
|
1017
1017
|
href="AnswerDecoration.html">AnswerDecoration</a> then jumps back to the
|
1018
1018
|
continuation we created at the beginning, and finally method <a
|
1019
|
-
href="Component.html#
|
1019
|
+
href="Component.html#M000268">call</a> returns.
|
1020
1020
|
</p>
|
1021
1021
|
<p>
|
1022
|
-
Note that <a href="Component.html#
|
1022
|
+
Note that <a href="Component.html#M000268">call</a> returns to an
|
1023
1023
|
"old" stack-frame from a previous request. That is why we throw
|
1024
1024
|
<em>:wee_back_to_session</em> after invoking an action callback, and
|
1025
1025
|
that’s why only ever one is invoked. We could remove this limitation
|
@@ -1027,8 +1027,8 @@ without problems, but then there would be a difference between those action
|
|
1027
1027
|
callbacks that call other components and those that do not.
|
1028
1028
|
</p>
|
1029
1029
|
<p><a class="source-toggle" href="#"
|
1030
|
-
onclick="toggleCode('
|
1031
|
-
<div class="method-source-code" id="
|
1030
|
+
onclick="toggleCode('M000270-source');return false;">[Source]</a></p>
|
1031
|
+
<div class="method-source-code" id="M000270-source">
|
1032
1032
|
<pre>
|
1033
1033
|
<span class="ruby-comment cmt"># File lib/wee/continuation/core/component.rb, line 36</span>
|
1034
1034
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">component</span>, <span class="ruby-identifier">return_callback</span>=<span class="ruby-identifier">:use_continuation</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">additional_args</span>)
|