wee 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. data/TODO +31 -0
  2. data/benchmark.rb +37 -0
  3. data/demo.ru +11 -0
  4. data/doc/rdoc/classes/Array.html +22 -26
  5. data/doc/rdoc/classes/Hash.html +22 -26
  6. data/doc/rdoc/classes/Object.html +21 -26
  7. data/doc/rdoc/classes/String.html +19 -87
  8. data/doc/rdoc/classes/Struct.html +22 -26
  9. data/doc/rdoc/classes/Wee.html +75 -206
  10. data/doc/rdoc/classes/Wee/AnswerDecoration.html +35 -66
  11. data/doc/rdoc/classes/Wee/AnswerDecoration/Answer.html +28 -46
  12. data/doc/rdoc/classes/Wee/Application.html +63 -114
  13. data/doc/rdoc/classes/Wee/Application/SessionCache.html +30 -44
  14. data/doc/rdoc/classes/Wee/Brush.html +52 -101
  15. data/doc/rdoc/classes/Wee/Brush/ActionInputTag.html +29 -51
  16. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +44 -101
  17. data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +43 -76
  18. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +29 -46
  19. data/doc/rdoc/classes/Wee/Brush/FormTag.html +48 -110
  20. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +30 -42
  21. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +37 -58
  22. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +93 -210
  23. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +38 -63
  24. data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +29 -45
  25. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +35 -52
  26. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +28 -61
  27. data/doc/rdoc/classes/Wee/Brush/InputTag.html +34 -107
  28. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +28 -54
  29. data/doc/rdoc/classes/Wee/Brush/Page.html +39 -73
  30. data/doc/rdoc/classes/Wee/Brush/PasswordInputTag.html +29 -45
  31. data/doc/rdoc/classes/Wee/Brush/RadioButtonTag.html +54 -98
  32. data/doc/rdoc/classes/Wee/Brush/RadioGroup.html +46 -84
  33. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +87 -187
  34. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +29 -56
  35. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +29 -45
  36. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +28 -55
  37. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +28 -55
  38. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +56 -113
  39. data/doc/rdoc/classes/Wee/Brush/TableTag.html +27 -58
  40. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -140
  41. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +29 -45
  42. data/doc/rdoc/classes/Wee/CallAnswerMixin.html +51 -79
  43. data/doc/rdoc/classes/Wee/CallbackMixin.html +44 -77
  44. data/doc/rdoc/classes/Wee/CallbackRegistry.html +69 -125
  45. data/doc/rdoc/classes/Wee/Callbacks.html +43 -82
  46. data/doc/rdoc/classes/Wee/Component.html +142 -292
  47. data/doc/rdoc/classes/Wee/Decoration.html +85 -141
  48. data/doc/rdoc/classes/Wee/DecorationMixin.html +111 -118
  49. data/doc/rdoc/classes/Wee/Delegate.html +72 -115
  50. data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +37 -54
  51. data/doc/rdoc/classes/Wee/ErrorResponse.html +31 -48
  52. data/doc/rdoc/classes/Wee/FormDecoration.html +32 -46
  53. data/doc/rdoc/classes/Wee/GenericResponse.html +30 -50
  54. data/doc/rdoc/classes/Wee/HtmlCanvas.html +209 -562
  55. data/doc/rdoc/classes/Wee/HtmlDocument.html +51 -91
  56. data/doc/rdoc/classes/Wee/HtmlWriter.html +76 -156
  57. data/doc/rdoc/classes/Wee/IdGenerator.html +28 -44
  58. data/doc/rdoc/classes/Wee/IdGenerator/Secure.html +53 -95
  59. data/doc/rdoc/classes/Wee/IdGenerator/Sequential.html +37 -63
  60. data/doc/rdoc/classes/Wee/JQuery.html +36 -64
  61. data/doc/rdoc/classes/Wee/LRUCache.html +94 -189
  62. data/doc/rdoc/classes/Wee/LRUCache/Item.html +30 -42
  63. data/doc/rdoc/classes/Wee/ObjectSnapshotMixin.html +37 -54
  64. data/doc/rdoc/classes/Wee/PageDecoration.html +48 -79
  65. data/doc/rdoc/classes/Wee/Presenter.html +86 -143
  66. data/doc/rdoc/classes/Wee/RedirectResponse.html +31 -49
  67. data/doc/rdoc/classes/Wee/RefreshResponse.html +34 -48
  68. data/doc/rdoc/classes/Wee/Renderer.html +56 -125
  69. data/doc/rdoc/classes/Wee/Request.html +57 -115
  70. data/doc/rdoc/classes/Wee/Response.html +24 -26
  71. data/doc/rdoc/classes/Wee/Session.html +137 -292
  72. data/doc/rdoc/classes/Wee/Session/AbortCallbackProcessing.html +29 -46
  73. data/doc/rdoc/classes/Wee/Session/MutexSerializer.html +29 -42
  74. data/doc/rdoc/classes/Wee/Session/Page.html +22 -21
  75. data/doc/rdoc/classes/Wee/Session/ThreadSerializer.html +36 -60
  76. data/doc/rdoc/classes/Wee/State.html +57 -105
  77. data/doc/rdoc/classes/Wee/State/Snapshot.html +22 -21
  78. data/doc/rdoc/classes/Wee/State/SnapshotIVars.html +22 -21
  79. data/doc/rdoc/classes/Wee/StructSnapshotMixin.html +37 -54
  80. data/doc/rdoc/classes/Wee/WrapperDecoration.html +42 -68
  81. data/doc/rdoc/created.rid +1 -1
  82. data/doc/rdoc/files/README_rdoc.html +26 -17
  83. data/doc/rdoc/files/lib/wee/application_rb.html +25 -19
  84. data/doc/rdoc/files/lib/wee/call_answer_rb.html +23 -12
  85. data/doc/rdoc/files/lib/wee/callback_rb.html +23 -12
  86. data/doc/rdoc/files/lib/wee/component_rb.html +25 -19
  87. data/doc/rdoc/files/lib/wee/decoration_rb.html +23 -15
  88. data/doc/rdoc/files/lib/wee/html_brushes_rb.html +23 -12
  89. data/doc/rdoc/files/lib/wee/html_canvas_rb.html +23 -15
  90. data/doc/rdoc/files/lib/wee/html_document_rb.html +23 -15
  91. data/doc/rdoc/files/lib/wee/html_writer_rb.html +23 -15
  92. data/doc/rdoc/files/lib/wee/id_generator_rb.html +24 -17
  93. data/doc/rdoc/files/lib/wee/jquery/jquery_rb.html +23 -12
  94. data/doc/rdoc/files/lib/wee/jquery_rb.html +23 -15
  95. data/doc/rdoc/files/lib/wee/lru_cache_rb.html +23 -12
  96. data/doc/rdoc/files/lib/wee/presenter_rb.html +23 -12
  97. data/doc/rdoc/files/lib/wee/renderer_rb.html +23 -12
  98. data/doc/rdoc/files/lib/wee/request_rb.html +23 -15
  99. data/doc/rdoc/files/lib/wee/response_rb.html +24 -17
  100. data/doc/rdoc/files/lib/wee/session_rb.html +26 -21
  101. data/doc/rdoc/files/lib/wee/state_rb.html +23 -12
  102. data/doc/rdoc/files/lib/wee_rb.html +37 -47
  103. data/doc/rdoc/fr_class_index.html +12 -86
  104. data/doc/rdoc/fr_file_index.html +12 -30
  105. data/doc/rdoc/fr_method_index.html +242 -473
  106. data/doc/rdoc/index.html +8 -5
  107. data/doc/rdoc/rdoc-style.css +119 -210
  108. data/examples/ObjectSpaceBrowser.rb +4 -4
  109. data/examples/TODO +21 -0
  110. data/examples/ajax.rb +6 -4
  111. data/examples/blog.rb +42 -0
  112. data/examples/demo.rb +5 -3
  113. data/examples/demo/calculator.rb +3 -3
  114. data/examples/demo/calendar.rb +4 -4
  115. data/examples/demo/counter.rb +2 -2
  116. data/examples/demo/editable_counter.rb +2 -2
  117. data/examples/demo/example.rb +25 -16
  118. data/examples/demo/window.rb +10 -3
  119. data/examples/hw2.rb +17 -0
  120. data/examples/recipe/description.rb +170 -0
  121. data/examples/recipe/migrations/001_create_recipes.rb +13 -0
  122. data/examples/recipe/model.rb +27 -0
  123. data/examples/recipe/models/recipe.rb +18 -0
  124. data/examples/recipe/recipe_editor.rb +28 -0
  125. data/lib/wee.rb +1 -7
  126. data/lib/wee/component.rb +37 -74
  127. data/lib/wee/decoration.rb +16 -15
  128. data/lib/wee/html_brushes.rb +16 -17
  129. data/lib/wee/presenter.rb +2 -1
  130. data/lib/wee/response.rb +4 -4
  131. data/lib/wee/session.rb +2 -2
  132. data/lib/wee/state.rb +2 -2
  133. data/test/t.rb +67 -0
  134. data/wee.gemspec +1 -1
  135. metadata +157 -167
