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
@@ -95,11 +95,11 @@ Abstract class for a capacity bounded strategy. Only up to
|
|
95
95
|
<h3 class="section-bar">Methods</h3>
|
96
96
|
|
97
97
|
<div class="name-list">
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
98
|
+
<a href="#M000021">dec</a>
|
99
|
+
<a href="#M000023">empty?</a>
|
100
|
+
<a href="#M000022">full?</a>
|
101
|
+
<a href="#M000020">inc</a>
|
102
|
+
<a href="#M000019">new</a>
|
103
103
|
</div>
|
104
104
|
</div>
|
105
105
|
|
@@ -134,19 +134,19 @@ Abstract class for a capacity bounded strategy. Only up to
|
|
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-M000019" class="method-detail">
|
138
|
+
<a name="M000019"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
141
|
+
<a href="#M000019" class="method-signature">
|
142
142
|
<span class="method-name">new</span><span class="method-args">(capacity)</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('M000019-source');return false;">[Source]</a></p>
|
149
|
+
<div class="method-source-code" id="M000019-source">
|
150
150
|
<pre>
|
151
151
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 31</span>
|
152
152
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">capacity</span>)
|
@@ -160,19 +160,19 @@ Abstract class for a capacity bounded strategy. Only up to
|
|
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-M000021" class="method-detail">
|
164
|
+
<a name="M000021"></a>
|
165
165
|
|
166
166
|
<div class="method-heading">
|
167
|
-
<a href="#
|
167
|
+
<a href="#M000021" class="method-signature">
|
168
168
|
<span class="method-name">dec</span><span class="method-args">(item)</span>
|
169
169
|
</a>
|
170
170
|
</div>
|
171
171
|
|
172
172
|
<div class="method-description">
|
173
173
|
<p><a class="source-toggle" href="#"
|
174
|
-
onclick="toggleCode('
|
175
|
-
<div class="method-source-code" id="
|
174
|
+
onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
|
175
|
+
<div class="method-source-code" id="M000021-source">
|
176
176
|
<pre>
|
177
177
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 41</span>
|
178
178
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dec</span>(<span class="ruby-identifier">item</span>)
|
@@ -184,19 +184,19 @@ Abstract class for a capacity bounded strategy. Only up to
|
|
184
184
|
</div>
|
185
185
|
</div>
|
186
186
|
|
187
|
-
<div id="method-
|
188
|
-
<a name="
|
187
|
+
<div id="method-M000023" class="method-detail">
|
188
|
+
<a name="M000023"></a>
|
189
189
|
|
190
190
|
<div class="method-heading">
|
191
|
-
<a href="#
|
191
|
+
<a href="#M000023" class="method-signature">
|
192
192
|
<span class="method-name">empty?</span><span class="method-args">()</span>
|
193
193
|
</a>
|
194
194
|
</div>
|
195
195
|
|
196
196
|
<div class="method-description">
|
197
197
|
<p><a class="source-toggle" href="#"
|
198
|
-
onclick="toggleCode('
|
199
|
-
<div class="method-source-code" id="
|
198
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
199
|
+
<div class="method-source-code" id="M000023-source">
|
200
200
|
<pre>
|
201
201
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 50</span>
|
202
202
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
|
@@ -207,19 +207,19 @@ Abstract class for a capacity bounded strategy. Only up to
|
|
207
207
|
</div>
|
208
208
|
</div>
|
209
209
|
|
210
|
-
<div id="method-
|
211
|
-
<a name="
|
210
|
+
<div id="method-M000022" class="method-detail">
|
211
|
+
<a name="M000022"></a>
|
212
212
|
|
213
213
|
<div class="method-heading">
|
214
|
-
<a href="#
|
214
|
+
<a href="#M000022" class="method-signature">
|
215
215
|
<span class="method-name">full?</span><span class="method-args">()</span>
|
216
216
|
</a>
|
217
217
|
</div>
|
218
218
|
|
219
219
|
<div class="method-description">
|
220
220
|
<p><a class="source-toggle" href="#"
|
221
|
-
onclick="toggleCode('
|
222
|
-
<div class="method-source-code" id="
|
221
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
222
|
+
<div class="method-source-code" id="M000022-source">
|
223
223
|
<pre>
|
224
224
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 46</span>
|
225
225
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">full?</span>
|
@@ -230,19 +230,19 @@ Abstract class for a capacity bounded strategy. Only up to
|
|
230
230
|
</div>
|
231
231
|
</div>
|
232
232
|
|
233
|
-
<div id="method-
|
234
|
-
<a name="
|
233
|
+
<div id="method-M000020" class="method-detail">
|
234
|
+
<a name="M000020"></a>
|
235
235
|
|
236
236
|
<div class="method-heading">
|
237
|
-
<a href="#
|
237
|
+
<a href="#M000020" class="method-signature">
|
238
238
|
<span class="method-name">inc</span><span class="method-args">(item)</span>
|
239
239
|
</a>
|
240
240
|
</div>
|
241
241
|
|
242
242
|
<div class="method-description">
|
243
243
|
<p><a class="source-toggle" href="#"
|
244
|
-
onclick="toggleCode('
|
245
|
-
<div class="method-source-code" id="
|
244
|
+
onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
|
245
|
+
<div class="method-source-code" id="M000020-source">
|
246
246
|
<pre>
|
247
247
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 36</span>
|
248
248
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inc</span>(<span class="ruby-identifier">item</span>)
|
@@ -94,10 +94,10 @@ Implements the least frequently used (<a href="LFU.html">LFU</a>) strategy.
|
|
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="#
|
100
|
-
<a href="#
|
97
|
+
<a href="#M000029">access</a>
|
98
|
+
<a href="#M000030">delete</a>
|
99
|
+
<a href="#M000031">insert_or_extrude</a>
|
100
|
+
<a href="#M000028">item_class</a>
|
101
101
|
</div>
|
102
102
|
</div>
|
103
103
|
|
@@ -125,19 +125,19 @@ Implements the least frequently used (<a href="LFU.html">LFU</a>) strategy.
|
|
125
125
|
<div id="methods">
|
126
126
|
<h3 class="section-bar">Public Instance methods</h3>
|
127
127
|
|
128
|
-
<div id="method-
|
129
|
-
<a name="
|
128
|
+
<div id="method-M000029" class="method-detail">
|
129
|
+
<a name="M000029"></a>
|
130
130
|
|
131
131
|
<div class="method-heading">
|
132
|
-
<a href="#
|
132
|
+
<a href="#M000029" class="method-signature">
|
133
133
|
<span class="method-name">access</span><span class="method-args">(item)</span>
|
134
134
|
</a>
|
135
135
|
</div>
|
136
136
|
|
137
137
|
<div class="method-description">
|
138
138
|
<p><a class="source-toggle" href="#"
|
139
|
-
onclick="toggleCode('
|
140
|
-
<div class="method-source-code" id="
|
139
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
140
|
+
<div class="method-source-code" id="M000029-source">
|
141
141
|
<pre>
|
142
142
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 60</span>
|
143
143
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">access</span>(<span class="ruby-identifier">item</span>)
|
@@ -148,19 +148,19 @@ Implements the least frequently used (<a href="LFU.html">LFU</a>) strategy.
|
|
148
148
|
</div>
|
149
149
|
</div>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000030" class="method-detail">
|
152
|
+
<a name="M000030"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000030" class="method-signature">
|
156
156
|
<span class="method-name">delete</span><span class="method-args">(item)</span>
|
157
157
|
</a>
|
158
158
|
</div>
|
159
159
|
|
160
160
|
<div class="method-description">
|
161
161
|
<p><a class="source-toggle" href="#"
|
162
|
-
onclick="toggleCode('
|
163
|
-
<div class="method-source-code" id="
|
162
|
+
onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000030-source">
|
164
164
|
<pre>
|
165
165
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 64</span>
|
166
166
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">item</span>)
|
@@ -171,11 +171,11 @@ Implements the least frequently used (<a href="LFU.html">LFU</a>) strategy.
|
|
171
171
|
</div>
|
172
172
|
</div>
|
173
173
|
|
174
|
-
<div id="method-
|
175
|
-
<a name="
|
174
|
+
<div id="method-M000031" class="method-detail">
|
175
|
+
<a name="M000031"></a>
|
176
176
|
|
177
177
|
<div class="method-heading">
|
178
|
-
<a href="#
|
178
|
+
<a href="#M000031" class="method-signature">
|
179
179
|
<span class="method-name">insert_or_extrude</span><span class="method-args">(item, enum) {|enum.min_by {|key, it| it.freq| ...}</span>
|
180
180
|
</a>
|
181
181
|
</div>
|
@@ -187,8 +187,8 @@ Implements the least frequently used (<a href="LFU.html">LFU</a>) strategy.
|
|
187
187
|
</td></tr>
|
188
188
|
</table>
|
189
189
|
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('
|
191
|
-
<div class="method-source-code" id="
|
190
|
+
onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000031-source">
|
192
192
|
<pre>
|
193
193
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 71</span>
|
194
194
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert_or_extrude</span>(<span class="ruby-identifier">item</span>, <span class="ruby-identifier">enum</span>)
|
@@ -202,19 +202,19 @@ Implements the least frequently used (<a href="LFU.html">LFU</a>) strategy.
|
|
202
202
|
</div>
|
203
203
|
</div>
|
204
204
|
|
205
|
-
<div id="method-
|
206
|
-
<a name="
|
205
|
+
<div id="method-M000028" class="method-detail">
|
206
|
+
<a name="M000028"></a>
|
207
207
|
|
208
208
|
<div class="method-heading">
|
209
|
-
<a href="#
|
209
|
+
<a href="#M000028" class="method-signature">
|
210
210
|
<span class="method-name">item_class</span><span class="method-args">()</span>
|
211
211
|
</a>
|
212
212
|
</div>
|
213
213
|
|
214
214
|
<div class="method-description">
|
215
215
|
<p><a class="source-toggle" href="#"
|
216
|
-
onclick="toggleCode('
|
217
|
-
<div class="method-source-code" id="
|
216
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
217
|
+
<div class="method-source-code" id="M000028-source">
|
218
218
|
<pre>
|
219
219
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 58</span>
|
220
220
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">item_class</span>() <span class="ruby-constant">Item</span> <span class="ruby-keyword kw">end</span>
|
@@ -94,10 +94,10 @@ Implements the least recently used (<a href="LRU.html">LRU</a>) strategy.
|
|
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="#
|
100
|
-
<a href="#
|
97
|
+
<a href="#M000025">access</a>
|
98
|
+
<a href="#M000026">delete</a>
|
99
|
+
<a href="#M000027">insert_or_extrude</a>
|
100
|
+
<a href="#M000024">item_class</a>
|
101
101
|
</div>
|
102
102
|
</div>
|
103
103
|
|
@@ -125,19 +125,19 @@ Implements the least recently used (<a href="LRU.html">LRU</a>) strategy.
|
|
125
125
|
<div id="methods">
|
126
126
|
<h3 class="section-bar">Public Instance methods</h3>
|
127
127
|
|
128
|
-
<div id="method-
|
129
|
-
<a name="
|
128
|
+
<div id="method-M000025" class="method-detail">
|
129
|
+
<a name="M000025"></a>
|
130
130
|
|
131
131
|
<div class="method-heading">
|
132
|
-
<a href="#
|
132
|
+
<a href="#M000025" class="method-signature">
|
133
133
|
<span class="method-name">access</span><span class="method-args">(item)</span>
|
134
134
|
</a>
|
135
135
|
</div>
|
136
136
|
|
137
137
|
<div class="method-description">
|
138
138
|
<p><a class="source-toggle" href="#"
|
139
|
-
onclick="toggleCode('
|
140
|
-
<div class="method-source-code" id="
|
139
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
140
|
+
<div class="method-source-code" id="M000025-source">
|
141
141
|
<pre>
|
142
142
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 84</span>
|
143
143
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">access</span>(<span class="ruby-identifier">item</span>)
|
@@ -148,19 +148,19 @@ Implements the least recently used (<a href="LRU.html">LRU</a>) strategy.
|
|
148
148
|
</div>
|
149
149
|
</div>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000026" class="method-detail">
|
152
|
+
<a name="M000026"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000026" class="method-signature">
|
156
156
|
<span class="method-name">delete</span><span class="method-args">(item)</span>
|
157
157
|
</a>
|
158
158
|
</div>
|
159
159
|
|
160
160
|
<div class="method-description">
|
161
161
|
<p><a class="source-toggle" href="#"
|
162
|
-
onclick="toggleCode('
|
163
|
-
<div class="method-source-code" id="
|
162
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000026-source">
|
164
164
|
<pre>
|
165
165
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 88</span>
|
166
166
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">item</span>)
|
@@ -171,11 +171,11 @@ Implements the least recently used (<a href="LRU.html">LRU</a>) strategy.
|
|
171
171
|
</div>
|
172
172
|
</div>
|
173
173
|
|
174
|
-
<div id="method-
|
175
|
-
<a name="
|
174
|
+
<div id="method-M000027" class="method-detail">
|
175
|
+
<a name="M000027"></a>
|
176
176
|
|
177
177
|
<div class="method-heading">
|
178
|
-
<a href="#
|
178
|
+
<a href="#M000027" class="method-signature">
|
179
179
|
<span class="method-name">insert_or_extrude</span><span class="method-args">(item, enum) {|enum.min_by {|key, it| it.time| ...}</span>
|
180
180
|
</a>
|
181
181
|
</div>
|
@@ -187,8 +187,8 @@ Implements the least recently used (<a href="LRU.html">LRU</a>) strategy.
|
|
187
187
|
</td></tr>
|
188
188
|
</table>
|
189
189
|
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('
|
191
|
-
<div class="method-source-code" id="
|
190
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000027-source">
|
192
192
|
<pre>
|
193
193
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 95</span>
|
194
194
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert_or_extrude</span>(<span class="ruby-identifier">item</span>, <span class="ruby-identifier">enum</span>)
|
@@ -202,19 +202,19 @@ Implements the least recently used (<a href="LRU.html">LRU</a>) strategy.
|
|
202
202
|
</div>
|
203
203
|
</div>
|
204
204
|
|
205
|
-
<div id="method-
|
206
|
-
<a name="
|
205
|
+
<div id="method-M000024" class="method-detail">
|
206
|
+
<a name="M000024"></a>
|
207
207
|
|
208
208
|
<div class="method-heading">
|
209
|
-
<a href="#
|
209
|
+
<a href="#M000024" class="method-signature">
|
210
210
|
<span class="method-name">item_class</span><span class="method-args">()</span>
|
211
211
|
</a>
|
212
212
|
</div>
|
213
213
|
|
214
214
|
<div class="method-description">
|
215
215
|
<p><a class="source-toggle" href="#"
|
216
|
-
onclick="toggleCode('
|
217
|
-
<div class="method-source-code" id="
|
216
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
217
|
+
<div class="method-source-code" id="M000024-source">
|
218
218
|
<pre>
|
219
219
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 82</span>
|
220
220
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">item_class</span>() <span class="ruby-constant">Item</span> <span class="ruby-keyword kw">end</span>
|
@@ -95,10 +95,10 @@ infinity.
|
|
95
95
|
<h3 class="section-bar">Methods</h3>
|
96
96
|
|
97
97
|
<div class="name-list">
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
98
|
+
<a href="#M000033">access</a>
|
99
|
+
<a href="#M000034">delete</a>
|
100
|
+
<a href="#M000035">insert_or_extrude</a>
|
101
|
+
<a href="#M000032">item_class</a>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -126,19 +126,19 @@ infinity.
|
|
126
126
|
<div id="methods">
|
127
127
|
<h3 class="section-bar">Public Instance methods</h3>
|
128
128
|
|
129
|
-
<div id="method-
|
130
|
-
<a name="
|
129
|
+
<div id="method-M000033" class="method-detail">
|
130
|
+
<a name="M000033"></a>
|
131
131
|
|
132
132
|
<div class="method-heading">
|
133
|
-
<a href="#
|
133
|
+
<a href="#M000033" class="method-signature">
|
134
134
|
<span class="method-name">access</span><span class="method-args">(item)</span>
|
135
135
|
</a>
|
136
136
|
</div>
|
137
137
|
|
138
138
|
<div class="method-description">
|
139
139
|
<p><a class="source-toggle" href="#"
|
140
|
-
onclick="toggleCode('
|
141
|
-
<div class="method-source-code" id="
|
140
|
+
onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
|
141
|
+
<div class="method-source-code" id="M000033-source">
|
142
142
|
<pre>
|
143
143
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 21</span>
|
144
144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">access</span>(<span class="ruby-identifier">item</span>) <span class="ruby-keyword kw">end</span>
|
@@ -147,19 +147,19 @@ infinity.
|
|
147
147
|
</div>
|
148
148
|
</div>
|
149
149
|
|
150
|
-
<div id="method-
|
151
|
-
<a name="
|
150
|
+
<div id="method-M000034" class="method-detail">
|
151
|
+
<a name="M000034"></a>
|
152
152
|
|
153
153
|
<div class="method-heading">
|
154
|
-
<a href="#
|
154
|
+
<a href="#M000034" class="method-signature">
|
155
155
|
<span class="method-name">delete</span><span class="method-args">(item)</span>
|
156
156
|
</a>
|
157
157
|
</div>
|
158
158
|
|
159
159
|
<div class="method-description">
|
160
160
|
<p><a class="source-toggle" href="#"
|
161
|
-
onclick="toggleCode('
|
162
|
-
<div class="method-source-code" id="
|
161
|
+
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
162
|
+
<div class="method-source-code" id="M000034-source">
|
163
163
|
<pre>
|
164
164
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 22</span>
|
165
165
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">item</span>) <span class="ruby-keyword kw">end</span>
|
@@ -168,19 +168,19 @@ infinity.
|
|
168
168
|
</div>
|
169
169
|
</div>
|
170
170
|
|
171
|
-
<div id="method-
|
172
|
-
<a name="
|
171
|
+
<div id="method-M000035" class="method-detail">
|
172
|
+
<a name="M000035"></a>
|
173
173
|
|
174
174
|
<div class="method-heading">
|
175
|
-
<a href="#
|
175
|
+
<a href="#M000035" class="method-signature">
|
176
176
|
<span class="method-name">insert_or_extrude</span><span class="method-args">(item, enum)</span>
|
177
177
|
</a>
|
178
178
|
</div>
|
179
179
|
|
180
180
|
<div class="method-description">
|
181
181
|
<p><a class="source-toggle" href="#"
|
182
|
-
onclick="toggleCode('
|
183
|
-
<div class="method-source-code" id="
|
182
|
+
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
183
|
+
<div class="method-source-code" id="M000035-source">
|
184
184
|
<pre>
|
185
185
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 23</span>
|
186
186
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert_or_extrude</span>(<span class="ruby-identifier">item</span>, <span class="ruby-identifier">enum</span>) <span class="ruby-keyword kw">end</span>
|
@@ -189,19 +189,19 @@ infinity.
|
|
189
189
|
</div>
|
190
190
|
</div>
|
191
191
|
|
192
|
-
<div id="method-
|
193
|
-
<a name="
|
192
|
+
<div id="method-M000032" class="method-detail">
|
193
|
+
<a name="M000032"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000032" class="method-signature">
|
197
197
|
<span class="method-name">item_class</span><span class="method-args">()</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('M000032-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000032-source">
|
205
205
|
<pre>
|
206
206
|
<span class="ruby-comment cmt"># File lib/cache/cache.rb, line 19</span>
|
207
207
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">item_class</span>() <span class="ruby-constant">Item</span> <span class="ruby-keyword kw">end</span>
|