wee 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
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::AnswerDecoration [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::AnswerDecoration</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/call_answer_rb.html">
57
-
58
59
  lib/wee/call_answer.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="Decoration.html">
74
-
75
- Wee::Decoration
76
-
69
+ Decoration
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">
@@ -97,23 +90,21 @@ as child components of other components.
97
90
 
98
91
  </div>
99
92
 
100
- </div>
101
93
 
94
+ </div>
102
95
 
103
96
  <div id="method-list">
104
97
  <h3 class="section-bar">Methods</h3>
105
98
 
106
99
  <div class="name-list">
107
-
108
- <a href="#M000065">new</a>&nbsp;&nbsp;
109
-
110
- <a href="#M000066">process_callbacks</a>&nbsp;&nbsp;
111
-
100
+ <a href="#M000102">new</a>&nbsp;&nbsp;
101
+ <a href="#M000103">process_callbacks</a>&nbsp;&nbsp;
112
102
  </div>
113
103
  </div>
114
104
 
115
105
  </div>
116
106
 
107
+
117
108
  <!-- if includes -->
118
109
 
119
110
  <div id="section">
@@ -127,50 +118,40 @@ as child components of other components.
127
118
 
128
119
 
129
120
 
121
+
130
122
  <div id="attribute-list">
131
123
  <h3 class="section-bar">Attributes</h3>
132
124
 
133
125
  <div class="name-list">
134
126
  <table>
135
-
136
127
  <tr class="top-aligned-row context-row">
137
128
  <td class="context-item-name">answer_callback</td>
138
-
139
129
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
140
-
141
130
  <td class="context-item-desc"></td>
142
131
  </tr>
143
-
144
132
  </table>
145
133
  </div>
146
134
  </div>
135
+
147
136
 
148
137
 
149
138
  <!-- if method_list -->
150
-
151
139
  <div id="methods">
152
-
153
140
  <h3 class="section-bar">Public Class methods</h3>
154
141
 
155
-
156
- <div id="method-M000065" class="method-detail">
157
- <a name="M000065"></a>
142
+ <div id="method-M000102" class="method-detail">
143
+ <a name="M000102"></a>
158
144
 
159
145
  <div class="method-heading">
160
-
161
- <a href="#M000065" class="method-signature">
162
-
146
+ <a href="#M000102" class="method-signature">
163
147
  <span class="method-name">new</span><span class="method-args">(&amp;answer_callback)</span>
164
-
165
148
  </a>
166
-
167
149
  </div>
168
-
150
+
169
151
  <div class="method-description">
170
-
171
152
  <p><a class="source-toggle" href="#"
172
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
173
- <div class="method-source-code" id="M000065-source">
153
+ onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
154
+ <div class="method-source-code" id="M000102-source">
174
155
  <pre>
175
156
  <span class="ruby-comment cmt"># File lib/wee/call_answer.rb, line 21</span>
176
157
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">answer_callback</span>)
@@ -179,39 +160,30 @@ as child components of other components.
179
160
  <span class="ruby-keyword kw">end</span>
180
161
  </pre>
181
162
  </div>
182
-
183
163
  </div>
184
164
  </div>
185
165
 
186
-
187
166
  <h3 class="section-bar">Public Instance methods</h3>
188
167
 
189
-
190
- <div id="method-M000066" class="method-detail">
191
- <a name="M000066"></a>
168
+ <div id="method-M000103" class="method-detail">
169
+ <a name="M000103"></a>
192
170
 
193
171
  <div class="method-heading">
194
-
195
- <a href="#M000066" class="method-signature">
196
-
172
+ <a href="#M000103" class="method-signature">
197
173
  <span class="method-name">process_callbacks</span><span class="method-args">(callbacks)</span>
198
-
199
174
  </a>
200
-
201
175
  </div>
202
-
176
+
203
177
  <div class="method-description">
204
-
205
178
  <p>
206
179
  When a component answers, <tt>@answer_callback.call(answer)</tt> will be
207
180
  executed, where <tt>answer</tt> is of class <a
208
181
  href="AnswerDecoration/Answer.html">Answer</a> which includes the arguments
209
182
  passed to Component#answer.
210
183
  </p>
211
-
212
184
  <p><a class="source-toggle" href="#"
213
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
214
- <div class="method-source-code" id="M000066-source">
185
+ onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
186
+ <div class="method-source-code" id="M000103-source">
215
187
  <pre>
216
188
  <span class="ruby-comment cmt"># File lib/wee/call_answer.rb, line 31</span>
217
189
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callbacks</span>)
@@ -224,22 +196,19 @@ passed to Component#answer.
224
196
  <span class="ruby-keyword kw">end</span>