@@ -1,9 +1,12 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
3
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
7
  <head>
5
- <title>Class: Wee::LRUCache [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::LRUCache</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
11
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
9
12
  <script type="text/javascript">
@@ -22,7 +25,7 @@
22
25
  return false;
23
26
 
24
27
  elemStyle = elem.style;
25
-
28
+
26
29
  if ( elemStyle.display != "block" ) {
27
30
  elemStyle.display = "block"
28
31
  } else {
@@ -31,10 +34,10 @@
31
34
 
32
35
  return true;
33
36
  }
34
-
37
+
35
38
  // Make codeblocks hidden by default
36
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
-
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
38
41
  // ]]>
39
42
  </script>
40
43
 
@@ -42,6 +45,7 @@
42
45
  <body>
43
46
 
44
47
 
48
+
45
49
  <div id="classHeader">
46
50
  <table class="header-table">
47
51
  <tr class="top-aligned-row">
@@ -51,40 +55,29 @@
51
55
  <tr class="top-aligned-row">
52
56
  <td><strong>In:</strong></td>
53
57
  <td>
54
-
55
-
56
58
  <a href="../../files/lib/wee/lru_cache_rb.html">
57
-
58
59
  lib/wee/lru_cache.rb
59
-
60
60
  </a>
61
-
62
-
63
61
  <br />
64
-
65
62
  </td>
66
63
  </tr>
67
64
 
68
-
69
65
  <tr class="top-aligned-row">
70
66
  <td><strong>Parent:</strong></td>
71
67
  <td>
72
-
73
68
  <a href="../Object.html">
74
-
75
69
  Object
76
-
77
70
  </a>
78
-
79
71
  </td>
80
72
  </tr>
81
-
82
73
  </table>
83
74
  </div>
84
75
  <!-- banner header -->
85
76
 
86
77
  <div id="bodyContent">
87
78
 
79
+
80
+
88
81
  <div id="contextContent">
89
82
 
90
83
  <div id="description">
@@ -94,41 +87,30 @@ Implementation of a Least Recently Used (LRU) Cache
94
87
 
95
88
  </div>
96
89
 
97
- </div>
98
90
 
91
+ </div>
99
92
 
100
93
  <div id="method-list">
101
94
  <h3 class="section-bar">Methods</h3>
102
95
 
103
96
  <div class="name-list">
104
-
105
- <a href="#M000108">[]</a>&nbsp;&nbsp;
106
-
107
- <a href="#M000109">[]=</a>&nbsp;&nbsp;
108
-
109
- <a href="#M000102">delete</a>&nbsp;&nbsp;
110
-
111
- <a href="#M000103">delete_if</a>&nbsp;&nbsp;
112
-
113
- <a href="#M000107">each</a>&nbsp;&nbsp;
114
-
115
- <a href="#M000104">fetch</a>&nbsp;&nbsp;
116
-
117
- <a href="#M000106">garbage_collect</a>&nbsp;&nbsp;
118
-
119
- <a href="#M000101">has_key?</a>&nbsp;&nbsp;
120
-
121
- <a href="#M000110">min_key</a>&nbsp;&nbsp;
122
-
123
- <a href="#M000100">new</a>&nbsp;&nbsp;
124
-
125
- <a href="#M000105">store</a>&nbsp;&nbsp;
126
-
97
+ <a href="#M000035">[]</a>&nbsp;&nbsp;
98
+ <a href="#M000036">[]=</a>&nbsp;&nbsp;
99
+ <a href="#M000029">delete</a>&nbsp;&nbsp;
100
+ <a href="#M000030">delete_if</a>&nbsp;&nbsp;
101
+ <a href="#M000034">each</a>&nbsp;&nbsp;
102
+ <a href="#M000031">fetch</a>&nbsp;&nbsp;
103
+ <a href="#M000033">garbage_collect</a>&nbsp;&nbsp;
104
+ <a href="#M000028">has_key?</a>&nbsp;&nbsp;
105
+ <a href="#M000037">min_key</a>&nbsp;&nbsp;
106
+ <a href="#M000027">new</a>&nbsp;&nbsp;
107
+ <a href="#M000032">store</a>&nbsp;&nbsp;
127
108
  </div>
128
109
  </div>
129
110
 
130
111
  </div>
131
112
 
113
+
132
114
  <!-- if includes -->
133
115
 
134
116
  <div id="section">
@@ -143,31 +125,26 @@ Implementation of a Least Recently Used (LRU) Cache
143
125
 
144
126
 
145
127
 
146
- <!-- if method_list -->
128
+
147
129
 
148
- <div id="methods">
149
130
 
131
+ <!-- if method_list -->
132
+ <div id="methods">
150
133
  <h3 class="section-bar">Public Class methods</h3>
151
134
 
152
-
153
- <div id="method-M000100" class="method-detail">
154
- <a name="M000100"></a>
135
+ <div id="method-M000027" class="method-detail">
136
+ <a name="M000027"></a>
155
137
 
156
138
  <div class="method-heading">
157
-
158
- <a href="#M000100" class="method-signature">
159
-
139
+ <a href="#M000027" class="method-signature">
160
140
  <span class="method-name">new</span><span class="method-args">(capacity=20, &amp;replace_callback)</span>
161
-
162
141
  </a>
163
-
164
142
  </div>
165
-
143
+
166
144
  <div class="method-description">
167
-
168
145
  <p><a class="source-toggle" href="#"
169
- onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
170
- <div class="method-source-code" id="M000100-source">
146
+ onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
147
+ <div class="method-source-code" id="M000027-source">
171
148
  <pre>
172
149
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 13</span>
173
150
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">capacity</span>=<span class="ruby-value">20</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">replace_callback</span>)
@@ -178,70 +155,52 @@ Implementation of a Least Recently Used (LRU) Cache
178
155
  <span class="ruby-keyword kw">end</span>
