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::HtmlDocument [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::HtmlDocument</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/html_document_rb.html">
57
-
58
59
  lib/wee/html_document.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="HtmlWriter.html">
74
-
75
- Wee::HtmlWriter
76
-
69
+ HtmlWriter
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,27 +87,23 @@ Represents a complete HTML document.
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="#M000231">divert</a>&nbsp;&nbsp;
106
-
107
- <a href="#M000229">new</a>&nbsp;&nbsp;
108
-
109
- <a href="#M000230">set</a>&nbsp;&nbsp;
110
-
111
- <a href="#M000232">to_s</a>&nbsp;&nbsp;
112
-
97
+ <a href="#M000204">divert</a>&nbsp;&nbsp;
98
+ <a href="#M000202">new</a>&nbsp;&nbsp;
99
+ <a href="#M000203">set</a>&nbsp;&nbsp;
100
+ <a href="#M000205">to_s</a>&nbsp;&nbsp;
113
101
  </div>
114
102
  </div>
115
103
 
116
104
  </div>
117
105
 
106
+
118
107
  <!-- if includes -->
119
108
 
120
109
  <div id="section">
@@ -122,31 +111,27 @@ Represents a complete HTML document.
122
111
 
123
112
 
124
113
 
125
- <!-- if method_list -->
126
114
 
127
- <div id="methods">
115
+
128
116
 
129
- <h3 class="section-bar">Public Class methods</h3>
130
117
 
118
+ <!-- if method_list -->
119
+ <div id="methods">
120
+ <h3 class="section-bar">Public Class methods</h3>
131
121
 
132
- <div id="method-M000229" class="method-detail">
133
- <a name="M000229"></a>
122
+ <div id="method-M000202" class="method-detail">
123
+ <a name="M000202"></a>
134
124
 
135
125
  <div class="method-heading">
136
-
137
- <a href="#M000229" class="method-signature">
138
-
126
+ <a href="#M000202" class="method-signature">
139
127
  <span class="method-name">new</span><span class="method-args">()</span>
140
-
141
128
  </a>
142
-
143
129
  </div>
144
-
130
+
145
131
  <div class="method-description">
146
-
147
132
  <p><a class="source-toggle" href="#"
148
- onclick="toggleCode('M000229-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000229-source">
133
+ onclick="toggleCode('M000202-source');return false;">[Source]</a></p>
134
+ <div class="method-source-code" id="M000202-source">
150
135
  <pre>
151
136
  <span class="ruby-comment cmt"># File lib/wee/html_document.rb, line 9</span>
152
137
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
@@ -154,32 +139,24 @@ Represents a complete HTML document.
154
139
  <span class="ruby-keyword kw">end</span>
155
140
  </pre>
156
141
  </div>
157
-
158
142
  </div>
159
143
  </div>
160
144
 
161
-
162
145
  <h3 class="section-bar">Public Instance methods</h3>
163
146
 
164
-
165
- <div id="method-M000231" class="method-detail">
166
- <a name="M000231"></a>
147
+ <div id="method-M000204" class="method-detail">
148
+ <a name="M000204"></a>
167
149
 
168
150
  <div class="method-heading">
169
-
170
- <a href="#M000231" class="method-signature">
171
-
151
+ <a href="#M000204" class="method-signature">
172
152
  <span class="method-name">divert</span><span class="method-args">(tag, txt=nil, &amp;block)</span>
173
-
174
153
  </a>
175
-
176
154
  </div>
177
-
155
+
178
156
  <div class="method-description">
179
-
180
157
  <p><a class="source-toggle" href="#"
181
- onclick="toggleCode('M000231-source');return false;">[Source]</a></p>
182
- <div class="method-source-code" id="M000231-source">
158
+ onclick="toggleCode('M000204-source');return false;">[Source]</a></p>
159
+ <div class="method-source-code" id="M000204-source">
183
160
  <pre>
184
161
  <span class="ruby-comment cmt"># File lib/wee/html_document.rb, line 17</span>
185
162
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divert</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">txt</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -207,29 +184,22 @@ Represents a complete HTML document.
207
184
  <span class="ruby-keyword kw">end</span>
208
185
  </pre>
209
186
  </div>
210
-
211
187
  </div>
212
188
  </div>
213
189
 
214
-
215
- <div id="method-M000230" class="method-detail">
216
- <a name="M000230"></a>
190
+ <div id="method-M000203" class="method-detail">
191
+ <a name="M000203"></a>
217
192
 
218
193
  <div class="method-heading">
219
-
220
- <a href="#M000230" class="method-signature">
221
-
194
+ <a href="#M000203" class="method-signature">
222
195
  <span class="method-name">set</span><span class="method-args">()</span>
223
-
224
196
  </a>
225
-
226
197
  </div>
227
-
198
+
228
199
  <div class="method-description">
229
-
230
200
  <p><a class="source-toggle" href="#"
231
- onclick="toggleCode('M000230-source');return false;">[Source]</a></p>
232
- <div class="method-source-code" id="M000230-source">
201
+ onclick="toggleCode('M000203-source');return false;">[Source]</a></p>
202
+ <div class="method-source-code" id="M000203-source">
233
203
  <pre>
234
204
  <span class="ruby-comment cmt"># File lib/wee/html_document.rb, line 13</span>
235
205
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>
@@ -237,29 +207,22 @@ Represents a complete HTML document.
237
207
  <span class="ruby-keyword kw">end</span>
238
208
  </pre>
239
209
  </div>
240
-
241
210
  </div>
242
211
  </div>
243
212
 
244
-
245
- <div id="method-M000232" class="method-detail">
246
- <a name="M000232"></a>
213
+ <div id="method-M000205" class="method-detail">
214
+ <a name="M000205"></a>
247
215
 
248
216
  <div class="method-heading">
249
-
250
- <a href="#M000232" class="method-signature">
251
-
217
+ <a href="#M000205" class="method-signature">
252
218
  <span class="method-name">to_s</span><span class="method-args">()</span>
253
-
254
219
  </a>
255
-
256
220
  </div>
257
-
221
+
258
222
  <div class="method-description">
259
-
260
223
  <p><a class="source-toggle" href="#"
261
- onclick="toggleCode('M000232-source');return false;">[Source]</a></p>
262
- <div class="method-source-code" id="M000232-source">
224
+ onclick="toggleCode('M000205-source');return false;">[Source]</a></p>
225
+ <div class="method-source-code" id="M000205-source">
263
226
  <pre>
264
227
  <span class="ruby-comment cmt"># File lib/wee/html_document.rb, line 41</span>
265
228
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
@@ -267,22 +230,19 @@ Represents a complete HTML document.
267
230
  <span class="ruby-keyword kw">end</span>
268
231
  </pre>
269
232
  </div>
270
-
271
233
  </div>
272
234
  </div>
273
235
 
274
236
 
275
-
276
237
  </div>
277
238
 
278
239
 
279
-
280
-
281
240
  </div>
282
241
 
242
+
283
243
  <div id="validator-badges">
284
244
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
285
245
  </div>
286
246
 
287
247
  </body>
288
- </html>
248
+ </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::HtmlWriter [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::HtmlWriter</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,45 +55,35 @@
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/html_writer_rb.html">
57
-
58
59
  lib/wee/html_writer.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 class used to write out HTML documents easily.
85
+ A class used to <a href="HtmlWriter.html#M000229">write</a> out HTML
86
+ documents easily.
93
87
  </p>
94
88
  <p>
95
89
  Usage:
@@ -109,59 +103,47 @@ Usage:
109
103
 
110
104
  </div>
111
105
 
112
- </div>
113
106
 
107
+ </div>
114
108
 
115
109
  <div id="method-list">
116
110
  <h3 class="section-bar">Methods</h3>
117
111
 
118
112
  <div class="name-list">
119
-
120
- <a href="#M000192">&lt;&lt;</a>&nbsp;&nbsp;
121
-
122
- <a href="#M000190">encode_text</a>&nbsp;&nbsp;
123
-
124
- <a href="#M000188">end_tag</a>&nbsp;&nbsp;
125
-
126
- <a href="#M000185">new</a>&nbsp;&nbsp;
127
-
128
- <a href="#M000187">single_tag</a>&nbsp;&nbsp;
129
-
130
- <a href="#M000186">start_tag</a>&nbsp;&nbsp;
131
-
132
- <a href="#M000189">text</a>&nbsp;&nbsp;
133
-
134
- <a href="#M000191">write</a>&nbsp;&nbsp;
135
-
113
+ <a href="#M000230">&lt;&lt;</a>&nbsp;&nbsp;
114
+ <a href="#M000228">encode_text</a>&nbsp;&nbsp;
115
+ <a href="#M000226">end_tag</a>&nbsp;&nbsp;
116
+ <a href="#M000223">new</a>&nbsp;&nbsp;
117
+ <a href="#M000225">single_tag</a>&nbsp;&nbsp;
118
+ <a href="#M000224">start_tag</a>&nbsp;&nbsp;
119
+ <a href="#M000227">text</a>&nbsp;&nbsp;
120
+ <a href="#M000229">write</a>&nbsp;&nbsp;
136
121
  </div>
137
122
  </div>
138
123
 
139
124
  </div>
140
125
 
126
+
141
127
  <!-- if includes -->
142
128
 
143
129
  <div id="section">
144
130
 
131
+
145
132
  <div id="constants-list">
146
133
  <h3 class="section-bar">Constants</h3>
147
134
 
148
135
  <div class="name-list">
149
136
  <table summary="Constants">
150
-
151
137
  <tr class="top-aligned-row context-row">
152
138
  <td class="context-item-name">CLOSING</td>
153
139
  <td>=</td>
154
140
  <td class="context-item-value">&quot;&gt;&quot;.freeze</td>
155
-
156
141
  </tr>
157
-
158
142
  <tr class="top-aligned-row context-row">
159
143
  <td class="context-item-name">SINGLE_CLOSING</td>
160
144
  <td>=</td>
161
145
  <td class="context-item-value">&quot; /&gt;&quot;.freeze</td>
162
-
163
146
  </tr>
164
-
165
147
  </table>
166
148
  </div>
167
149
  </div>
@@ -173,45 +155,34 @@ Usage:
173
155
 
174
156
  <div class="name-list">
175
157
  <table>
176
-
177
158
  <tr class="top-aligned-row context-row">
178
159
  <td class="context-item-name">port</td>
179
-
180
160
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
181
-
182
161
  <td class="context-item-desc"></td>
183
162
  </tr>
184
-
185
163
  </table>
186
164
  </div>
187
165
  </div>
166
+
188
167
 
189
168
 
190
169
  <!-- if method_list -->
191
-
192
170
  <div id="methods">
193
-
194
171
  <h3 class="section-bar">Public Class methods</h3>
195
172
 
196
-
197
- <div id="method-M000185" class="method-detail">
198
- <a name="M000185"></a>
173
+ <div id="method-M000223" class="method-detail">
174
+ <a name="M000223"></a>
199
175
 
200
176
  <div class="method-heading">
201
-
202
- <a href="#M000185" class="method-signature">
203
-
177
+ <a href="#M000223" class="method-signature">
204
178
  <span class="method-name">new</span><span class="method-args">(port=[])</span>
205
-
206
179
  </a>
207
-
208
180
  </div>
209
-
181
+
210
182
  <div class="method-description">
211
-
212
183
  <p><a class="source-toggle" href="#"
213
- onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
214
- <div class="method-source-code" id="M000185-source">
184
+ onclick="toggleCode('M000223-source');return false;">[Source]</a></p>
185
+ <div class="method-source-code" id="M000223-source">
215
186
  <pre>
216
187
  <span class="ruby-comment cmt"># File lib/wee/html_writer.rb, line 25</span>
217
188
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">port</span>=[])
@@ -219,51 +190,38 @@ Usage:
219
190
  <span class="ruby-keyword kw">end</span>
220
191
  </pre>
221
192
  </div>
222
-
223
193
  </div>
224
194
  </div>
225
195
 
226
-
227
196
  <h3 class="section-bar">Public Instance methods</h3>
228
197
 
229
-
230
- <div id="method-M000192" class="method-detail">
231
- <a name="M000192"></a>
198
+ <div id="method-M000230" class="method-detail">
199
+ <a name="M000230"></a>
232
200
 
233
201
  <div class="method-heading">
234
-
235
202
  <span class="method-name">&lt;&lt;</span><span class="method-args">(str)</span>
236
-
237
203
  </div>
238
-
204
+
239
205
  <div class="method-description">
240
-
241
206
  <p>
242
- Alias for <a href="HtmlWriter.html#M000191">write</a>
207
+ Alias for <a href="HtmlWriter.html#M000229">write</a>
243
208
  </p>
244
-
245
209
  </div>
246
210
  </div>
247
211
 
248
-
249
- <div id="method-M000190" class="method-detail">
250
- <a name="M000190"></a>
212
+ <div id="method-M000228" class="method-detail">
213
+ <a name="M000228"></a>
251
214
 
252
215
  <div class="method-heading">
253
-
254
- <a href="#M000190" class="method-signature">
255
-
216
+ <a href="#M000228" class="method-signature">
256
217
  <span class="method-name">encode_text</span><span class="method-args">(str)</span>
257
-
258
218
  </a>
259
-
260
219
  </div>
261
-
220
+
262
221
  <div class="method-description">
263
-
264
222
  <p><a class="source-toggle" href="#"
265
- onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
266
- <div class="method-source-code" id="M000190-source">
223
+ onclick="toggleCode('M000228-source');return false;">[Source]</a></p>
224
+ <div class="method-source-code" id="M000228-source">
267
225
  <pre>
268
226
  <span class="ruby-comment cmt"># File lib/wee/html_writer.rb, line 60</span>
269
227
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
@@ -271,29 +229,22 @@ Alias for <a href="HtmlWriter.html#M000191">write</a>
271
229
  <span class="ruby-keyword kw">end</span>
272
230
  </pre>
273
231
  </div>
274
-
275
232
  </div>
276
233
  </div>
277
234
 
278
-
279
- <div id="method-M000188" class="method-detail">
280
- <a name="M000188"></a>
235
+ <div id="method-M000226" class="method-detail">
236
+ <a name="M000226"></a>
281
237
 
282
238
  <div class="method-heading">
283
-
284
- <a href="#M000188" class="method-signature">
285
-
239
+ <a href="#M000226" class="method-signature">
286
240
  <span class="method-name">end_tag</span><span class="method-args">(tag)</span>
287
-
288
241
  </a>
289
-
290
242
  </div>
291
-
243
+
292
244
  <div class="method-description">
293
-
294
245
  <p><a class="source-toggle" href="#"
295
- onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
296
- <div class="method-source-code" id="M000188-source">
246
+ onclick="toggleCode('M000226-source');return false;">[Source]</a></p>
247
+ <div class="method-source-code" id="M000226-source">
297
248
  <pre>
298
249
  <span class="ruby-comment cmt"># File lib/wee/html_writer.rb, line 52</span>
299
250
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_tag</span>(<span class="ruby-identifier">tag</span>)
@@ -301,29 +252,22 @@ Alias for <a href="HtmlWriter.html#M000191">write</a>
301
252
  <span class="ruby-keyword kw">end</span>
302
253
  </pre>
303
254
  </div>
304
-
305
255
  </div>
306
256
  </div>
307
257
 
308
-
309
- <div id="method-M000187" class="method-detail">
310
- <a name="M000187"></a>
258
+ <div id="method-M000225" class="method-detail">
259
+ <a name="M000225"></a>
311
260
 
312
261
  <div class="method-heading">
313
-
314
- <a href="#M000187" class="method-signature">
315
-
262
+ <a href="#M000225" class="method-signature">
316
263
  <span class="method-name">single_tag</span><span class="method-args">(tag, attributes=nil)</span>
317
-
318
264
  </a>
319
-
320
265
  </div>
321
-
266
+
322
267
  <div class="method-description">
323
-
324
268
  <p><a class="source-toggle" href="#"
325
- onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
326
- <div class="method-source-code" id="M000187-source">
269
+ onclick="toggleCode('M000225-source');return false;">[Source]</a></p>
270
+ <div class="method-source-code" id="M000225-source">
327
271
  <pre>
328
272
  <span class="ruby-comment cmt"># File lib/wee/html_writer.rb, line 48</span>
329
273
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">single_tag</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">attributes</span>=<span class="ruby-keyword kw">nil</span>)
@@ -331,29 +275,22 @@ Alias for <a href="HtmlWriter.html#M000191">write</a>
331
275
  <span class="ruby-keyword kw">end</span>
332
276
  </pre>
333
277
  </div>
334
-
335
278
  </div>
336
279
  </div>
337
280
 
338
-
339
- <div id="method-M000186" class="method-detail">
340
- <a name="M000186"></a>
281
+ <div id="method-M000224" class="method-detail">
282
+ <a name="M000224"></a>
341
283
 
342
284
  <div class="method-heading">
343
-
344
- <a href="#M000186" class="method-signature">
345
-
285
+ <a href="#M000224" class="method-signature">
346
286
  <span class="method-name">start_tag</span><span class="method-args">(tag, attributes=nil, single=false)</span>
347
-
348
287
  </a>
349
-
350
288
  </div>
351
-
289
+
352
290
  <div class="method-description">
353
-
354
291
  <p><a class="source-toggle" href="#"
355
- onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
356
- <div class="method-source-code" id="M000186-source">
292
+ onclick="toggleCode('M000224-source');return false;">[Source]</a></p>
293
+ <div class="method-source-code" id="M000224-source">
357
294
  <pre>
358
295
  <span class="ruby-comment cmt"># File lib/wee/html_writer.rb, line 32</span>
359
296
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_tag</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">attributes</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">single</span>=<span class="ruby-keyword kw">false</span>)
@@ -373,29 +310,22 @@ Alias for <a href="HtmlWriter.html#M000191">write</a>
373
310
  <span class="ruby-keyword kw">end</span>