225
197
  </pre>
226
198
  </div>
227
-
228
199
  </div>
229
200
  </div>
230
201
 
231
202
 
232
-
233
203
  </div>
234
204
 
235
205
 
236
-
237
-
238
206
  </div>
239
207
 
208
+
240
209
  <div id="validator-badges">
241
210
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
242
211
  </div>
243
212
 
244
213
  </body>
245
- </html>
214
+ </html>
@@ -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::AnswerDecoration::Answer [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::AnswerDecoration::Answer</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,36 +55,27 @@
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/call_answer_rb.html">
57
-
58
59
  lib/wee/call_answer.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
  Exception
74
-
75
69
  </td>
76
70
  </tr>
77
-
78
71
  </table>
79
72
  </div>
80
73
  <!-- banner header -->
81
74
 
82
75
  <div id="bodyContent">
83
76
 
77
+
78
+
84
79
  <div id="contextContent">
85
80
 
86
81
  <div id="description">
@@ -90,92 +85,79 @@ Used to unwind the component call chain in Component#answer.
90
85
 
91
86
  </div>
92
87
 
93
- </div>
94
88
 
89
+ </div>
95
90
 
96
91
  <div id="method-list">
97
92
  <h3 class="section-bar">Methods</h3>
98
93
 
99
94
  <div class="name-list">
100
-
101
- <a href="#M000067">new</a>&nbsp;&nbsp;
102
-
95
+ <a href="#M000104">new</a>&nbsp;&nbsp;
103
96
  </div>
104
97
  </div>
105
98
 
106
99
  </div>
107
100
 
101
+
108
102
  <!-- if includes -->
109
103
 
110
104
  <div id="section">
111
105
 
112
106
 
113
107
 
108
+
109
+
114
110
  <div id="attribute-list">
115
111
  <h3 class="section-bar">Attributes</h3>
116
112
 
117
113
  <div class="name-list">
118
114
  <table>
119
-
120
115
  <tr class="top-aligned-row context-row">
121
116
  <td class="context-item-name">args</td>
122
-
123
117
  <td class="context-item-value">&nbsp;[R]&nbsp;</td>
124
-
125
118
  <td class="context-item-desc"></td>
126
119
  </tr>
127
-
128
120
  </table>
129
121
  </div>
130
122
  </div>
123
+
131
124
 
132
125
 
133
126
  <!-- if method_list -->
134
-
135
127
  <div id="methods">
136
-
137
128
  <h3 class="section-bar">Public Class methods</h3>
138
129
 
139
-
140
- <div id="method-M000067" class="method-detail">
141
- <a name="M000067"></a>
130
+ <div id="method-M000104" class="method-detail">
131
+ <a name="M000104"></a>
142
132
 
143
133
  <div class="method-heading">
144
-
145
- <a href="#M000067" class="method-signature">
146
-
134
+ <a href="#M000104" class="method-signature">
147
135
  <span class="method-name">new</span><span class="method-args">(args)</span>
148
-
149
136
  </a>
150
-
151
137
  </div>
152
-
138
+
153
139
  <div class="method-description">
154
-
155
140
  <p><a class="source-toggle" href="#"
156
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
157
- <div class="method-source-code" id="M000067-source">
141
+ onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
142
+ <div class="method-source-code" id="M000104-source">
158
143
  <pre>
159
144
  <span class="ruby-comment cmt"># File lib/wee/call_answer.rb, line 16</span>
160
145
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>) <span class="ruby-ivar">@args</span> = <span class="ruby-identifier">args</span> <span class="ruby-keyword kw">end</span>
161
146
  </pre>
162
147
  </div>
163
-
164
148
  </div>
165
149
  </div>
166
150
 
167
151
 
168
-
169
152
  </div>
170
153
 
171
154
 
172
-
173
-
174
155
  </div>
175
156
 
157
+
176
158
  <div id="validator-badges">
177
159
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
178
160
  </div>
179
161
 
180
162
  </body>
