wee 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +132 -0
- data/INSTALL +13 -3
- data/README +3 -3
- data/Rakefile +5 -1
- data/bin/wee +100 -0
- data/doc/rdoc/classes/Array.html +12 -12
- data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
- data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
- data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
- data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
- data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
- data/doc/rdoc/classes/Enumerable.html +6 -6
- data/doc/rdoc/classes/Main.html +265 -0
- data/doc/rdoc/classes/Object.html +12 -12
- data/doc/rdoc/classes/OgApplication.html +2 -2
- data/doc/rdoc/classes/OgScaffolder.html +444 -64
- data/doc/rdoc/classes/OgScaffolder/Editor.html +490 -0
- data/doc/rdoc/classes/OgSession.html +4 -4
- data/doc/rdoc/classes/Recipe.html +113 -0
- data/doc/rdoc/classes/String.html +12 -12
- data/doc/rdoc/classes/Struct.html +12 -12
- data/doc/rdoc/classes/Wee.html +10 -1
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
- data/doc/rdoc/classes/Wee/Application.html +48 -47
- data/doc/rdoc/classes/Wee/Brush.html +19 -23
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +17 -14
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +20 -14
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +25 -21
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +234 -100
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +28 -22
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +23 -24
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +33 -57
- data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +154 -0
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +20 -14
- 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 +42 -42
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +27 -21
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +20 -14
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +64 -36
- data/doc/rdoc/classes/Wee/CallbackStream.html +21 -21
- data/doc/rdoc/classes/Wee/Canvas.html +24 -24
- data/doc/rdoc/classes/Wee/Component.html +179 -151
- data/doc/rdoc/classes/Wee/Component/OnAnswer.html +12 -12
- data/doc/rdoc/classes/Wee/Decoration.html +42 -42
- data/doc/rdoc/classes/Wee/Delegate.html +27 -27
- data/doc/rdoc/classes/Wee/ErrorResponse.html +14 -14
- data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
- data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +326 -219
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +19 -19
- data/doc/rdoc/classes/Wee/Md5IdGenerator.html +181 -0
- 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 +152 -0
- data/doc/rdoc/classes/Wee/PagelessRequest.html +177 -0
- data/doc/rdoc/classes/Wee/PagelessSession.html +320 -0
- data/doc/rdoc/classes/Wee/Presenter.html +145 -89
- data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
- data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
- data/doc/rdoc/classes/Wee/Request.html +116 -50
- data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
- data/doc/rdoc/classes/Wee/Response.html +76 -28
- data/doc/rdoc/classes/Wee/Session.html +129 -506
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +22 -40
- data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
- data/doc/rdoc/classes/Wee/Utils.html +70 -17
- 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 +82 -49
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/INSTALL.html +17 -5
- data/doc/rdoc/files/README.html +9 -11
- 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 +1 -1
- data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -3
- 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_rb.html +3 -3
- data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/databases/og_rb.html +4 -1
- data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +115 -0
- data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +107 -0
- data/doc/rdoc/files/lib/wee/pageless/application_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/pageless/request_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/pageless/session_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/pageless_rb.html +110 -0
- data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +8 -1
- data/doc/rdoc/files/lib/wee/request_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/response_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/session_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +114 -0
- data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +115 -0
- data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +111 -0
- data/doc/rdoc/files/lib/wee/template_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
- data/doc/rdoc/files/lib/wee_rb.html +4 -2
- data/doc/rdoc/fr_class_index.html +8 -4
- data/doc/rdoc/fr_file_index.html +17 -1
- data/doc/rdoc/fr_method_index.html +312 -267
- data/examples/live-update.rb +1 -1
- data/install.rb +14 -0
- data/lib/wee.rb +6 -2
- data/lib/wee/adaptors/webrick.rb +17 -5
- data/lib/wee/application.rb +2 -1
- data/lib/wee/continuation/session.rb +1 -146
- data/lib/wee/core/callback.rb +11 -5
- data/lib/wee/core/component.rb +14 -10
- data/lib/wee/databases/og.rb +3 -113
- data/lib/wee/databases/og/application.rb +3 -0
- data/lib/wee/databases/og/old_scaffolder.rb +98 -0
- data/lib/wee/databases/og/scaffolder.rb +174 -0
- data/lib/wee/databases/og/session.rb +9 -0
- data/lib/wee/idgen/md5.rb +21 -0
- data/lib/wee/{idgen.rb → idgen/simple.rb} +2 -4
- data/lib/wee/pageless.rb +3 -0
- data/lib/wee/pageless/application.rb +9 -0
- data/lib/wee/pageless/request.rb +15 -0
- data/lib/wee/pageless/session.rb +89 -0
- data/lib/wee/renderer/html/brushes.rb +100 -115
- data/lib/wee/renderer/html/canvas.rb +32 -2
- data/lib/wee/request.rb +36 -24
- data/lib/wee/response.rb +8 -1
- data/lib/wee/session.rb +13 -7
- data/lib/wee/skeleton/og/README +38 -0
- data/lib/wee/skeleton/og/components/main.rb +16 -0
- data/lib/wee/skeleton/og/conf/db.rb +8 -0
- data/lib/wee/skeleton/og/models/recipe.rb +5 -0
- data/lib/wee/skeleton/og/run.rb +23 -0
- data/lib/wee/skeleton/simple/README +32 -0
- data/lib/wee/skeleton/simple/components/main.rb +25 -0
- data/lib/wee/skeleton/simple/run.rb +12 -0
- data/lib/wee/template.rb +28 -0
- data/lib/wee/utils/autoreload.rb +29 -0
- data/lib/wee/utils/helper.rb +9 -5
- data/test/test_request.rb +4 -3
- data/wee.gemspec +3 -1
- metadata +91 -22
@@ -109,13 +109,13 @@ Usage:
|
|
109
109
|
<h3 class="section-bar">Methods</h3>
|
110
110
|
|
111
111
|
<div class="name-list">
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
112
|
+
<a href="#M000275"><<</a>
|
113
|
+
<a href="#M000276">encode_text</a>
|
114
|
+
<a href="#M000273">end_tag</a>
|
115
|
+
<a href="#M000270">new</a>
|
116
|
+
<a href="#M000272">single_tag</a>
|
117
|
+
<a href="#M000271">start_tag</a>
|
118
|
+
<a href="#M000274">text</a>
|
119
119
|
</div>
|
120
120
|
</div>
|
121
121
|
|
@@ -150,19 +150,19 @@ Usage:
|
|
150
150
|
<div id="methods">
|
151
151
|
<h3 class="section-bar">Public Class methods</h3>
|
152
152
|
|
153
|
-
<div id="method-
|
154
|
-
<a name="
|
153
|
+
<div id="method-M000270" class="method-detail">
|
154
|
+
<a name="M000270"></a>
|
155
155
|
|
156
156
|
<div class="method-heading">
|
157
|
-
<a href="#
|
157
|
+
<a href="#M000270" class="method-signature">
|
158
158
|
<span class="method-name">new</span><span class="method-args">(port)</span>
|
159
159
|
</a>
|
160
160
|
</div>
|
161
161
|
|
162
162
|
<div class="method-description">
|
163
163
|
<p><a class="source-toggle" href="#"
|
164
|
-
onclick="toggleCode('
|
165
|
-
<div class="method-source-code" id="
|
164
|
+
onclick="toggleCode('M000270-source');return false;">[Source]</a></p>
|
165
|
+
<div class="method-source-code" id="M000270-source">
|
166
166
|
<pre>
|
167
167
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 22</span>
|
168
168
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">port</span>)
|
@@ -175,8 +175,8 @@ Usage:
|
|
175
175
|
|
176
176
|
<h3 class="section-bar">Public Instance methods</h3>
|
177
177
|
|
178
|
-
<div id="method-
|
179
|
-
<a name="
|
178
|
+
<div id="method-M000275" class="method-detail">
|
179
|
+
<a name="M000275"></a>
|
180
180
|
|
181
181
|
<div class="method-heading">
|
182
182
|
<span class="method-name"><<</span><span class="method-args">(str)</span>
|
@@ -184,24 +184,24 @@ Usage:
|
|
184
184
|
|
185
185
|
<div class="method-description">
|
186
186
|
<p>
|
187
|
-
Alias for <a href="HtmlWriter.html#
|
187
|
+
Alias for <a href="HtmlWriter.html#M000274">text</a>
|
188
188
|
</p>
|
189
189
|
</div>
|
190
190
|
</div>
|
191
191
|
|
192
|
-
<div id="method-
|
193
|
-
<a name="
|
192
|
+
<div id="method-M000276" class="method-detail">
|
193
|
+
<a name="M000276"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000276" class="method-signature">
|
197
197
|
<span class="method-name">encode_text</span><span class="method-args">(str)</span>
|
198
198
|
</a>
|
199
199
|
</div>
|
200
200
|
|
201
201
|
<div class="method-description">
|
202
202
|
<p><a class="source-toggle" href="#"
|
203
|
-
onclick="toggleCode('
|
204
|
-
<div class="method-source-code" id="
|
203
|
+
onclick="toggleCode('M000276-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000276-source">
|
205
205
|
<pre>
|
206
206
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 75</span>
|
207
207
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
|
@@ -214,19 +214,19 @@ Alias for <a href="HtmlWriter.html#M000244">text</a>
|
|
214
214
|
</div>
|
215
215
|
</div>
|
216
216
|
|
217
|
-
<div id="method-
|
218
|
-
<a name="
|
217
|
+
<div id="method-M000273" class="method-detail">
|
218
|
+
<a name="M000273"></a>
|
219
219
|
|
220
220
|
<div class="method-heading">
|
221
|
-
<a href="#
|
221
|
+
<a href="#M000273" class="method-signature">
|
222
222
|
<span class="method-name">end_tag</span><span class="method-args">(tag)</span>
|
223
223
|
</a>
|
224
224
|
</div>
|
225
225
|
|
226
226
|
<div class="method-description">
|
227
227
|
<p><a class="source-toggle" href="#"
|
228
|
-
onclick="toggleCode('
|
229
|
-
<div class="method-source-code" id="
|
228
|
+
onclick="toggleCode('M000273-source');return false;">[Source]</a></p>
|
229
|
+
<div class="method-source-code" id="M000273-source">
|
230
230
|
<pre>
|
231
231
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 62</span>
|
232
232
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_tag</span>(<span class="ruby-identifier">tag</span>)
|
@@ -239,19 +239,19 @@ Alias for <a href="HtmlWriter.html#M000244">text</a>
|
|
239
239
|
</div>
|
240
240
|
</div>
|
241
241
|
|
242
|
-
<div id="method-
|
243
|
-
<a name="
|
242
|
+
<div id="method-M000272" class="method-detail">
|
243
|
+
<a name="M000272"></a>
|
244
244
|
|
245
245
|
<div class="method-heading">
|
246
|
-
<a href="#
|
246
|
+
<a href="#M000272" class="method-signature">
|
247
247
|
<span class="method-name">single_tag</span><span class="method-args">(tag, attributes=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('M000272-source');return false;">[Source]</a></p>
|
254
|
+
<div class="method-source-code" id="M000272-source">
|
255
255
|
<pre>
|
256
256
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 44</span>
|
257
257
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">single_tag</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">attributes</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -276,19 +276,19 @@ Alias for <a href="HtmlWriter.html#M000244">text</a>
|
|
276
276
|
</div>
|
277
277
|
</div>
|
278
278
|
|
279
|
-
<div id="method-
|
280
|
-
<a name="
|
279
|
+
<div id="method-M000271" class="method-detail">
|
280
|
+
<a name="M000271"></a>
|
281
281
|
|
282
282
|
<div class="method-heading">
|
283
|
-
<a href="#
|
283
|
+
<a href="#M000271" class="method-signature">
|
284
284
|
<span class="method-name">start_tag</span><span class="method-args">(tag, attributes=nil)</span>
|
285
285
|
</a>
|
286
286
|
</div>
|
287
287
|
|
288
288
|
<div class="method-description">
|
289
289
|
<p><a class="source-toggle" href="#"
|
290
|
-
onclick="toggleCode('
|
291
|
-
<div class="method-source-code" id="
|
290
|
+
onclick="toggleCode('M000271-source');return false;">[Source]</a></p>
|
291
|
+
<div class="method-source-code" id="M000271-source">
|
292
292
|
<pre>
|
293
293
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 26</span>
|
294
294
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_tag</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">attributes</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -313,19 +313,19 @@ Alias for <a href="HtmlWriter.html#M000244">text</a>
|
|
313
313
|
</div>
|
314
314
|
</div>
|
315
315
|
|
316
|
-
<div id="method-
|
317
|
-
<a name="
|
316
|
+
<div id="method-M000274" class="method-detail">
|
317
|
+
<a name="M000274"></a>
|
318
318
|
|
319
319
|
<div class="method-heading">
|
320
|
-
<a href="#
|
320
|
+
<a href="#M000274" class="method-signature">
|
321
321
|
<span class="method-name">text</span><span class="method-args">(str)</span>
|
322
322
|
</a>
|
323
323
|
</div>
|
324
324
|
|
325
325
|
<div class="method-description">
|
326
326
|
<p><a class="source-toggle" href="#"
|
327
|
-
onclick="toggleCode('
|
328
|
-
<div class="method-source-code" id="
|
327
|
+
onclick="toggleCode('M000274-source');return false;">[Source]</a></p>
|
328
|
+
<div class="method-source-code" id="M000274-source">
|
329
329
|
<pre>
|
330
330
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 68</span>
|
331
331
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
|
@@ -94,8 +94,8 @@ A serializable callback.
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
97
|
+
<a href="#M000313">call</a>
|
98
|
+
<a href="#M000312">new</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -117,24 +117,24 @@ A serializable callback.
|
|
117
117
|
<div id="methods">
|
118
118
|
<h3 class="section-bar">Public Class methods</h3>
|
119
119
|
|
120
|
-
<div id="method-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000312" class="method-detail">
|
121
|
+
<a name="M000312"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
125
|
-
<span class="method-name">new</span><span class="method-args">(obj, method_id=:call, *
|
124
|
+
<a href="#M000312" class="method-signature">
|
125
|
+
<span class="method-name">new</span><span class="method-args">(obj, method_id=:call, *args)</span>
|
126
126
|
</a>
|
127
127
|
</div>
|
128
128
|
|
129
129
|
<div class="method-description">
|
130
130
|
<p><a class="source-toggle" href="#"
|
131
|
-
onclick="toggleCode('
|
132
|
-
<div class="method-source-code" id="
|
131
|
+
onclick="toggleCode('M000312-source');return false;">[Source]</a></p>
|
132
|
+
<div class="method-source-code" id="M000312-source">
|
133
133
|
<pre>
|
134
|
-
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line
|
135
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">method_id</span>=<span class="ruby-identifier">:call</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">
|
134
|
+
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 107</span>
|
135
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">method_id</span>=<span class="ruby-identifier">:call</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
136
136
|
<span class="ruby-ivar">@obj</span>, <span class="ruby-ivar">@method_id</span> = <span class="ruby-identifier">obj</span>, <span class="ruby-identifier">method_id</span>
|
137
|
-
<span class="ruby-ivar">@
|
137
|
+
<span class="ruby-ivar">@args</span> = <span class="ruby-identifier">args</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
|
138
138
|
<span class="ruby-keyword kw">end</span>
|
139
139
|
</pre>
|
140
140
|
</div>
|
@@ -143,24 +143,24 @@ A serializable callback.
|
|
143
143
|
|
144
144
|
<h3 class="section-bar">Public Instance methods</h3>
|
145
145
|
|
146
|
-
<div id="method-
|
147
|
-
<a name="
|
146
|
+
<div id="method-M000313" class="method-detail">
|
147
|
+
<a name="M000313"></a>
|
148
148
|
|
149
149
|
<div class="method-heading">
|
150
|
-
<a href="#
|
150
|
+
<a href="#M000313" class="method-signature">
|
151
151
|
<span class="method-name">call</span><span class="method-args">(*args)</span>
|
152
152
|
</a>
|
153
153
|
</div>
|
154
154
|
|
155
155
|
<div class="method-description">
|
156
156
|
<p><a class="source-toggle" href="#"
|
157
|
-
onclick="toggleCode('
|
158
|
-
<div class="method-source-code" id="
|
157
|
+
onclick="toggleCode('M000313-source');return false;">[Source]</a></p>
|
158
|
+
<div class="method-source-code" id="M000313-source">
|
159
159
|
<pre>
|
160
|
-
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line
|
160
|
+
<span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 112</span>
|
161
161
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
162
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@
|
163
|
-
<span class="ruby-ivar">@obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-ivar">@method_id</span>, <span class="ruby-operator">*</span>(<span class="ruby-
|
162
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@args</span>
|
163
|
+
<span class="ruby-ivar">@obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-ivar">@method_id</span>, <span class="ruby-operator">*</span>(<span class="ruby-ivar">@args</span><span class="ruby-operator">+</span><span class="ruby-identifier">args</span>))
|
164
164
|
<span class="ruby-keyword kw">else</span>
|
165
165
|
<span class="ruby-ivar">@obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-ivar">@method_id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
166
166
|
<span class="ruby-keyword kw">end</span>
|
@@ -0,0 +1,181 @@
|
|
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
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: Wee::Md5IdGenerator</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Wee::Md5IdGenerator</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/wee/idgen/md5_rb.html">
|
59
|
+
lib/wee/idgen/md5.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="../Object.html">
|
69
|
+
Object
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="method-list">
|
88
|
+
<h3 class="section-bar">Methods</h3>
|
89
|
+
|
90
|
+
<div class="name-list">
|
91
|
+
<a href="#M000133">new</a>
|
92
|
+
<a href="#M000134">next</a>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
|
99
|
+
<!-- if includes -->
|
100
|
+
|
101
|
+
<div id="section">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<!-- if method_list -->
|
111
|
+
<div id="methods">
|
112
|
+
<h3 class="section-bar">Public Class methods</h3>
|
113
|
+
|
114
|
+
<div id="method-M000133" class="method-detail">
|
115
|
+
<a name="M000133"></a>
|
116
|
+
|
117
|
+
<div class="method-heading">
|
118
|
+
<a href="#M000133" class="method-signature">
|
119
|
+
<span class="method-name">new</span><span class="method-args">(salt='wee')</span>
|
120
|
+
</a>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<div class="method-description">
|
124
|
+
<p><a class="source-toggle" href="#"
|
125
|
+
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
126
|
+
<div class="method-source-code" id="M000133-source">
|
127
|
+
<pre>
|
128
|
+
<span class="ruby-comment cmt"># File lib/wee/idgen/md5.rb, line 7</span>
|
129
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">salt</span>=<span class="ruby-value str">'wee'</span>)
|
130
|
+
<span class="ruby-ivar">@salt</span> = <span class="ruby-identifier">salt</span>
|
131
|
+
<span class="ruby-keyword kw">end</span>
|
132
|
+
</pre>
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
138
|
+
|
139
|
+
<div id="method-M000134" class="method-detail">
|
140
|
+
<a name="M000134"></a>
|
141
|
+
|
142
|
+
<div class="method-heading">
|
143
|
+
<a href="#M000134" class="method-signature">
|
144
|
+
<span class="method-name">next</span><span class="method-args">()</span>
|
145
|
+
</a>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div class="method-description">
|
149
|
+
<p><a class="source-toggle" href="#"
|
150
|
+
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
151
|
+
<div class="method-source-code" id="M000134-source">
|
152
|
+
<pre>
|
153
|
+
<span class="ruby-comment cmt"># File lib/wee/idgen/md5.rb, line 11</span>
|
154
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">next</span>
|
155
|
+
<span class="ruby-identifier">now</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
|
156
|
+
<span class="ruby-identifier">md5</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">new</span>
|
157
|
+
<span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_s</span>)
|
158
|
+
<span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">now</span>.<span class="ruby-identifier">usec</span>.<span class="ruby-identifier">to_s</span>)
|
159
|
+
<span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">rand</span>(<span class="ruby-value">0</span>).<span class="ruby-identifier">to_s</span>)
|
160
|
+
<span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">$$</span>.<span class="ruby-identifier">to_s</span>)
|
161
|
+
<span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-ivar">@salt</span>.<span class="ruby-identifier">to_s</span>)
|
162
|
+
<span class="ruby-identifier">md5</span>.<span class="ruby-identifier">hexdigest</span>
|
163
|
+
<span class="ruby-keyword kw">end</span>
|
164
|
+
</pre>
|
165
|
+
</div>
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
|
170
|
+
</div>
|
171
|
+
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
<div id="validator-badges">
|
177
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
</body>
|
181
|
+
</html>
|
@@ -88,8 +88,8 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
91
|
+
<a href="#M000135">new</a>
|
92
|
+
<a href="#M000136">render</a>
|
93
93
|
</div>
|
94
94
|
</div>
|
95
95
|
|
@@ -111,19 +111,19 @@
|
|
111
111
|
<div id="methods">
|
112
112
|
<h3 class="section-bar">Public Class methods</h3>
|
113
113
|
|
114
|
-
<div id="method-
|
115
|
-
<a name="
|
114
|
+
<div id="method-M000135" class="method-detail">
|
115
|
+
<a name="M000135"></a>
|
116
116
|
|
117
117
|
<div class="method-heading">
|
118
|
-
<a href="#
|
118
|
+
<a href="#M000135" class="method-signature">
|
119
119
|
<span class="method-name">new</span><span class="method-args">(text)</span>
|
120
120
|
</a>
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div class="method-description">
|
124
124
|
<p><a class="source-toggle" href="#"
|
125
|
-
onclick="toggleCode('
|
126
|
-
<div class="method-source-code" id="
|
125
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
126
|
+
<div class="method-source-code" id="M000135-source">
|
127
127
|
<pre>
|
128
128
|
<span class="ruby-comment cmt"># File lib/wee/components/messagebox.rb, line 2</span>
|
129
129
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">text</span>)
|
@@ -137,19 +137,19 @@
|
|
137
137
|
|
138
138
|
<h3 class="section-bar">Public Instance methods</h3>
|
139
139
|
|
140
|
-
<div id="method-
|
141
|
-
<a name="
|
140
|
+
<div id="method-M000136" class="method-detail">
|
141
|
+
<a name="M000136"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="#
|
144
|
+
<a href="#M000136" class="method-signature">
|
145
145
|
<span class="method-name">render</span><span class="method-args">()</span>
|
146
146
|
</a>
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div class="method-description">
|
150
150
|
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('
|
152
|
-
<div class="method-source-code" id="
|
151
|
+
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000136-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File lib/wee/components/messagebox.rb, line 7</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>
|