wee 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. data/ChangeLog +286 -0
  2. data/Features +185 -0
  3. data/doc/rdoc/classes/ActionView.html +107 -0
  4. data/doc/rdoc/classes/ActionView/Base.html +133 -0
  5. data/doc/rdoc/classes/Array.html +7 -59
  6. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  7. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  8. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  9. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  10. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  11. data/doc/rdoc/classes/Enumerable.html +6 -6
  12. data/doc/rdoc/classes/Hash.html +120 -0
  13. data/doc/rdoc/classes/Main.html +58 -34
  14. data/doc/rdoc/classes/Object.html +12 -12
  15. data/doc/rdoc/classes/OgScaffolder.html +165 -166
  16. data/doc/rdoc/classes/OgScaffolder/Editor.html +112 -112
  17. data/doc/rdoc/classes/String.html +7 -59
  18. data/doc/rdoc/classes/Struct.html +14 -14
  19. data/doc/rdoc/classes/Wee.html +70 -6
  20. data/doc/rdoc/classes/Wee/AbstractSession.html +502 -0
  21. data/doc/rdoc/classes/Wee/AnswerDecoration.html +11 -11
  22. data/doc/rdoc/classes/Wee/Application.html +139 -84
  23. data/doc/rdoc/classes/Wee/Brush.html +21 -18
  24. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +90 -17
  25. data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +162 -0
  26. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
  27. data/doc/rdoc/classes/Wee/Brush/FormTag.html +41 -17
  28. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  29. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
  30. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +112 -86
  31. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  32. data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +160 -0
  33. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
  34. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +21 -21
  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/RadioButtonTag.html +234 -0
  39. data/doc/rdoc/classes/Wee/Brush/RadioButtonTag/RadioGroup.html +207 -0
  40. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +124 -28
  41. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +7 -7
  42. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
  43. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  44. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  45. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  46. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
  47. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  48. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -15
  49. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  50. data/doc/rdoc/classes/Wee/CallbackRegistry.html +38 -38
  51. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  52. data/doc/rdoc/classes/Wee/CanvasMixin.html +225 -0
  53. data/doc/rdoc/classes/Wee/Component.html +202 -201
  54. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +7 -7
  55. data/doc/rdoc/classes/Wee/ComponentDispatcher.html +289 -0
  56. data/doc/rdoc/classes/Wee/ComponentRunner.html +321 -0
  57. data/doc/rdoc/classes/Wee/Context.html +63 -3
  58. data/doc/rdoc/classes/Wee/Decoration.html +45 -45
  59. data/doc/rdoc/classes/Wee/Delegate.html +30 -30
  60. data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +164 -0
  61. data/doc/rdoc/classes/Wee/ErrorResponse.html +16 -16
  62. data/doc/rdoc/classes/Wee/Examples.html +114 -0
  63. data/doc/rdoc/classes/Wee/Examples/Calculator.html +319 -0
  64. data/doc/rdoc/classes/Wee/Examples/Counter.html +289 -0
  65. data/doc/rdoc/classes/Wee/Examples/EditableCounter.html +210 -0
  66. data/doc/rdoc/classes/Wee/Examples/Window.html +346 -0
  67. data/doc/rdoc/classes/Wee/FastCGIAdaptor.html +227 -0
  68. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  69. data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
  70. data/doc/rdoc/classes/Wee/HtmlCanvasRenderer.html +1230 -0
  71. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  72. data/doc/rdoc/classes/Wee/IdGenerator.html +148 -0
  73. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +27 -14
  74. data/doc/rdoc/classes/Wee/LoginDecoration.html +261 -0
  75. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +14 -14
  76. data/doc/rdoc/classes/Wee/MessageBox.html +14 -14
  77. data/doc/rdoc/classes/Wee/Nitro.html +114 -0
  78. data/doc/rdoc/classes/Wee/Nitro/ControllerClassMixin.html +192 -0
  79. data/doc/rdoc/classes/Wee/Nitro/ControllerMixin.html +345 -0
  80. data/doc/rdoc/classes/Wee/Nitro/FormTag.html +155 -0
  81. data/doc/rdoc/classes/Wee/Nitro/HtmlCanvasRenderer.html +178 -0
  82. data/doc/rdoc/classes/Wee/Page.html +4 -0
  83. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  84. data/doc/rdoc/classes/Wee/PagelessApplication.html +13 -11
  85. data/doc/rdoc/classes/Wee/PagelessComponentDriver.html +296 -0
  86. data/doc/rdoc/classes/Wee/PagelessRequest.html +52 -21
  87. data/doc/rdoc/classes/Wee/PagelessSession.html +130 -91
  88. data/doc/rdoc/classes/Wee/Pager.html +534 -0
  89. data/doc/rdoc/classes/Wee/Presenter.html +482 -298
  90. data/doc/rdoc/classes/Wee/Rails.html +114 -0
  91. data/doc/rdoc/classes/Wee/Rails/ControllerClassMixin.html +192 -0
  92. data/doc/rdoc/classes/Wee/Rails/ControllerMixin.html +342 -0
  93. data/doc/rdoc/classes/Wee/Rails/FormTag.html +155 -0
  94. data/doc/rdoc/classes/Wee/Rails/HtmlCanvasRenderer.html +177 -0
  95. data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
  96. data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
  97. data/doc/rdoc/classes/Wee/Renderer.html +208 -0
  98. data/doc/rdoc/classes/Wee/RenderingContext.html +175 -3
  99. data/doc/rdoc/classes/Wee/Request.html +197 -46
  100. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  101. data/doc/rdoc/classes/Wee/Response.html +44 -43
  102. data/doc/rdoc/classes/Wee/Session.html +296 -402
  103. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +14 -14
  104. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  105. data/doc/rdoc/classes/Wee/Utils.html +22 -22
  106. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  107. data/doc/rdoc/classes/Wee/ValueHolder.html +19 -19
  108. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +72 -46
  109. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  110. data/doc/rdoc/created.rid +1 -1
  111. data/doc/rdoc/files/INSTALL.html +1 -1
  112. data/doc/rdoc/files/README.html +8 -12
  113. data/doc/rdoc/files/lib/cache/cache_rb.html +1 -1
  114. data/doc/rdoc/files/lib/wee/abstractsession_rb.html +108 -0
  115. data/doc/rdoc/files/lib/wee/adaptors/fastcgi_rb.html +108 -0
  116. data/doc/rdoc/files/lib/wee/adaptors/nitro_rb.html +101 -0
  117. data/doc/rdoc/files/lib/wee/adaptors/rails_rb.html +101 -0
  118. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  119. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  120. data/doc/rdoc/files/lib/wee/components/component_dispatcher_rb.html +108 -0
  121. data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +1 -1
  122. data/doc/rdoc/files/lib/wee/components/login_decoration_rb.html +101 -0
  123. data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +1 -1
  124. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  125. data/doc/rdoc/files/lib/wee/components/pager_rb.html +101 -0
  126. data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +1 -1
  127. data/doc/rdoc/files/lib/wee/components_rb.html +4 -1
  128. data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +1 -1
  129. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -1
  130. data/doc/rdoc/files/lib/wee/continuation_rb.html +1 -1
  131. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  132. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  133. data/doc/rdoc/files/lib/wee/core/componentrunner_rb.html +110 -0
  134. data/doc/rdoc/files/lib/wee/core/context_rb.html +101 -0
  135. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
  136. data/doc/rdoc/files/lib/wee/core/idgen_rb.html +101 -0
  137. data/doc/rdoc/files/lib/wee/core/page_rb.html +101 -0
  138. data/doc/rdoc/files/lib/wee/core/presenter_rb.html +1 -1
  139. data/doc/rdoc/files/lib/wee/core/renderer_rb.html +107 -0
  140. data/doc/rdoc/files/lib/wee/core/snapshot_rb.html +1 -1
  141. data/doc/rdoc/files/lib/wee/core/valueholder_rb.html +2 -2
  142. data/doc/rdoc/files/lib/wee/core_ext_rb.html +101 -0
  143. data/doc/rdoc/files/lib/wee/core_rb.html +7 -14
  144. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +1 -1
  145. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +1 -1
  146. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +1 -1
  147. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +1 -1
  148. data/doc/rdoc/files/lib/wee/databases/og_rb.html +1 -1
  149. data/doc/rdoc/files/lib/wee/examples/calculator_rb.html +107 -0
  150. data/doc/rdoc/files/lib/wee/examples/counter_rb.html +101 -0
  151. data/doc/rdoc/files/lib/wee/examples/editable_counter_rb.html +114 -0
  152. data/doc/rdoc/files/lib/wee/examples/window_rb.html +101 -0
  153. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +1 -1
  154. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +1 -1
  155. data/doc/rdoc/files/lib/wee/page_rb.html +1 -1
  156. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +8 -1
  157. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +1 -1
  158. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +2 -1
  159. data/doc/rdoc/files/lib/wee/pageless_rb.html +1 -1
  160. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  161. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  162. data/doc/rdoc/files/lib/wee/renderer/html/writer_rb.html +1 -1
  163. data/doc/rdoc/files/lib/wee/request_rb.html +5 -4
  164. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  165. data/doc/rdoc/files/lib/wee/response_rb.html +2 -1
  166. data/doc/rdoc/files/lib/wee/session_rb.html +2 -3
  167. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +1 -1
  168. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +2 -2
  169. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +1 -1
  170. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +1 -1
  171. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +1 -1
  172. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +1 -1
  173. data/doc/rdoc/files/lib/wee/snapshot_ext_rb.html +1 -1
  174. data/doc/rdoc/files/lib/wee/template_rb.html +1 -1
  175. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  176. data/doc/rdoc/files/lib/wee/utils/cache_rb.html +1 -1
  177. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
  178. data/doc/rdoc/files/lib/wee/utils_rb.html +1 -1
  179. data/doc/rdoc/files/lib/wee_rb.html +5 -3
  180. data/doc/rdoc/fr_class_index.html +34 -2
  181. data/doc/rdoc/fr_file_index.html +17 -1
  182. data/doc/rdoc/fr_method_index.html +464 -314
  183. data/examples/ajax/ajax.rb +1 -1
  184. data/examples/demo.rb +47 -0
  185. data/examples/{calendar.rb → demo/calendar.rb} +89 -97
  186. data/examples/{example.rb → demo/example.rb} +17 -97
  187. data/examples/dispatcher.rb +37 -0
  188. data/examples/draw.rb +14 -11
  189. data/examples/nitro/run.rb +42 -0
  190. data/examples/radio.rb +44 -0
  191. data/examples/test.rb +3 -27
  192. data/lib/wee.rb +15 -3
  193. data/lib/wee/adaptors/nitro.rb +154 -0
  194. data/lib/wee/adaptors/rails.rb +154 -0
  195. data/lib/wee/application.rb +22 -20
  196. data/lib/wee/components.rb +3 -0
  197. data/lib/wee/components/component_dispatcher.rb +46 -0
  198. data/lib/wee/components/login_decoration.rb +35 -0
  199. data/lib/wee/components/messagebox.rb +2 -2
  200. data/lib/wee/components/pager.rb +102 -0
  201. data/lib/wee/continuation/core/component.rb +13 -12
  202. data/lib/wee/continuation/session.rb +11 -19
  203. data/lib/wee/core.rb +8 -7
  204. data/lib/wee/core/component.rb +8 -28
  205. data/lib/wee/core/componentrunner.rb +73 -0
  206. data/lib/wee/core/context.rb +27 -0
  207. data/lib/wee/core/idgen.rb +5 -0
  208. data/lib/wee/core/page.rb +1 -0
  209. data/lib/wee/core/presenter.rb +10 -126
  210. data/lib/wee/core/renderer.rb +23 -0
  211. data/lib/wee/core_ext.rb +122 -0
  212. data/lib/wee/databases/og/scaffolder.rb +0 -1
  213. data/lib/wee/examples/calculator.rb +70 -0
  214. data/lib/wee/examples/counter.rb +33 -0
  215. data/lib/wee/examples/editable_counter.rb +31 -0
  216. data/{examples → lib/wee/examples}/window.rb +29 -23
  217. data/lib/wee/idgen/md5.rb +1 -1
  218. data/lib/wee/idgen/simple.rb +1 -1
  219. data/lib/wee/pageless/session.rb +2 -3
  220. data/lib/wee/renderer/html/brushes.rb +142 -22
  221. data/lib/wee/renderer/html/canvas.rb +57 -19
  222. data/lib/wee/response.rb +3 -2
  223. data/lib/wee/session.rb +10 -54
  224. data/lib/wee/skeleton/og/components/main.rb +5 -1
  225. data/lib/wee/skeleton/og/conf/db.rb +1 -1
  226. data/lib/wee/snapshot_ext.rb +4 -10
  227. data/lib/wee/template.rb +19 -5
  228. data/lib/wee/utils/helper.rb +2 -2
  229. metadata +90 -13
  230. data/examples/calculator.rb +0 -67
  231. 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="#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;