179
156
  </pre>
180
157
  </div>
181
-
182
158
  </div>
183
159
  </div>
184
160
 
185
-
186
161
  <h3 class="section-bar">Public Instance methods</h3>
187
162
 
188
-
189
- <div id="method-M000108" class="method-detail">
190
- <a name="M000108"></a>
163
+ <div id="method-M000035" class="method-detail">
164
+ <a name="M000035"></a>
191
165
 
192
166
  <div class="method-heading">
193
-
194
167
  <span class="method-name">[]</span><span class="method-args">(key, default_value=nil)</span>
195
-
196
168
  </div>
197
-
169
+
198
170
  <div class="method-description">
199
-
200
171
  <p>
201
- Alias for <a href="LRUCache.html#M000104">fetch</a>
172
+ Alias for <a href="LRUCache.html#M000031">fetch</a>
202
173
  </p>
203
-
204
174
  </div>
205
175
  </div>
206
176
 
207
-
208
- <div id="method-M000109" class="method-detail">
209
- <a name="M000109"></a>
177
+ <div id="method-M000036" class="method-detail">
178
+ <a name="M000036"></a>
210
179
 
211
180
  <div class="method-heading">
212
-
213
181
  <span class="method-name">[]=</span><span class="method-args">(key, value)</span>
214
-
215
182
  </div>
