wee 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. data/ChangeLog +132 -0
  2. data/INSTALL +13 -3
  3. data/README +3 -3
  4. data/Rakefile +5 -1
  5. data/bin/wee +100 -0
  6. data/doc/rdoc/classes/Array.html +12 -12
  7. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  8. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  9. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  10. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  11. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  12. data/doc/rdoc/classes/Enumerable.html +6 -6
  13. data/doc/rdoc/classes/Main.html +265 -0
  14. data/doc/rdoc/classes/Object.html +12 -12
  15. data/doc/rdoc/classes/OgApplication.html +2 -2
  16. data/doc/rdoc/classes/OgScaffolder.html +444 -64
  17. data/doc/rdoc/classes/OgScaffolder/Editor.html +490 -0
  18. data/doc/rdoc/classes/OgSession.html +4 -4
  19. data/doc/rdoc/classes/Recipe.html +113 -0
  20. data/doc/rdoc/classes/String.html +12 -12
  21. data/doc/rdoc/classes/Struct.html +12 -12
  22. data/doc/rdoc/classes/Wee.html +10 -1
  23. data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
  24. data/doc/rdoc/classes/Wee/Application.html +48 -47
  25. data/doc/rdoc/classes/Wee/Brush.html +19 -23
  26. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +17 -14
  27. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +20 -14
  28. data/doc/rdoc/classes/Wee/Brush/FormTag.html +25 -21
  29. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  30. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
  31. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +234 -100
  32. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  33. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +28 -22
  34. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +23 -24
  35. data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
  36. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
  37. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  38. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +33 -57
  39. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +154 -0
  40. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
  41. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +20 -14
  42. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  43. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  44. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
  45. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  46. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +27 -21
  47. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +20 -14
  48. data/doc/rdoc/classes/Wee/CallbackRegistry.html +64 -36
  49. data/doc/rdoc/classes/Wee/CallbackStream.html +21 -21
  50. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  51. data/doc/rdoc/classes/Wee/Component.html +179 -151
  52. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +12 -12
  53. data/doc/rdoc/classes/Wee/Decoration.html +42 -42
  54. data/doc/rdoc/classes/Wee/Delegate.html +27 -27
  55. data/doc/rdoc/classes/Wee/ErrorResponse.html +14 -14
  56. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  57. data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
  58. data/doc/rdoc/classes/Wee/HtmlCanvas.html +326 -219
  59. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  60. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +19 -19
  61. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +181 -0
  62. data/doc/rdoc/classes/Wee/MessageBox.html +12 -12
  63. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  64. data/doc/rdoc/classes/Wee/PagelessApplication.html +152 -0
  65. data/doc/rdoc/classes/Wee/PagelessRequest.html +177 -0
  66. data/doc/rdoc/classes/Wee/PagelessSession.html +320 -0
  67. data/doc/rdoc/classes/Wee/Presenter.html +145 -89
  68. data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
  69. data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
  70. data/doc/rdoc/classes/Wee/Request.html +116 -50
  71. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  72. data/doc/rdoc/classes/Wee/Response.html +76 -28
  73. data/doc/rdoc/classes/Wee/Session.html +129 -506
  74. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +22 -40
  75. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  76. data/doc/rdoc/classes/Wee/Utils.html +70 -17
  77. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  78. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  79. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +82 -49
  80. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  81. data/doc/rdoc/created.rid +1 -1
  82. data/doc/rdoc/files/INSTALL.html +17 -5
  83. data/doc/rdoc/files/README.html +9 -11
  84. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  85. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  86. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  87. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -3
  88. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  89. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  90. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  91. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +101 -0
  92. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +101 -0
  93. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +108 -0
  94. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +101 -0
  95. data/doc/rdoc/files/lib/wee/databases/og_rb.html +4 -1
  96. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +115 -0
  97. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +107 -0
  98. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +101 -0
  99. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +101 -0
  100. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +108 -0
  101. data/doc/rdoc/files/lib/wee/pageless_rb.html +110 -0
  102. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  103. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +8 -1
  104. data/doc/rdoc/files/lib/wee/request_rb.html +1 -1
  105. data/doc/rdoc/files/lib/wee/response_rb.html +1 -1
  106. data/doc/rdoc/files/lib/wee/session_rb.html +1 -1
  107. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +101 -0
  108. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +114 -0
  109. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +101 -0
  110. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +115 -0
  111. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +101 -0
  112. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +111 -0
  113. data/doc/rdoc/files/lib/wee/template_rb.html +101 -0
  114. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  115. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
  116. data/doc/rdoc/files/lib/wee_rb.html +4 -2
  117. data/doc/rdoc/fr_class_index.html +8 -4
  118. data/doc/rdoc/fr_file_index.html +17 -1
  119. data/doc/rdoc/fr_method_index.html +312 -267
  120. data/examples/live-update.rb +1 -1
  121. data/install.rb +14 -0
  122. data/lib/wee.rb +6 -2
  123. data/lib/wee/adaptors/webrick.rb +17 -5
  124. data/lib/wee/application.rb +2 -1
  125. data/lib/wee/continuation/session.rb +1 -146
  126. data/lib/wee/core/callback.rb +11 -5
  127. data/lib/wee/core/component.rb +14 -10
  128. data/lib/wee/databases/og.rb +3 -113
  129. data/lib/wee/databases/og/application.rb +3 -0
  130. data/lib/wee/databases/og/old_scaffolder.rb +98 -0
  131. data/lib/wee/databases/og/scaffolder.rb +174 -0
  132. data/lib/wee/databases/og/session.rb +9 -0
  133. data/lib/wee/idgen/md5.rb +21 -0
  134. data/lib/wee/{idgen.rb → idgen/simple.rb} +2 -4
  135. data/lib/wee/pageless.rb +3 -0
  136. data/lib/wee/pageless/application.rb +9 -0
  137. data/lib/wee/pageless/request.rb +15 -0
  138. data/lib/wee/pageless/session.rb +89 -0
  139. data/lib/wee/renderer/html/brushes.rb +100 -115
  140. data/lib/wee/renderer/html/canvas.rb +32 -2
  141. data/lib/wee/request.rb +36 -24
  142. data/lib/wee/response.rb +8 -1
  143. data/lib/wee/session.rb +13 -7
  144. data/lib/wee/skeleton/og/README +38 -0
  145. data/lib/wee/skeleton/og/components/main.rb +16 -0
  146. data/lib/wee/skeleton/og/conf/db.rb +8 -0
  147. data/lib/wee/skeleton/og/models/recipe.rb +5 -0
  148. data/lib/wee/skeleton/og/run.rb +23 -0
  149. data/lib/wee/skeleton/simple/README +32 -0
  150. data/lib/wee/skeleton/simple/components/main.rb +25 -0
  151. data/lib/wee/skeleton/simple/run.rb +12 -0
  152. data/lib/wee/template.rb +28 -0
  153. data/lib/wee/utils/autoreload.rb +29 -0
  154. data/lib/wee/utils/helper.rb +9 -5
  155. data/test/test_request.rb +4 -3
  156. data/wee.gemspec +3 -1
  157. 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="#M000016">dec</a>&nbsp;&nbsp;