374
311
  </pre>
375
312
  </div>
376
-
377
313
  </div>
378
314
  </div>
379
315
 
380
-
381
- <div id="method-M000189" class="method-detail">
382
- <a name="M000189"></a>
316
+ <div id="method-M000227" class="method-detail">
317
+ <a name="M000227"></a>
383
318
 
384
319
  <div class="method-heading">
385
-
386
- <a href="#M000189" class="method-signature">
387
-
320
+ <a href="#M000227" class="method-signature">
388
321
  <span class="method-name">text</span><span class="method-args">(str)</span>
389
-
390
322
  </a>
391
-
392
323
  </div>
393
-
324
+
394
325
  <div class="method-description">
395
-
396
326
  <p><a class="source-toggle" href="#"
397
- onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
398
- <div class="method-source-code" id="M000189-source">
327
+ onclick="toggleCode('M000227-source');return false;">[Source]</a></p>
328
+ <div class="method-source-code" id="M000227-source">
399
329
  <pre>
400
330
  <span class="ruby-comment cmt"># File lib/wee/html_writer.rb, line 56</span>
401
331
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
@@ -403,29 +333,22 @@ Alias for <a href="HtmlWriter.html#M000191">write</a>
403
333
  <span class="ruby-keyword kw">end</span>
404
334
  </pre>
