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
@@ -99,7 +99,7 @@ The format of the internal datastructure is:
|
|
99
99
|
<div id="contents-list">
|
100
100
|
<h3 class="section-bar">Contents</h3>
|
101
101
|
<ul>
|
102
|
-
<li><a href="#
|
102
|
+
<li><a href="#SEC00091">Friend methods for Wee::CallbackStream</a></li>
|
103
103
|
</ul>
|
104
104
|
</div>
|
105
105
|
|
@@ -107,11 +107,11 @@ 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="#
|
110
|
+
<a href="#M000160">all_of_type</a>
|
111
|
+
<a href="#M000159">get_callback_for</a>
|
112
|
+
<a href="#M000158">get_ids_for</a>
|
113
|
+
<a href="#M000156">new</a>
|
114
|
+
<a href="#M000157">register_for</a>
|
115
115
|
</div>
|
116
116
|
</div>
|
117
117
|
|
@@ -133,19 +133,19 @@ The format of the internal datastructure is:
|
|
133
133
|
<div id="methods">
|
134
134
|
<h3 class="section-bar">Public Class methods</h3>
|
135
135
|
|
136
|
-
<div id="method-
|
137
|
-
<a name="
|
136
|
+
<div id="method-M000156" class="method-detail">
|
137
|
+
<a name="M000156"></a>
|
138
138
|
|
139
139
|
<div class="method-heading">
|
140
|
-
<a href="#
|
140
|
+
<a href="#M000156" class="method-signature">
|
141
141
|
<span class="method-name">new</span><span class="method-args">(id_generator)</span>
|
142
142
|
</a>
|
143
143
|
</div>
|
144
144
|
|
145
145
|
<div class="method-description">
|
146
146
|
<p><a class="source-toggle" href="#"
|
147
|
-
onclick="toggleCode('
|
148
|
-
<div class="method-source-code" id="
|
147
|
+
onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
|
148
|
+
<div class="method-source-code" id="M000156-source">
|
149
149
|
<pre>
|
150
150
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 11</span>
|
151
151
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id_generator</span>)
|
@@ -160,11 +160,11 @@ The format of the internal datastructure is:
|
|
160
160
|
|
161
161
|
<h3 class="section-bar">Public Instance methods</h3>
|
162
162
|
|
163
|
-
<div id="method-
|
164
|
-
<a name="
|
163
|
+
<div id="method-M000157" class="method-detail">
|
164
|
+
<a name="M000157"></a>
|
165
165
|
|
166
166
|
<div class="method-heading">
|
167
|
-
<a href="#
|
167
|
+
<a href="#M000157" class="method-signature">
|
168
168
|
<span class="method-name">register_for</span><span class="method-args">(object, type=nil, &callback)</span>
|
169
169
|
</a>
|
170
170
|
</div>
|
@@ -175,8 +175,8 @@ Register <tt>callback</tt> for <tt>object</tt> under <tt>type</tt> and
|
|
175
175
|
return a unique callback id.
|
176
176
|
</p>
|
177
177
|
<p><a class="source-toggle" href="#"
|
178
|
-
onclick="toggleCode('
|
179
|
-
<div class="method-source-code" id="
|
178
|
+
onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
|
179
|
+
<div class="method-source-code" id="M000157-source">
|
180
180
|
<pre>
|
181
181
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 19</span>
|
182
182
|
<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-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">callback</span>)
|
@@ -196,7 +196,7 @@ return a unique callback id.
|
|
196
196
|
|
197
197
|
</div>
|
198
198
|
<div id="section">
|
199
|
-
<h2 class="section-title"><a name="
|
199
|
+
<h2 class="section-title"><a name="SEC00091">Friend methods for Wee::CallbackStream</a></h2>
|
200
200
|
<div class="section-comment">
|
201
201
|
|
202
202
|
</div>
|
@@ -212,26 +212,26 @@ return a unique callback id.
|
|
212
212
|
<div id="methods">
|
213
213
|
<h3 class="section-bar">Public Instance methods</h3>
|
214
214
|
|
215
|
-
<div id="method-
|
216
|
-
<a name="
|
215
|
+
<div id="method-M000160" class="method-detail">
|
216
|
+
<a name="M000160"></a>
|
217
217
|
|
218
218
|
<div class="method-heading">
|
219
|
-
<a href="#
|
219
|
+
<a href="#M000160" class="method-signature">
|
220
220
|
<span class="method-name">all_of_type</span><span class="method-args">(type=nil)</span>
|
221
221
|
</a>
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div class="method-description">
|
225
225
|
<p><a class="source-toggle" href="#"
|
226
|
-
onclick="toggleCode('
|
227
|
-
<div class="method-source-code" id="
|
226
|
+
onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
|
227
|
+
<div class="method-source-code" id="M000160-source">
|
228
228
|
<pre>
|
229
229
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 49</span>
|
230
230
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all_of_type</span>(<span class="ruby-identifier">type</span>=<span class="ruby-keyword kw">nil</span>)
|
231
231
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">c</span> = <span class="ruby-ivar">@callbacks</span>[<span class="ruby-identifier">type</span>]
|
232
232
|
<span class="ruby-identifier">c</span>
|
233
233
|
<span class="ruby-keyword kw">else</span>
|
234
|
-
|
234
|
+
[]
|
235
235
|
<span class="ruby-keyword kw">end</span>
|
236
236
|
<span class="ruby-keyword kw">end</span>
|
237
237
|
</pre>
|
@@ -239,19 +239,19 @@ return a unique callback id.
|
|
239
239
|
</div>
|
240
240
|
</div>
|
241
241
|
|
242
|
-
<div id="method-
|
243
|
-
<a name="
|
242
|
+
<div id="method-M000159" class="method-detail">
|
243
|
+
<a name="M000159"></a>
|
244
244
|
|
245
245
|
<div class="method-heading">
|
246
|
-
<a href="#
|
246
|
+
<a href="#M000159" class="method-signature">
|
247
247
|
<span class="method-name">get_callback_for</span><span class="method-args">(id, type=nil)</span>
|
248
248
|
</a>
|
249
249
|
</div>
|
250
250
|
|
251
251
|
<div class="method-description">
|
252
252
|
<p><a class="source-toggle" href="#"
|
253
|
-
onclick="toggleCode('
|
254
|
-
<div class="method-source-code" id="
|
253
|
+
onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
|
254
|
+
<div class="method-source-code" id="M000159-source">
|
255
255
|
<pre>
|
256
256
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 41</span>
|
257
257
|
<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>=<span class="ruby-keyword kw">nil</span>)
|
@@ -266,19 +266,19 @@ return a unique callback id.
|
|
266
266
|
</div>
|
267
267
|
</div>
|
268
268
|
|
269
|
-
<div id="method-
|
270
|
-
<a name="
|
269
|
+
<div id="method-M000158" class="method-detail">
|
270
|
+
<a name="M000158"></a>
|
271
271
|
|
272
272
|
<div class="method-heading">
|
273
|
-
<a href="#
|
273
|
+
<a href="#M000158" class="method-signature">
|
274
274
|
<span class="method-name">get_ids_for</span><span class="method-args">(object, type=nil)</span>
|
275
275
|
</a>
|
276
276
|
</div>
|
277
277
|
|
278
278
|
<div class="method-description">
|
279
279
|
<p><a class="source-toggle" href="#"
|
280
|
-
onclick="toggleCode('
|
281
|
-
<div class="method-source-code" id="
|
280
|
+
onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
|
281
|
+
<div class="method-source-code" id="M000158-source">
|
282
282
|
<pre>
|
283
283
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 33</span>
|
284
284
|
<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>=<span class="ruby-keyword kw">nil</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="#M000214">all_of_type</a>
|
98
|
+
<a href="#M000212">new</a>
|
99
|
+
<a href="#M000213">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-M000212" class="method-detail">
|
122
|
+
<a name="M000212"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="#
|
125
|
+
<a href="#M000212" 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('M000212-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000212-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 72</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-M000214" class="method-detail">
|
158
|
+
<a name="M000214"></a>
|
159
159
|
|
160
160
|
<div class="method-heading">
|
161
|
-
<a href="#
|
161
|
+
<a href="#M000214" 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('M000214-source');return false;">[Source]</a></p>
|
173
|
+
<div class="method-source-code" id="M000214-source">
|
174
174
|
<pre>
|
175
175
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 89</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-M000213" class="method-detail">
|
189
|
+
<a name="M000213"></a>
|
190
190
|
|
191
191
|
<div class="method-heading">
|
192
|
-
<a href="#
|
192
|
+
<a href="#M000213" 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('M000213-source');return false;">[Source]</a></p>
|
200
|
+
<div class="method-source-code" id="M000213-source">
|
201
201
|
<pre>
|
202
202
|
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 78</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="#M000162">close</a>
|
92
|
+
<a href="#M000164">nest</a>
|
93
|
+
<a href="#M000161">new</a>
|
94
|
+
<a href="#M000163">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-M000161" class="method-detail">
|
117
|
+
<a name="M000161"></a>
|
118
118
|
|
119
119
|
<div class="method-heading">
|
120
|
-
<a href="#
|
120
|
+
<a href="#M000161" 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('M000161-source');return false;">[Source]</a></p>
|
128
|
+
<div class="method-source-code" id="M000161-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-M000162" class="method-detail">
|
143
|
+
<a name="M000162"></a>
|
144
144
|
|
145
145
|
<div class="method-heading">
|
146
|
-
<a href="#
|
146
|
+
<a href="#M000162" 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('M000162-source');return false;">[Source]</a></p>
|
154
|
+
<div class="method-source-code" id="M000162-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-M000164" class="method-detail">
|
167
|
+
<a name="M000164"></a>
|
168
168
|
|
169
169
|
<div class="method-heading">
|
170
|
-
<a href="#
|
170
|
+
<a href="#M000164" 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('M000164-source');return false;">[Source]</a></p>
|
178
|
+
<div class="method-source-code" id="M000164-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-M000163" class="method-detail">
|
194
|
+
<a name="M000163"></a>
|
195
195
|
|
196
196
|
<div class="method-heading">
|
197
|
-
<a href="#
|
197
|
+
<a href="#M000163" 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('M000163-source');return false;">[Source]</a></p>
|
205
|
+
<div class="method-source-code" id="M000163-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>)
|