98
+ <a href="#M000020">dec</a>&nbsp;&nbsp;
99
+ <a href="#M000022">empty?</a>&nbsp;&nbsp;
100
+ <a href="#M000021">full?</a>&nbsp;&nbsp;
101
+ <a href="#M000019">inc</a>&nbsp;&nbsp;
102
+ <a href="#M000018">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-M000019" class="method-detail">
138
- <a name="M000019"></a>
137
+ <div id="method-M000018" class="method-detail">
138
+ <a name="M000018"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="#M000019" class="method-signature">
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('M000019-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000019-source">
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-M000021" class="method-detail">
164
- <a name="M000021"></a>
163
+ <div id="method-M000020" class="method-detail">
164
+ <a name="M000020"></a>
165
165
 
166
166
  <div class="method-heading">
167
- <a href="#M000021" class="method-signature">
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('M000021-source');return false;">[Source]</a></p>
175
- <div class="method-source-code" id="M000021-source">
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-M000023" class="method-detail">
188
- <a name="M000023"></a>
187
+ <div id="method-M000022" class="method-detail">
188
+ <a name="M000022"></a>
189
189
 
190
190
  <div class="method-heading">
191
- <a href="#M000023" class="method-signature">
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('M000023-source');return false;">[Source]</a></p>
199
- <div class="method-source-code" id="M000023-source">
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-M000022" class="method-detail">
211
- <a name="M000022"></a>
210
+ <div id="method-M000021" class="method-detail">
211
+ <a name="M000021"></a>
212
212
 
213
213
  <div class="method-heading">
214
- <a href="#M000022" class="method-signature">
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('M000022-source');return false;">[Source]</a></p>
222
- <div class="method-source-code" id="M000022-source">
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-M000020" class="method-detail">
234
- <a name="M000020"></a>
233
+ <div id="method-M000019" class="method-detail">
234
+ <a name="M000019"></a>
235
235
 
236
236
  <div class="method-heading">
237
- <a href="#M000020" class="method-signature">
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('M000020-source');return false;">[Source]</a></p>
245
- <div class="method-source-code" id="M000020-source">
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="#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;
97
+ <a href="#M000028">access</a>&nbsp;&nbsp;
98
+ <a href="#M000029">delete</a>&nbsp;&nbsp;
99
+ <a href="#M000030">insert_or_extrude</a>&nbsp;&nbsp;
100
+ <a href="#M000027">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-M000029" class="method-detail">
129
- <a name="M000029"></a>
128
+ <div id="method-M000028" class="method-detail">
129
+ <a name="M000028"></a>
130
130
 
131
131
  <div class="method-heading">
132
- <a href="#M000029" class="method-signature">
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('M000029-source');return false;">[Source]</a></p>
140
- <div class="method-source-code" id="M000029-source">
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-M000030" class="method-detail">
152
- <a name="M000030"></a>
151
+ <div id="method-M000029" class="method-detail">
152
+ <a name="M000029"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000030" class="method-signature">
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('M000030-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000030-source">
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-M000031" class="method-detail">
175
- <a name="M000031"></a>
174
+ <div id="method-M000030" class="method-detail">
175
+ <a name="M000030"></a>
176
176
 
177
177
  <div class="method-heading">
178
- <a href="#M000031" class="method-signature">
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('M000031-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000031-source">
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-M000028" class="method-detail">
206
- <a name="M000028"></a>
205
+ <div id="method-M000027" class="method-detail">
206
+ <a name="M000027"></a>
207
207
 
208
208
  <div class="method-heading">
209
- <a href="#M000028" class="method-signature">
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('M000028-source');return false;">[Source]</a></p>
217
- <div class="method-source-code" id="M000028-source">
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="#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;
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;
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-M000025" class="method-detail">
129
- <a name="M000025"></a>
128
+ <div id="method-M000024" class="method-detail">
129
+ <a name="M000024"></a>
130
130
 
131
131
  <div class="method-heading">
132
- <a href="#M000025" class="method-signature">
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('M000025-source');return false;">[Source]</a></p>
140
- <div class="method-source-code" id="M000025-source">
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-M000026" class="method-detail">
152
- <a name="M000026"></a>
151
+ <div id="method-M000025" class="method-detail">
152
+ <a name="M000025"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000026" class="method-signature">
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('M000026-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000026-source">
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-M000027" class="method-detail">
175
- <a name="M000027"></a>
174
+ <div id="method-M000026" class="method-detail">
175
+ <a name="M000026"></a>
176
176
 
177
177
  <div class="method-heading">
178
- <a href="#M000027" class="method-signature">
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('M000027-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000027-source">
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-M000024" class="method-detail">
206
- <a name="M000024"></a>
205
+ <div id="method-M000023" class="method-detail">
206
+ <a name="M000023"></a>
207
207
 
208
208
  <div class="method-heading">
209
- <a href="#M000024" class="method-signature">
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('M000024-source');return false;">[Source]</a></p>
217
- <div class="method-source-code" id="M000024-source">
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="#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;
98
+ <a href="#M000032">access</a>&nbsp;&nbsp;
99
+ <a href="#M000033">delete</a>&nbsp;&nbsp;
100
+ <a href="#M000034">insert_or_extrude</a>&nbsp;&nbsp;
101
+ <a href="#M000031">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-M000033" class="method-detail">
130
- <a name="M000033"></a>
129
+ <div id="method-M000032" class="method-detail">
130
+ <a name="M000032"></a>
131
131
 
132
132
  <div class="method-heading">
133
- <a href="#M000033" class="method-signature">
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('M000033-source');return false;">[Source]</a></p>
141
- <div class="method-source-code" id="M000033-source">
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-M000034" class="method-detail">
151
- <a name="M000034"></a>
150
+ <div id="method-M000033" class="method-detail">
151
+ <a name="M000033"></a>
152
152
 
153
153
  <div class="method-heading">
154
- <a href="#M000034" class="method-signature">
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('M000034-source');return false;">[Source]</a></p>
162
- <div class="method-source-code" id="M000034-source">
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-M000035" class="method-detail">
172
- <a name="M000035"></a>
171
+ <div id="method-M000034" class="method-detail">
172
+ <a name="M000034"></a>
173
173
 
174
174
  <div class="method-heading">
175
- <a href="#M000035" class="method-signature">
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('M000035-source');return false;">[Source]</a></p>
183
- <div class="method-source-code" id="M000035-source">
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-M000032" class="method-detail">
193
- <a name="M000032"></a>
192
+ <div id="method-M000031" class="method-detail">
193
+ <a name="M000031"></a>
194
194
 
195
195
  <div class="method-heading">
196
- <a href="#M000032" class="method-signature">
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('M000032-source');return false;">[Source]</a></p>
204
- <div class="method-source-code" id="M000032-source">
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>