405
335
  </div>
406
-
407
336
  </div>
408
337
  </div>
409
338
 
410
-
411
- <div id="method-M000191" class="method-detail">
412
- <a name="M000191"></a>
339
+ <div id="method-M000229" class="method-detail">
340
+ <a name="M000229"></a>
413
341
 
414
342
  <div class="method-heading">
415
-
416
- <a href="#M000191" class="method-signature">
417
-
343
+ <a href="#M000229" class="method-signature">
418
344
  <span class="method-name">write</span><span class="method-args">(str)</span>
419
-
420
345
  </a>
421
-
422
346
  </div>
423
-
347
+
424
348
  <div class="method-description">
425
-
426
349
  <p><a class="source-toggle" href="#"
427
- onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
428
- <div class="method-source-code" id="M000191-source">
350
+ onclick="toggleCode('M000229-source');return false;">[Source]</a></p>
351
+ <div class="method-source-code" id="M000229-source">
429
352
  <pre>
430
353
  <span class="ruby-comment cmt"># File lib/wee/html_writer.rb, line 64</span>
431
354
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">str</span>)
@@ -433,22 +356,19 @@ Alias for <a href="HtmlWriter.html#M000191">write</a>
433
356
  <span class="ruby-keyword kw">end</span>
434
357
  </pre>
435
358
  </div>
436
-
437
359
  </div>
438
360
  </div>
439
361
 
440
362
 
441
-
442
363
  </div>
443
364
 
444
365
 
445
-
446
-
447
366
  </div>
448
367
 
368
+
449
369
  <div id="validator-badges">
450
370
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
451
371
  </div>
452
372
 
453
373
  </body>
454
- </html>
374
+ </html>