wee 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +286 -0
- data/Features +185 -0
- data/doc/rdoc/classes/ActionView.html +107 -0
- data/doc/rdoc/classes/ActionView/Base.html +133 -0
- data/doc/rdoc/classes/Array.html +7 -59
- 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/Hash.html +120 -0
- data/doc/rdoc/classes/Main.html +58 -34
- data/doc/rdoc/classes/Object.html +12 -12
- data/doc/rdoc/classes/OgScaffolder.html +165 -166
- data/doc/rdoc/classes/OgScaffolder/Editor.html +112 -112
- data/doc/rdoc/classes/String.html +7 -59
- data/doc/rdoc/classes/Struct.html +14 -14
- data/doc/rdoc/classes/Wee.html +70 -6
- data/doc/rdoc/classes/Wee/AbstractSession.html +502 -0
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +11 -11
- data/doc/rdoc/classes/Wee/Application.html +139 -84
- data/doc/rdoc/classes/Wee/Brush.html +21 -18
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +90 -17
- data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +162 -0
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +41 -17
- 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 +112 -86
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +160 -0
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +21 -21
- 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/RadioButtonTag.html +234 -0
- data/doc/rdoc/classes/Wee/Brush/RadioButtonTag/RadioGroup.html +207 -0
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +124 -28
- data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
- 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 +42 -42
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -15
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +38 -38
- data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
- data/doc/rdoc/classes/Wee/CanvasMixin.html +225 -0
- data/doc/rdoc/classes/Wee/Component.html +202 -201
- data/doc/rdoc/classes/Wee/Component/OnAnswer.html +7 -7
- data/doc/rdoc/classes/Wee/ComponentDispatcher.html +289 -0
- data/doc/rdoc/classes/Wee/ComponentRunner.html +321 -0
- data/doc/rdoc/classes/Wee/Context.html +63 -3
- data/doc/rdoc/classes/Wee/Decoration.html +45 -45
- data/doc/rdoc/classes/Wee/Delegate.html +30 -30
- data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +164 -0
- data/doc/rdoc/classes/Wee/ErrorResponse.html +16 -16
- data/doc/rdoc/classes/Wee/Examples.html +114 -0
- data/doc/rdoc/classes/Wee/Examples/Calculator.html +319 -0
- data/doc/rdoc/classes/Wee/Examples/Counter.html +289 -0
- data/doc/rdoc/classes/Wee/Examples/EditableCounter.html +210 -0
- data/doc/rdoc/classes/Wee/Examples/Window.html +346 -0
- data/doc/rdoc/classes/Wee/FastCGIAdaptor.html +227 -0
- data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
- data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
- data/doc/rdoc/classes/Wee/HtmlCanvasRenderer.html +1230 -0
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/IdGenerator.html +148 -0
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +27 -14
- data/doc/rdoc/classes/Wee/LoginDecoration.html +261 -0
- data/doc/rdoc/classes/Wee/Md5IdGenerator.html +14 -14
- data/doc/rdoc/classes/Wee/MessageBox.html +14 -14
- data/doc/rdoc/classes/Wee/Nitro.html +114 -0
- data/doc/rdoc/classes/Wee/Nitro/ControllerClassMixin.html +192 -0
- data/doc/rdoc/classes/Wee/Nitro/ControllerMixin.html +345 -0
- data/doc/rdoc/classes/Wee/Nitro/FormTag.html +155 -0
- data/doc/rdoc/classes/Wee/Nitro/HtmlCanvasRenderer.html +178 -0
- data/doc/rdoc/classes/Wee/Page.html +4 -0
- data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
- data/doc/rdoc/classes/Wee/PagelessApplication.html +13 -11
- data/doc/rdoc/classes/Wee/PagelessComponentDriver.html +296 -0
- data/doc/rdoc/classes/Wee/PagelessRequest.html +52 -21
- data/doc/rdoc/classes/Wee/PagelessSession.html +130 -91
- data/doc/rdoc/classes/Wee/Pager.html +534 -0
- data/doc/rdoc/classes/Wee/Presenter.html +482 -298
- data/doc/rdoc/classes/Wee/Rails.html +114 -0
- data/doc/rdoc/classes/Wee/Rails/ControllerClassMixin.html +192 -0
- data/doc/rdoc/classes/Wee/Rails/ControllerMixin.html +342 -0
- data/doc/rdoc/classes/Wee/Rails/FormTag.html +155 -0
- data/doc/rdoc/classes/Wee/Rails/HtmlCanvasRenderer.html +177 -0
- data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
- data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
- data/doc/rdoc/classes/Wee/Renderer.html +208 -0
- data/doc/rdoc/classes/Wee/RenderingContext.html +175 -3
- data/doc/rdoc/classes/Wee/Request.html +197 -46
- data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
- data/doc/rdoc/classes/Wee/Response.html +44 -43
- data/doc/rdoc/classes/Wee/Session.html +296 -402
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +14 -14
- data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
- data/doc/rdoc/classes/Wee/Utils.html +22 -22
- data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
- data/doc/rdoc/classes/Wee/ValueHolder.html +19 -19
- data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +72 -46
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/INSTALL.html +1 -1
- data/doc/rdoc/files/README.html +8 -12
- data/doc/rdoc/files/lib/cache/cache_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/abstractsession_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/adaptors/fastcgi_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/adaptors/nitro_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/adaptors/rails_rb.html +101 -0
- 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/component_dispatcher_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/login_decoration_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/pager_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components_rb.html +4 -1
- data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/continuation_rb.html +1 -1
- 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/componentrunner_rb.html +110 -0
- data/doc/rdoc/files/lib/wee/core/context_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/idgen_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/page_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/presenter_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/renderer_rb.html +107 -0
- data/doc/rdoc/files/lib/wee/core/snapshot_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/valueholder_rb.html +2 -2
- data/doc/rdoc/files/lib/wee/core_ext_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core_rb.html +7 -14
- data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/examples/calculator_rb.html +107 -0
- data/doc/rdoc/files/lib/wee/examples/counter_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/examples/editable_counter_rb.html +114 -0
- data/doc/rdoc/files/lib/wee/examples/window_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/page_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/pageless/application_rb.html +8 -1
- data/doc/rdoc/files/lib/wee/pageless/request_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/pageless/session_rb.html +2 -1
- data/doc/rdoc/files/lib/wee/pageless_rb.html +1 -1
- 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/renderer/html/writer_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/request_rb.html +5 -4
- data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/response_rb.html +2 -1
- data/doc/rdoc/files/lib/wee/session_rb.html +2 -3
- data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +2 -2
- data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/snapshot_ext_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/template_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/cache_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils_rb.html +1 -1
- data/doc/rdoc/files/lib/wee_rb.html +5 -3
- data/doc/rdoc/fr_class_index.html +34 -2
- data/doc/rdoc/fr_file_index.html +17 -1
- data/doc/rdoc/fr_method_index.html +464 -314
- data/examples/ajax/ajax.rb +1 -1
- data/examples/demo.rb +47 -0
- data/examples/{calendar.rb → demo/calendar.rb} +89 -97
- data/examples/{example.rb → demo/example.rb} +17 -97
- data/examples/dispatcher.rb +37 -0
- data/examples/draw.rb +14 -11
- data/examples/nitro/run.rb +42 -0
- data/examples/radio.rb +44 -0
- data/examples/test.rb +3 -27
- data/lib/wee.rb +15 -3
- data/lib/wee/adaptors/nitro.rb +154 -0
- data/lib/wee/adaptors/rails.rb +154 -0
- data/lib/wee/application.rb +22 -20
- data/lib/wee/components.rb +3 -0
- data/lib/wee/components/component_dispatcher.rb +46 -0
- data/lib/wee/components/login_decoration.rb +35 -0
- data/lib/wee/components/messagebox.rb +2 -2
- data/lib/wee/components/pager.rb +102 -0
- data/lib/wee/continuation/core/component.rb +13 -12
- data/lib/wee/continuation/session.rb +11 -19
- data/lib/wee/core.rb +8 -7
- data/lib/wee/core/component.rb +8 -28
- data/lib/wee/core/componentrunner.rb +73 -0
- data/lib/wee/core/context.rb +27 -0
- data/lib/wee/core/idgen.rb +5 -0
- data/lib/wee/core/page.rb +1 -0
- data/lib/wee/core/presenter.rb +10 -126
- data/lib/wee/core/renderer.rb +23 -0
- data/lib/wee/core_ext.rb +122 -0
- data/lib/wee/databases/og/scaffolder.rb +0 -1
- data/lib/wee/examples/calculator.rb +70 -0
- data/lib/wee/examples/counter.rb +33 -0
- data/lib/wee/examples/editable_counter.rb +31 -0
- data/{examples → lib/wee/examples}/window.rb +29 -23
- data/lib/wee/idgen/md5.rb +1 -1
- data/lib/wee/idgen/simple.rb +1 -1
- data/lib/wee/pageless/session.rb +2 -3
- data/lib/wee/renderer/html/brushes.rb +142 -22
- data/lib/wee/renderer/html/canvas.rb +57 -19
- data/lib/wee/response.rb +3 -2
- data/lib/wee/session.rb +10 -54
- data/lib/wee/skeleton/og/components/main.rb +5 -1
- data/lib/wee/skeleton/og/conf/db.rb +1 -1
- data/lib/wee/snapshot_ext.rb +4 -10
- data/lib/wee/template.rb +19 -5
- data/lib/wee/utils/helper.rb +2 -2
- metadata +90 -13
- data/examples/calculator.rb +0 -67
- data/lib/wee/context.rb +0 -2
@@ -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="#M000020">dec</a>
|
99
|
+
<a href="#M000022">empty?</a>
|
100
|
+
<a href="#M000021">full?</a>
|
101
|
+
<a href="#M000019">inc</a>
|
102
|
+
<a href="#M000018">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-M000018" class="method-detail">
|
138
|
+
<a name="M000018"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
141
|
+
<a href="#M000018" 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('M000018-source');return false;">[Source]</a></p>
|
149
|
+
<div class="method-source-code" id="M000018-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-M000020" class="method-detail">
|
164
|
+
<a name="M000020"></a>
|
165
165
|
|
166
166
|
<div class="method-heading">
|
167
|
-
<a href="#
|
167
|
+
<a href="#M000020" 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('M000020-source');return false;">[Source]</a></p>
|
175
|
+
<div class="method-source-code" id="M000020-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-M000022" class="method-detail">
|
188
|
+
<a name="M000022"></a>
|
189
189
|
|
190
190
|
<div class="method-heading">
|
191
|
-
<a href="#
|
191
|
+
<a href="#M000022" 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('M000022-source');return false;">[Source]</a></p>
|
199
|
+
<div class="method-source-code" id="M000022-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-M000021" class="method-detail">
|
211
|
+
<a name="M000021"></a>
|
212
212
|
|
213
213
|
<div class="method-heading">
|
214
|
-
<a href="#
|
214
|
+
<a href="#M000021" 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('M000021-source');return false;">[Source]</a></p>
|
222
|
+
<div class="method-source-code" id="M000021-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-M000019" class="method-detail">
|
234
|
+
<a name="M000019"></a>
|
235
235
|
|
236
236
|
<div class="method-heading">
|
237
|
-
<a href="#
|
237
|
+
<a href="#M000019" 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('M000019-source');return false;">[Source]</a></p>
|
245
|
+
<div class="method-source-code" id="M000019-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="#M000028">access</a>
|
98
|
+
<a href="#M000029">delete</a>
|
99
|
+
<a href="#M000030">insert_or_extrude</a>
|
100
|
+
<a href="#M000027">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-M000028" class="method-detail">
|
129
|
+
<a name="M000028"></a>
|
130
130
|
|
131
131
|
<div class="method-heading">
|
132
|
-
<a href="#
|
132
|
+
<a href="#M000028" 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('M000028-source');return false;">[Source]</a></p>
|
140
|
+
<div class="method-source-code" id="M000028-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-M000029" class="method-detail">
|
152
|
+
<a name="M000029"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000029" 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('M000029-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000029-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-M000030" class="method-detail">
|
175
|
+
<a name="M000030"></a>
|
176
176
|
|
177
177
|
<div class="method-heading">
|
178
|
-
<a href="#
|
178
|
+
<a href="#M000030" 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('M000030-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000030-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-M000027" class="method-detail">
|
206
|
+
<a name="M000027"></a>
|
207
207
|
|
208
208
|
<div class="method-heading">
|
209
|
-
<a href="#
|
209
|
+
<a href="#M000027" 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('M000027-source');return false;">[Source]</a></p>
|
217
|
+
<div class="method-source-code" id="M000027-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="#M000024">access</a>
|
98
|
+
<a href="#M000025">delete</a>
|
99
|
+
<a href="#M000026">insert_or_extrude</a>
|
100
|
+
<a href="#M000023">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-M000024" class="method-detail">
|
129
|
+
<a name="M000024"></a>
|
130
130
|
|
131
131
|
<div class="method-heading">
|
132
|
-
<a href="#
|
132
|
+
<a href="#M000024" 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('M000024-source');return false;">[Source]</a></p>
|
140
|
+
<div class="method-source-code" id="M000024-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-M000025" class="method-detail">
|
152
|
+
<a name="M000025"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000025" 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('M000025-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000025-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-M000026" class="method-detail">
|
175
|
+
<a name="M000026"></a>
|
176
176
|
|
177
177
|
<div class="method-heading">
|
178
|
-
<a href="#
|
178
|
+
<a href="#M000026" 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('M000026-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000026-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-M000023" class="method-detail">
|
206
|
+
<a name="M000023"></a>
|
207
207
|
|
208
208
|
<div class="method-heading">
|
209
|
-
<a href="#
|
209
|
+
<a href="#M000023" 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('M000023-source');return false;">[Source]</a></p>
|
217
|
+
<div class="method-source-code" id="M000023-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="#M000032">access</a>
|
99
|
+
<a href="#M000033">delete</a>
|
100
|
+
<a href="#M000034">insert_or_extrude</a>
|
101
|
+
<a href="#M000031">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-M000032" class="method-detail">
|
130
|
+
<a name="M000032"></a>
|
131
131
|
|
132
132
|
<div class="method-heading">
|
133
|
-
<a href="#
|
133
|
+
<a href="#M000032" 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('M000032-source');return false;">[Source]</a></p>
|
141
|
+
<div class="method-source-code" id="M000032-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-M000033" class="method-detail">
|
151
|
+
<a name="M000033"></a>
|
152
152
|
|
153
153
|
<div class="method-heading">
|
154
|
-
<a href="#
|
154
|
+
<a href="#M000033" 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('M000033-source');return false;">[Source]</a></p>
|
162
|
+
<div class="method-source-code" id="M000033-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-M000034" class="method-detail">
|
172
|
+
<a name="M000034"></a>
|
173
173
|
|
174
174
|
<div class="method-heading">
|
175
|
-
<a href="#
|
175
|
+
<a href="#M000034" 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('M000034-source');return false;">[Source]</a></p>
|
183
|
+
<div class="method-source-code" id="M000034-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-M000031" class="method-detail">
|
193
|
+
<a name="M000031"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000031" 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('M000031-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000031-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>
|