216
-
183
+
217
184
  <div class="method-description">
218
-
219
185
  <p>
220
- Alias for <a href="LRUCache.html#M000105">store</a>
186
+ Alias for <a href="LRUCache.html#M000032">store</a>
221
187
  </p>
222
-
223
188
  </div>
224
189
  </div>
225
190
 
226
-
227
- <div id="method-M000102" class="method-detail">
228
- <a name="M000102"></a>
191
+ <div id="method-M000029" class="method-detail">
192
+ <a name="M000029"></a>
229
193
 
230
194
  <div class="method-heading">
231
-
232
- <a href="#M000102" class="method-signature">
233
-
195
+ <a href="#M000029" class="method-signature">
234
196
  <span class="method-name">delete</span><span class="method-args">(key)</span>
235
-
236
197
  </a>
237
-
238
198
  </div>
239
-
199
+
240
200
  <div class="method-description">
241
-
242
201
  <p><a class="source-toggle" href="#"
243
- onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
244
- <div class="method-source-code" id="M000102-source">
202
+ onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
203
+ <div class="method-source-code" id="M000029-source">
245
204
  <pre>
246
205
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 24</span>
247
206
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>)
@@ -249,29 +208,22 @@ Alias for <a href="LRUCache.html#M000105">store</a>
249
208
  <span class="ruby-keyword kw">end</span>