99
- <a href="#M000018">empty?</a>&nbsp;&nbsp;
100
- <a href="#M000017">full?</a>&nbsp;&nbsp;
101
- <a href="#M000015">inc</a>&nbsp;&nbsp;
102
- <a href="#M000014">new</a>&nbsp;&nbsp;
98
+ <a href="#M000021">dec</a>&nbsp;&nbsp;
99
+ <a href="#M000023">empty?</a>&nbsp;&nbsp;
100
+ <a href="#M000022">full?</a>&nbsp;&nbsp;
101
+ <a href="#M000020">inc</a>&nbsp;&nbsp;
102
+ <a href="#M000019">new</a>&nbsp;&nbsp;
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-M000014" class="method-detail">
138
- <a name="M000014"></a>
137
+ <div id="method-M000019" class="method-detail">
138
+ <a name="M000019"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="#M000014" class="method-signature">
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('M000014-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000014-source">
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-M000016" class="method-detail">
164
- <a name="M000016"></a>
163
+ <div id="method-M000021" class="method-detail">
164
+ <a name="M000021"></a>
165
165
 
166
166
  <div class="method-heading">
167
- <a href="#M000016" class="method-signature">
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('M000016-source');return false;">[Source]</a></p>
175
- <div class="method-source-code" id="M000016-source">
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-M000018" class="method-detail">
188
- <a name="M000018"></a>
187
+ <div id="method-M000023" class="method-detail">
188
+ <a name="M000023"></a>
189
189
 
190
190
  <div class="method-heading">
191
- <a href="#M000018" class="method-signature">
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('M000018-source');return false;">[Source]</a></p>
199
- <div class="method-source-code" id="M000018-source">
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-M000017" class="method-detail">
211
- <a name="M000017"></a>
210
+ <div id="method-M000022" class="method-detail">
211
+ <a name="M000022"></a>
212
212
 
213
213
  <div class="method-heading">
214
- <a href="#M000017" class="method-signature">
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('M000017-source');return false;">[Source]</a></p>
222
- <div class="method-source-code" id="M000017-source">
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-M000015" class="method-detail">
234
- <a name="M000015"></a>
233
+ <div id="method-M000020" class="method-detail">
234
+ <a name="M000020"></a>
235
235
 
236
236
  <div class="method-heading">
237
- <a href="#M000015" class="method-signature">
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('M000015-source');return false;">[Source]</a></p>
245
- <div class="method-source-code" id="M000015-source">
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="#M000024">access</a>&nbsp;&nbsp;
98
- <a href="#M000025">delete</a>&nbsp;&nbsp;
99
- <a href="#M000026">insert_or_extrude</a>&nbsp;&nbsp;
100
- <a href="#M000023">item_class</a>&nbsp;&nbsp;
97
+ <a href="#M000029">access</a>&nbsp;&nbsp;
98
+ <a href="#M000030">delete</a>&nbsp;&nbsp;
99
+ <a href="#M000031">insert_or_extrude</a>&nbsp;&nbsp;
100
+ <a href="#M000028">item_class</a>&nbsp;&nbsp;
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-M000024" class="method-detail">
129
- <a name="M000024"></a>
128
+ <div id="method-M000029" class="method-detail">
129
+ <a name="M000029"></a>
130
130
 
131
131
  <div class="method-heading">
132
- <a href="#M000024" class="method-signature">
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('M000024-source');return false;">[Source]</a></p>
140
- <div class="method-source-code" id="M000024-source">
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-M000025" class="method-detail">
152
- <a name="M000025"></a>
151
+ <div id="method-M000030" class="method-detail">
152
+ <a name="M000030"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000025" class="method-signature">
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('M000025-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000025-source">
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-M000026" class="method-detail">
175
- <a name="M000026"></a>
174
+ <div id="method-M000031" class="method-detail">
175
+ <a name="M000031"></a>
176
176
 
177
177
  <div class="method-heading">
178
- <a href="#M000026" class="method-signature">
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('M000026-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000026-source">
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-M000023" class="method-detail">
206
- <a name="M000023"></a>
205
+ <div id="method-M000028" class="method-detail">
206
+ <a name="M000028"></a>
207
207
 
208
208
  <div class="method-heading">
209
- <a href="#M000023" class="method-signature">
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('M000023-source');return false;">[Source]</a></p>
217
- <div class="method-source-code" id="M000023-source">
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="#M000020">access</a>&nbsp;&nbsp;
98
- <a href="#M000021">delete</a>&nbsp;&nbsp;
99
- <a href="#M000022">insert_or_extrude</a>&nbsp;&nbsp;
100
- <a href="#M000019">item_class</a>&nbsp;&nbsp;
97
+ <a href="#M000025">access</a>&nbsp;&nbsp;
98
+ <a href="#M000026">delete</a>&nbsp;&nbsp;
99
+ <a href="#M000027">insert_or_extrude</a>&nbsp;&nbsp;
100
+ <a href="#M000024">item_class</a>&nbsp;&nbsp;
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-M000020" class="method-detail">
129
- <a name="M000020"></a>
128
+ <div id="method-M000025" class="method-detail">
129
+ <a name="M000025"></a>
130
130
 
131
131
  <div class="method-heading">
132
- <a href="#M000020" class="method-signature">
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('M000020-source');return false;">[Source]</a></p>
140
- <div class="method-source-code" id="M000020-source">
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-M000021" class="method-detail">
152
- <a name="M000021"></a>
151
+ <div id="method-M000026" class="method-detail">
152
+ <a name="M000026"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000021" class="method-signature">
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('M000021-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000021-source">
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-M000022" class="method-detail">
175
- <a name="M000022"></a>
174
+ <div id="method-M000027" class="method-detail">
175
+ <a name="M000027"></a>
176
176
 
177
177
  <div class="method-heading">
178
- <a href="#M000022" class="method-signature">
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('M000022-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000022-source">
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-M000019" class="method-detail">
206
- <a name="M000019"></a>
205
+ <div id="method-M000024" class="method-detail">
206
+ <a name="M000024"></a>
207
207
 
208
208
  <div class="method-heading">
209
- <a href="#M000019" class="method-signature">
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('M000019-source');return false;">[Source]</a></p>
217
- <div class="method-source-code" id="M000019-source">
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="#M000028">access</a>&nbsp;&nbsp;
99
- <a href="#M000029">delete</a>&nbsp;&nbsp;
100
- <a href="#M000030">insert_or_extrude</a>&nbsp;&nbsp;
101
- <a href="#M000027">item_class</a>&nbsp;&nbsp;
98
+ <a href="#M000033">access</a>&nbsp;&nbsp;
99
+ <a href="#M000034">delete</a>&nbsp;&nbsp;
100
+ <a href="#M000035">insert_or_extrude</a>&nbsp;&nbsp;
101
+ <a href="#M000032">item_class</a>&nbsp;&nbsp;
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-M000028" class="method-detail">
130
- <a name="M000028"></a>
129
+ <div id="method-M000033" class="method-detail">
130
+ <a name="M000033"></a>
131
131
 
132
132
  <div class="method-heading">
133
- <a href="#M000028" class="method-signature">
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('M000028-source');return false;">[Source]</a></p>
141
- <div class="method-source-code" id="M000028-source">
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-M000029" class="method-detail">
151
- <a name="M000029"></a>
150
+ <div id="method-M000034" class="method-detail">
151
+ <a name="M000034"></a>
152
152
 
153
153
  <div class="method-heading">
154
- <a href="#M000029" class="method-signature">
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('M000029-source');return false;">[Source]</a></p>
162
- <div class="method-source-code" id="M000029-source">
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-M000030" class="method-detail">
172
- <a name="M000030"></a>
171
+ <div id="method-M000035" class="method-detail">
172
+ <a name="M000035"></a>
173
173
 
174
174
  <div class="method-heading">
175
- <a href="#M000030" class="method-signature">
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('M000030-source');return false;">[Source]</a></p>
183
- <div class="method-source-code" id="M000030-source">
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-M000027" class="method-detail">
193
- <a name="M000027"></a>
192
+ <div id="method-M000032" class="method-detail">
193
+ <a name="M000032"></a>
194
194
 
195
195
  <div class="method-heading">
196
- <a href="#M000027" class="method-signature">
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('M000027-source');return false;">[Source]</a></p>
204
- <div class="method-source-code" id="M000027-source">
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>