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::RefreshResponse [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::RefreshResponse</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,57 +55,46 @@
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/response_rb.html">
57
-
58
59
  lib/wee/response.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
- <a href="GenericResponse.html">
74
-
75
- Wee::GenericResponse
76
-
68
+ <a href="Response.html">
69
+ Response
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
- </div>
91
83
 
92
84
 
85
+ </div>
86
+
93
87
  <div id="method-list">
94
88
  <h3 class="section-bar">Methods</h3>
95
89
 
96
90
  <div class="name-list">
97
-
98
- <a href="#M000114">new</a>&nbsp;&nbsp;
99
-
91
+ <a href="#M000120">new</a>&nbsp;&nbsp;
100
92
  </div>
101
93
  </div>
102
94
 
103
95
  </div>
104
96
 
97
+
105
98
  <!-- if includes -->
106
99
 
107
100
  <div id="section">
@@ -109,35 +102,31 @@
109
102
 
110
103
 
111
104
 
112
- <!-- if method_list -->
113
105
 
114
- <div id="methods">
106
+
115
107
 
116
- <h3 class="section-bar">Public Class methods</h3>
117
108
 
109
+ <!-- if method_list -->
110
+ <div id="methods">
111
+ <h3 class="section-bar">Public Class methods</h3>
118
112
 
119
- <div id="method-M000114" class="method-detail">
120
- <a name="M000114"></a>
113
+ <div id="method-M000120" class="method-detail">
114
+ <a name="M000120"></a>
121
115
 
122
116
  <div class="method-heading">
123
-
124
- <a href="#M000114" class="method-signature">
125
-
117
+ <a href="#M000120" class="method-signature">
126
118
  <span class="method-name">new</span><span class="method-args">(message, location, seconds=5)</span>
127
-
128
119
  </a>
129
-
130
120
  </div>
131
-
121
+
132
122
  <div class="method-description">
133
-
134
123
  <p><a class="source-toggle" href="#"
135
- onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000114-source">
124
+ onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
125
+ <div class="method-source-code" id="M000120-source">
137
126
  <pre>
138
127
  <span class="ruby-comment cmt"># File lib/wee/response.rb, line 31</span>
139
128
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">location</span>, <span class="ruby-identifier">seconds</span>=<span class="ruby-value">5</span>)
140
- <span class="ruby-keyword kw">super</span>(<span class="ruby-node">%[&lt;html&gt;
129
+ <span class="ruby-keyword kw">super</span>([<span class="ruby-node">%[&lt;html&gt;
141
130
  &lt;head&gt;
142
131
  &lt;meta http-equiv=&quot;REFRESH&quot; content=&quot;#{seconds};URL=#{location}&quot;&gt;
143
132
  &lt;title&gt;#{message}&lt;/title&gt;
@@ -147,26 +136,23 @@
147
136
  You are being redirected to &lt;a href=&quot;#{location}&quot;&gt;#{location}&lt;/a&gt;
148
137
  in #{seconds} seconds.
149
138
  &lt;/body&gt;
150
- &lt;/html&gt;]</span>)
139
+ &lt;/html&gt;]</span>])
151
140
  <span class="ruby-keyword kw">end</span>
152
141
  </pre>
153
142
  </div>
154
-
155
143
  </div>
156
144
  </div>
157
145
 
158
146
 
159
-
160
147
  </div>
161
148
 
162
149
 
163
-
164
-
165
150
  </div>
166
151
 
152
+
167
153
  <div id="validator-badges">
168
154
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
169
155
  </div>
170
156
 
171
157
  </body>
172
- </html>
158
+ </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::Renderer [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::Renderer</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/renderer_rb.html">
57
-
58
59
  lib/wee/renderer.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,119 +87,90 @@ Base class of all <a href="Renderer.html">Renderer</a> classes.
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="#M000056">close</a>&nbsp;&nbsp;
106
-
107
- <a href="#M000052">new</a>&nbsp;&nbsp;
108
-
109
- <a href="#M000054">render</a>&nbsp;&nbsp;
110
-
111
- <a href="#M000055">render_decoration</a>&nbsp;&nbsp;
112
-
113
- <a href="#M000053">with</a>&nbsp;&nbsp;
114
-
97
+ <a href="#M000101">close</a>&nbsp;&nbsp;
98
+ <a href="#M000097">new</a>&nbsp;&nbsp;
99
+ <a href="#M000099">render</a>&nbsp;&nbsp;
100
+ <a href="#M000100">render_decoration</a>&nbsp;&nbsp;
101
+ <a href="#M000098">with</a>&nbsp;&nbsp;
115
102
  </div>
116
103
  </div>
117
104
 
118
105
  </div>
119
106
 
107
+
120
108
  <!-- if includes -->
121
109
 
122
110
  <div id="section">
123
111
 
124
112
 
125
113
 
114
+
115
+
126
116
  <div id="attribute-list">
127
117
  <h3 class="section-bar">Attributes</h3>
128
118
 
129
119
  <div class="name-list">
130
120
  <table>
131
-
132
121
  <tr class="top-aligned-row context-row">
133
122
  <td class="context-item-name">callbacks</td>
134
-
135
123
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
136
-
137
124
  <td class="context-item-desc"></td>
138
125
  </tr>
139
-
140
126
  <tr class="top-aligned-row context-row">
141
127
  <td class="context-item-name">current_component</td>
142
-
143
128
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
144
-
145
129
  <td class="context-item-desc"></td>
146
130
  </tr>
147
-
148
131
  <tr class="top-aligned-row context-row">
149
132
  <td class="context-item-name">document</td>
150
-
151
133
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
152
-
153
134
  <td class="context-item-desc"></td>
154
135
  </tr>
155
-
156
136
  <tr class="top-aligned-row context-row">
157
137
  <td class="context-item-name">request</td>
158
-
159
138
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
160
-
161
139
  <td class="context-item-desc"></td>
162
140
  </tr>
163
-
164
141
  <tr class="top-aligned-row context-row">
165
142
  <td class="context-item-name">response</td>
166
-
167
143
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
168
-
169
144
  <td class="context-item-desc"></td>
170
145
  </tr>
171
-
172
146
  <tr class="top-aligned-row context-row">
173
147
  <td class="context-item-name">session</td>
174
-
175
148
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
176
-
177
149
  <td class="context-item-desc"></td>
178
150
  </tr>
179
-
180
151
  </table>
181
152
  </div>
182
153
  </div>
154
+
183
155
 
184
156
 
185
157
  <!-- if method_list -->
186
-
187
158
  <div id="methods">
188
-
189
159
  <h3 class="section-bar">Public Class methods</h3>
190
160
 
191
-
192
- <div id="method-M000052" class="method-detail">
193
- <a name="M000052"></a>
161
+ <div id="method-M000097" class="method-detail">
162
+ <a name="M000097"></a>
194
163
 
195
164
  <div class="method-heading">
196
-
197
- <a href="#M000052" class="method-signature">
198
-
165
+ <a href="#M000097" class="method-signature">
199
166
  <span class="method-name">new</span><span class="method-args">(session=nil, request=nil, response=nil, callbacks=nil, document=nil, current_component=nil)</span>
200
-
201
167
  </a>
202
-
203
168
  </div>
204
-
169
+
205
170
  <div class="method-description">
206
-
207
171
  <p><a class="source-toggle" href="#"
208
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
209
- <div class="method-source-code" id="M000052-source">
172
+ onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
173
+ <div class="method-source-code" id="M000097-source">
210
174
  <pre>
211
175
  <span class="ruby-comment cmt"># File lib/wee/renderer.rb, line 14</span>
212
176
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">session</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">request</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">response</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">callbacks</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">document</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">current_component</span>=<span class="ruby-keyword kw">nil</span>)
@@ -219,65 +183,49 @@ Base class of all <a href="Renderer.html">Renderer</a> classes.
219
183
  <span class="ruby-keyword kw">end</span>
220
184
  </pre>
221
185
  </div>
222
-
223
186
  </div>
224
187
  </div>
225
188
 
226
-
227
189
  <h3 class="section-bar">Public Instance methods</h3>
228
190
 
229
-
230
- <div id="method-M000056" class="method-detail">
231
- <a name="M000056"></a>
191
+ <div id="method-M000101" class="method-detail">
192
+ <a name="M000101"></a>
232
193
 
233
194
  <div class="method-heading">
234
-
235
- <a href="#M000056" class="method-signature">
236
-
195
+ <a href="#M000101" class="method-signature">
237
196
  <span class="method-name">close</span><span class="method-args">()</span>
238
-
239
197
  </a>
240
-
241
198
  </div>
242
-
199
+
243
200
  <div class="method-description">
244
-
245
201
  <p>
246
202
  Subclass responsibility.
247
203
  </p>
248
-
249
204
  <p><a class="source-toggle" href="#"
250
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
251
- <div class="method-source-code" id="M000056-source">
205
+ onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
206
+ <div class="method-source-code" id="M000101-source">
252
207
  <pre>
253
208
  <span class="ruby-comment cmt"># File lib/wee/renderer.rb, line 60</span>
254
209
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
255
210
  <span class="ruby-keyword kw">end</span>
256
211
  </pre>
257
212
  </div>
258
-
259
213
  </div>
260
214
  </div>
261
215
 
262
-
263
- <div id="method-M000054" class="method-detail">
264
- <a name="M000054"></a>
216
+ <div id="method-M000099" class="method-detail">
217
+ <a name="M000099"></a>
265
218
 
266
219
  <div class="method-heading">
267
-
268
- <a href="#M000054" class="method-signature">
269
-
220
+ <a href="#M000099" class="method-signature">
270
221
  <span class="method-name">render</span><span class="method-args">(component)</span>
271
-
272
222
  </a>
273
-
274
223
  </div>
275
-
224
+
276
225
  <div class="method-description">
277
-
278
226
  <p><a class="source-toggle" href="#"
279
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
280
- <div class="method-source-code" id="M000054-source">
227
+ onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
228
+ <div class="method-source-code" id="M000099-source">
281
229
  <pre>
282
230
  <span class="ruby-comment cmt"># File lib/wee/renderer.rb, line 45</span>
283
231
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">component</span>)
@@ -287,29 +235,22 @@ Subclass responsibility.
287
235
  <span class="ruby-keyword kw">end</span>
288
236
  </pre>
289
237
  </div>
290
-
291
238
  </div>
292
239
  </div>
293
240
 
294
-
295
- <div id="method-M000055" class="method-detail">
296
- <a name="M000055"></a>
241
+ <div id="method-M000100" class="method-detail">
242
+ <a name="M000100"></a>
297
243
 
298
244
  <div class="method-heading">
299
-
300
- <a href="#M000055" class="method-signature">
301
-
245
+ <a href="#M000100" class="method-signature">
302
246
  <span class="method-name">render_decoration</span><span class="method-args">(decoration)</span>
303
-
304
247
  </a>
305
-
306
248
  </div>
307
-
249
+
308
250
  <div class="method-description">
309
-
310
251
  <p><a class="source-toggle" href="#"
311
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
312
- <div class="method-source-code" id="M000055-source">
252
+ onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
253
+ <div class="method-source-code" id="M000100-source">
313
254
  <pre>
314
255
  <span class="ruby-comment cmt"># File lib/wee/renderer.rb, line 51</span>
315
256
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_decoration</span>(<span class="ruby-identifier">decoration</span>)
@@ -319,29 +260,22 @@ Subclass responsibility.
319
260
  <span class="ruby-keyword kw">end</span>
320
261
  </pre>
321
262
  </div>
322
-
323
263
  </div>
324
264
  </div>
325
265
 
326
-
327
- <div id="method-M000053" class="method-detail">
328
- <a name="M000053"></a>
266
+ <div id="method-M000098" class="method-detail">
267
+ <a name="M000098"></a>
329
268
 
330
269
  <div class="method-heading">
331
-
332
- <a href="#M000053" class="method-signature">
333
-
270
+ <a href="#M000098" class="method-signature">
334
271
  <span class="method-name">with</span><span class="method-args">(component) {|self| ...}</span>
335
-
336
272
  </a>
337
-
338
273
  </div>
339
-
274
+
340
275
  <div class="method-description">
341
-
342
276
  <p><a class="source-toggle" href="#"
343
- onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
344
- <div class="method-source-code" id="M000053-source">
277
+ onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
278
+ <div class="method-source-code" id="M000098-source">
345
279
  <pre>
346
280
  <span class="ruby-comment cmt"># File lib/wee/renderer.rb, line 23</span>
347
281
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-identifier">component</span>)
@@ -367,22 +301,19 @@ Subclass responsibility.
367
301
  <span class="ruby-keyword kw">end</span>
368
302
  </pre>
369
303
  </div>
370
-
371
304
  </div>
372
305
  </div>
373
306
 
374
307
 
375
-
376
308
  </div>
377
309
 
378
310
 
379
-
380
-
381
311
  </div>
382
312
 
313
+
383
314
  <div id="validator-badges">
384
315
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
385
316
  </div>
386
317
 
387
318
  </body>
388
- </html>
319
+ </html>