250
209
  </pre>
251
210
  </div>
252
-
253
211
  </div>
254
212
  </div>
255
213
 
256
-
257
- <div id="method-M000103" class="method-detail">
258
- <a name="M000103"></a>
214
+ <div id="method-M000030" class="method-detail">
215
+ <a name="M000030"></a>
259
216
 
260
217
  <div class="method-heading">
261
-
262
- <a href="#M000103" class="method-signature">
263
-
218
+ <a href="#M000030" class="method-signature">
264
219
  <span class="method-name">delete_if</span><span class="method-args">() {|id, item.value| ...}</span>
265
-
266
220
  </a>
267
-
268
221
  </div>
269
-
222
+
270
223
  <div class="method-description">
271
-
272
224
  <p><a class="source-toggle" href="#"
273
- onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
274
- <div class="method-source-code" id="M000103-source">
225
+ onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
226
+ <div class="method-source-code" id="M000030-source">
275
227
  <pre>
276
228
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 28</span>
277
229
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_if</span>
@@ -281,29 +233,22 @@ Alias for <a href="LRUCache.html#M000105">store</a>
281
233
  <span class="ruby-keyword kw">end</span>
282
234
  </pre>
283
235
  </div>
284
-
285
236
  </div>
286
237
  </div>
287
238
 
288
-
289
- <div id="method-M000107" class="method-detail">
290
- <a name="M000107"></a>
239
+ <div id="method-M000034" class="method-detail">
240
+ <a name="M000034"></a>
291
241
 
292
242
  <div class="method-heading">
293
-
294
- <a href="#M000107" class="method-signature">
295
-
243
+ <a href="#M000034" class="method-signature">
296
244
  <span class="method-name">each</span><span class="method-args">(&amp;block)</span>
297
-
298
245
  </a>
299
-
300
246
  </div>
301
-
247
+
302
248
  <div class="method-description">
303
-
304
249
  <p><a class="source-toggle" href="#"
305
- onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
306
- <div class="method-source-code" id="M000107-source">
250
+ onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
251
+ <div class="method-source-code" id="M000034-source">
307
252
  <pre>
308
253
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 65</span>
309
254
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -311,29 +256,22 @@ Alias for <a href="LRUCache.html#M000105">store</a>
311
256
  <span class="ruby-keyword kw">end</span>
312
257
  </pre>
313
258
  </div>
314
-
315
259
  </div>
316
260
  </div>
317
261
 
318
-
319
- <div id="method-M000104" class="method-detail">
320
- <a name="M000104"></a>
262
+ <div id="method-M000031" class="method-detail">
263
+ <a name="M000031"></a>
321
264
 
322
265
  <div class="method-heading">
323
-
324
- <a href="#M000104" class="method-signature">
325
-
266
+ <a href="#M000031" class="method-signature">
326
267
  <span class="method-name">fetch</span><span class="method-args">(key, default_value=nil)</span>
327
-
328
268
  </a>
329
-
330
269
  </div>
331
-
270
+
332
271
  <div class="method-description">
333
-
334
272
  <p><a class="source-toggle" href="#"
335
- onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
336
- <div class="method-source-code" id="M000104-source">
273
+ onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
274
+ <div class="method-source-code" id="M000031-source">
337
275
  <pre>
338
276
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 34</span>
339
277
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">default_value</span>=<span class="ruby-keyword kw">nil</span>)
@@ -346,58 +284,44 @@ Alias for <a href="LRUCache.html#M000105">store</a>
346
284
  <span class="ruby-keyword kw">end</span>
347
285
  </pre>
348
286
  </div>
349
-
350
287
  </div>
351
288
  </div>
352
289
 
353
-
354
- <div id="method-M000106" class="method-detail">
355
- <a name="M000106"></a>
290
+ <div id="method-M000033" class="method-detail">
291
+ <a name="M000033"></a>
356
292
 
357
293
  <div class="method-heading">
358
-
359
- <a href="#M000106" class="method-signature">
360
-
294
+ <a href="#M000033" class="method-signature">
361
295
  <span class="method-name">garbage_collect</span><span class="method-args">()</span>
362
-
363
296
  </a>
364
-
365
297
  </div>
366
-
298
+
367
299
  <div class="method-description">
368
-
369
300
  <p><a class="source-toggle" href="#"