181
- </html>
163
+ </html>
@@ -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::Application [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::Application</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,74 +55,58 @@
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/application_rb.html">
57
-
58
59
  lib/wee/application.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">
91
84
  <p>
92
- A <a href="Application.html">Wee::Application</a> manages all
93
- Session&#8217;s of a single application. It dispatches the request to the
94
- correct handler by examining the request.
85
+ A <a href="Application.html">Wee::Application</a> manages all <a
86
+ href="Session.html">Session</a>&#8216;s of a single application. It
87
+ dispatches the request to the correct handler by examining the request.
95
88
  </p>
96
89
 
97
90
  </div>
98
91
 
99
- </div>
100
92
 
93
+ </div>
101
94
 
102
95
  <div id="method-list">
103
96
  <h3 class="section-bar">Methods</h3>
104
97
 
105
98
  <div class="name-list">
106
-
107
- <a href="#M000096">call</a>&nbsp;&nbsp;
108
-
109
- <a href="#M000095">cleanup_sessions</a>&nbsp;&nbsp;
110
-
111
- <a href="#M000098">insert_session</a>&nbsp;&nbsp;
112
-
113
- <a href="#M000094">new</a>&nbsp;&nbsp;
114
-
115
- <a href="#M000097">new_session</a>&nbsp;&nbsp;
116
-
99
+ <a href="#M000113">call</a>&nbsp;&nbsp;
100
+ <a href="#M000112">cleanup_sessions</a>&nbsp;&nbsp;
101
+ <a href="#M000115">insert_session</a>&nbsp;&nbsp;
102
+ <a href="#M000111">new</a>&nbsp;&nbsp;
103
+ <a href="#M000114">new_session</a>&nbsp;&nbsp;
117
104
  </div>
118
105
  </div>
119
106
 
120
107
  </div>
121
108
 
109
+
122
110
  <!-- if includes -->
123
111
 
124
112
  <div id="section">
@@ -133,39 +121,35 @@ correct handler by examining the request.
133
121
 
134
122
 
135
123
 
136
- <!-- if method_list -->
124
+
137
125
 
138
- <div id="methods">
139
126
 
127
+ <!-- if method_list -->
128
+ <div id="methods">
140
129
  <h3 class="section-bar">Public Class methods</h3>
141
130
 
142
-
143
- <div id="method-M000094" class="method-detail">
144
- <a name="M000094"></a>
131
+ <div id="method-M000111" class="method-detail">
132
+ <a name="M000111"></a>
145
133
 
146
134
  <div class="method-heading">
147
-
148
- <a href="#M000094" class="method-signature">
149
-
135
+ <a href="#M000111" class="method-signature">
150
136
  <span class="method-name">new</span><span class="method-args">(max_sessions=10_000, &amp;block)</span>
151
-
152
137
  </a>
153
-
154
138
  </div>
155
-
139
+
156
140
  <div class="method-description">
157
-
158
141
  <p>
159
- Creates a new application. The block, when called, must return a new <a
160
- href="Session.html">Session</a> instance.
142
+ Creates a <a href="Application.html#M000111">new</a> application. The
143
+ block, when called, must return a <a
144
+ href="Application.html#M000111">new</a> <a href="Session.html">Session</a>
145
+ instance.
161
146
  </p>
162
147
  <pre>
163
148
  Wee::Application.new { Wee::Session.new(root_component) }
164
149
  </pre>
165
-
166
150
  <p><a class="source-toggle" href="#"
167
- onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
168
- <div class="method-source-code" id="M000094-source">
151
+ onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
152
+ <div class="method-source-code" id="M000111-source">
169
153
  <pre>
170
154
  <span class="ruby-comment cmt"># File lib/wee/application.rb, line 25</span>
171
155
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">max_sessions</span>=<span class="ruby-value">10_000</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -176,36 +160,27 @@ href="Session.html">Session</a> instance.
176
160
  <span class="ruby-keyword kw">end</span>
177
161
  </pre>
178
162
  </div>
179
-
180
163
  </div>
181
164
  </div>
182
165
 
183
-
184
166
  <h3 class="section-bar">Public Instance methods</h3>
185
167
 
186
-
187
- <div id="method-M000096" class="method-detail">
188
- <a name="M000096"></a>
168
+ <div id="method-M000113" class="method-detail">
169
+ <a name="M000113"></a>
189
170
 
190
171
  <div class="method-heading">
191
-
192
- <a href="#M000096" class="method-signature">
193
-
172
+ <a href="#M000113" class="method-signature">
194
173
  <span class="method-name">call</span><span class="method-args">(env)</span>
195
-
196
174
  </a>
197
-
198
175
  </div>
199
-
176
+
200
177
  <div class="method-description">
201
-
202
178
  <p>
203
179
  Handles a web request
204
180
  </p>
205
-
206
181
  <p><a class="source-toggle" href="#"
207
- onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
208
- <div class="method-source-code" id="M000096-source">
182
+ onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
183
+ <div class="method-source-code" id="M000113-source">
209
184
  <pre>
210
185
  <span class="ruby-comment cmt"># File lib/wee/application.rb, line 42</span>
211
186
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">env</span>)
@@ -227,33 +202,25 @@ Handles a web request
227
202
  <span class="ruby-keyword kw">end</span>
228
203
  </pre>
229
204
  </div>
230
-
231
205
  </div>
232
206
  </div>
233
207
 
234
-
235
- <div id="method-M000095" class="method-detail">
236
- <a name="M000095"></a>
208
+ <div id="method-M000112" class="method-detail">
209
+ <a name="M000112"></a>
237
210
 
238
211
  <div class="method-heading">
239
-
240
- <a href="#M000095" class="method-signature">
241
-
212
+ <a href="#M000112" class="method-signature">
242
213
  <span class="method-name">cleanup_sessions</span><span class="method-args">()</span>
243
-
244
214
  </a>
245
-
246
215
  </div>
247
-
216
+
248
217
  <div class="method-description">
249
-
250
218
  <p>
251
219
  Garbage collect dead sessions
252
220
  </p>
253
-
254
221
  <p><a class="source-toggle" href="#"
255
- onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
256
- <div class="method-source-code" id="M000095-source">
222
+ onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
223
+ <div class="method-source-code" id="M000112-source">
257
224
  <pre>
258
225
  <span class="ruby-comment cmt"># File lib/wee/application.rb, line 35</span>
259
226
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleanup_sessions</span>
@@ -261,32 +228,24 @@ Garbage collect dead sessions
261
228
  <span class="ruby-keyword kw">end</span>
262
229
  </pre>
263
230
  </div>
264
-
265
231
  </div>
266
232
  </div>
267
233
 
268
-
269
234
  <h3 class="section-bar">Protected Instance methods</h3>
270
235
 
271
-
272
- <div id="method-M000098" class="method-detail">
273
- <a name="M000098"></a>
236
+ <div id="method-M000115" class="method-detail">
237
+ <a name="M000115"></a>
274
238
 
275
239
  <div class="method-heading">
276
-
277
- <a href="#M000098" class="method-signature">
278
-
240
+ <a href="#M000115" class="method-signature">
279
241
  <span class="method-name">insert_session</span><span class="method-args">(session, retries=3)</span>
280
-
281
242
  </a>
282
-
283
243
  </div>
284
-
244
+
285
245
  <div class="method-description">
286
-
287
246
  <p><a class="source-toggle" href="#"
288
- onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
289
- <div class="method-source-code" id="M000098-source">
247
+ onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
248
+ <div class="method-source-code" id="M000115-source">
290
249
  <pre>
291
250
  <span class="ruby-comment cmt"># File lib/wee/application.rb, line 69</span>
292
251
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert_session</span>(<span class="ruby-identifier">session</span>, <span class="ruby-identifier">retries</span>=<span class="ruby-value">3</span>)
@@ -304,29 +263,22 @@ Garbage collect dead sessions
304
263
  <span class="ruby-keyword kw">end</span>
305
264
  </pre>
306
265
  </div>
307
-
308
266
  </div>
309
267
  </div>
310
268
 
311
-
312
- <div id="method-M000097" class="method-detail">
313
- <a name="M000097"></a>
269
+ <div id="method-M000114" class="method-detail">
270
+ <a name="M000114"></a>
314
271
 
315
272
  <div class="method-heading">
316
-
317
- <a href="#M000097" class="method-signature">
318
-
273
+ <a href="#M000114" class="method-signature">
319
274
  <span class="method-name">new_session</span><span class="method-args">()</span>
320
-
321
275
  </a>
322
-
323
276
  </div>
324
-
277
+
325
278
  <div class="method-description">
326
-
327
279
  <p><a class="source-toggle" href="#"
328
- onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
329
- <div class="method-source-code" id="M000097-source">
280
+ onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
281
+ <div class="method-source-code" id="M000114-source">
330
282
  <pre>
331
283
  <span class="ruby-comment cmt"># File lib/wee/application.rb, line 62</span>
332
284
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_session</span>
@@ -337,22 +289,19 @@ Garbage collect dead sessions
337
289
  <span class="ruby-keyword kw">end</span>
338
290
  </pre>
339
291
  </div>
340
-
341
292
  </div>
342
293
  </div>
343
294
 
344
295
 
345
-
346
296
  </div>
347
297
 
348
298
 
349
-
350
-
351
299
  </div>
352
300
 
301
+
353
302
  <div id="validator-badges">
354
303
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
355
304
  </div>
356
305
 
357
306
  </body>
358
- </html>
307
+ </html>