370
- onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
371
- <div class="method-source-code" id="M000106-source">
301
+ onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
302
+ <div class="method-source-code" id="M000033-source">
372
303
  <pre>
373
304
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 62</span>
374
305
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">garbage_collect</span>
375
306
  <span class="ruby-keyword kw">end</span>
376
307
  </pre>
377
308
  </div>
378
-
379
309
  </div>
380
310
  </div>
381
311
 
382
-
383
- <div id="method-M000101" class="method-detail">
384
- <a name="M000101"></a>
312
+ <div id="method-M000028" class="method-detail">
313
+ <a name="M000028"></a>
385
314
 
386
315
  <div class="method-heading">
387
-
388
- <a href="#M000101" class="method-signature">
389
-
316
+ <a href="#M000028" class="method-signature">
390
317
  <span class="method-name">has_key?</span><span class="method-args">(key)</span>
391
-
392
318
  </a>
393
-
394
319
  </div>
395
-
320
+
396
321
  <div class="method-description">
397
-
398
322
  <p><a class="source-toggle" href="#"
399
- onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
400
- <div class="method-source-code" id="M000101-source">
323
+ onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
324
+ <div class="method-source-code" id="M000028-source">
401
325
  <pre>
402
326
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 20</span>
403
327
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>)
@@ -405,29 +329,22 @@ Alias for <a href="LRUCache.html#M000105">store</a>
405
329
  <span class="ruby-keyword kw">end</span>
406
330
  </pre>
407
331
  </div>
408
-
409
332
  </div>
410
333
  </div>
411
334
 
412
-
413
- <div id="method-M000105" class="method-detail">
414
- <a name="M000105"></a>
335
+ <div id="method-M000032" class="method-detail">
336
+ <a name="M000032"></a>
415
337
 
416
338
  <div class="method-heading">
417
-
418
- <a href="#M000105" class="method-signature">
419
-
339
+ <a href="#M000032" class="method-signature">
420
340
  <span class="method-name">store</span><span class="method-args">(key, value)</span>
421
-
422
341
  </a>
423
-
424
342
  </div>
425
-
343
+
426
344
  <div class="method-description">
427
-
428
345
  <p><a class="source-toggle" href="#"
429
- onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
430
- <div class="method-source-code" id="M000105-source">
346
+ onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
347
+ <div class="method-source-code" id="M000032-source">
431
348
  <pre>
432
349
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 43</span>
433
350
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
@@ -450,36 +367,27 @@ Alias for <a href="LRUCache.html#M000105">store</a>
450
367
  <span class="ruby-keyword kw">end</span>
451
368
  </pre>
452
369
  </div>
453
-
454
370
  </div>
455
371
  </div>
456
372
 
457
-
458
373
  <h3 class="section-bar">Protected Instance methods</h3>
459
374
 
460
-
461
- <div id="method-M000110" class="method-detail">
462
- <a name="M000110"></a>
375
+ <div id="method-M000037" class="method-detail">
376
+ <a name="M000037"></a>
463
377
 
464
378
  <div class="method-heading">
465
-
466
- <a href="#M000110" class="method-signature">
467
-
379
+ <a href="#M000037" class="method-signature">
468
380
  <span class="method-name">min_key</span><span class="method-args">()</span>
469
-
470
381
  </a>
471
-
472
382
  </div>
473
-
383
+
474
384
  <div class="method-description">
475
-
476
385
  <p>
477
386
  Returns the key of the minimum item
478
387
  </p>
479
-
480
388
  <p><a class="source-toggle" href="#"
481
- onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
482
- <div class="method-source-code" id="M000110-source">
389
+ onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
390
+ <div class="method-source-code" id="M000037-source">
483
391
  <pre>
484
392
  <span class="ruby-comment cmt"># File lib/wee/lru_cache.rb, line 77</span>
485
393
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">min_key</span>
@@ -493,22 +401,19 @@ Returns the key of the minimum item
493
401
  <span class="ruby-keyword kw">end</span>
494
402
  </pre>
495
403
  </div>
496
-
497
404
  </div>
498
405
  </div>
499
406
 
500
407
 
501
-
502
408
  </div>
503
409
 
504
410
 
505
-
506
-
507
411
  </div>
508
412
 
413
+
509
414
  <div id="validator-badges">
510
415
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
511
416
  </div>
512
417
 
513
418
  </body>
514
- </html>
419
+ </html>