wee 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. data/ChangeLog +132 -0
  2. data/INSTALL +13 -3
  3. data/README +3 -3
  4. data/Rakefile +5 -1
  5. data/bin/wee +100 -0
  6. data/doc/rdoc/classes/Array.html +12 -12
  7. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  8. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  9. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  10. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  11. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  12. data/doc/rdoc/classes/Enumerable.html +6 -6
  13. data/doc/rdoc/classes/Main.html +265 -0
  14. data/doc/rdoc/classes/Object.html +12 -12
  15. data/doc/rdoc/classes/OgApplication.html +2 -2
  16. data/doc/rdoc/classes/OgScaffolder.html +444 -64
  17. data/doc/rdoc/classes/OgScaffolder/Editor.html +490 -0
  18. data/doc/rdoc/classes/OgSession.html +4 -4
  19. data/doc/rdoc/classes/Recipe.html +113 -0
  20. data/doc/rdoc/classes/String.html +12 -12
  21. data/doc/rdoc/classes/Struct.html +12 -12
  22. data/doc/rdoc/classes/Wee.html +10 -1
  23. data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
  24. data/doc/rdoc/classes/Wee/Application.html +48 -47
  25. data/doc/rdoc/classes/Wee/Brush.html +19 -23
  26. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +17 -14
  27. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +20 -14
  28. data/doc/rdoc/classes/Wee/Brush/FormTag.html +25 -21
  29. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  30. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
  31. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +234 -100
  32. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  33. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +28 -22
  34. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +23 -24
  35. data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
  36. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
  37. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  38. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +33 -57
  39. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +154 -0
  40. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
  41. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +20 -14
  42. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  43. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  44. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
  45. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  46. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +27 -21
  47. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +20 -14
  48. data/doc/rdoc/classes/Wee/CallbackRegistry.html +64 -36
  49. data/doc/rdoc/classes/Wee/CallbackStream.html +21 -21
  50. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  51. data/doc/rdoc/classes/Wee/Component.html +179 -151
  52. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +12 -12
  53. data/doc/rdoc/classes/Wee/Decoration.html +42 -42
  54. data/doc/rdoc/classes/Wee/Delegate.html +27 -27
  55. data/doc/rdoc/classes/Wee/ErrorResponse.html +14 -14
  56. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  57. data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
  58. data/doc/rdoc/classes/Wee/HtmlCanvas.html +326 -219
  59. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  60. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +19 -19
  61. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +181 -0
  62. data/doc/rdoc/classes/Wee/MessageBox.html +12 -12
  63. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  64. data/doc/rdoc/classes/Wee/PagelessApplication.html +152 -0
  65. data/doc/rdoc/classes/Wee/PagelessRequest.html +177 -0
  66. data/doc/rdoc/classes/Wee/PagelessSession.html +320 -0
  67. data/doc/rdoc/classes/Wee/Presenter.html +145 -89
  68. data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
  69. data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
  70. data/doc/rdoc/classes/Wee/Request.html +116 -50
  71. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  72. data/doc/rdoc/classes/Wee/Response.html +76 -28
  73. data/doc/rdoc/classes/Wee/Session.html +129 -506
  74. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +22 -40
  75. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  76. data/doc/rdoc/classes/Wee/Utils.html +70 -17
  77. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  78. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  79. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +82 -49
  80. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  81. data/doc/rdoc/created.rid +1 -1
  82. data/doc/rdoc/files/INSTALL.html +17 -5
  83. data/doc/rdoc/files/README.html +9 -11
  84. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  85. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  86. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  87. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -3
  88. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  89. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  90. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  91. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +101 -0
  92. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +101 -0
  93. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +108 -0
  94. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +101 -0
  95. data/doc/rdoc/files/lib/wee/databases/og_rb.html +4 -1
  96. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +115 -0
  97. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +107 -0
  98. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +101 -0
  99. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +101 -0
  100. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +108 -0
  101. data/doc/rdoc/files/lib/wee/pageless_rb.html +110 -0
  102. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  103. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +8 -1
  104. data/doc/rdoc/files/lib/wee/request_rb.html +1 -1
  105. data/doc/rdoc/files/lib/wee/response_rb.html +1 -1
  106. data/doc/rdoc/files/lib/wee/session_rb.html +1 -1
  107. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +101 -0
  108. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +114 -0
  109. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +101 -0
  110. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +115 -0
  111. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +101 -0
  112. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +111 -0
  113. data/doc/rdoc/files/lib/wee/template_rb.html +101 -0
  114. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  115. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
  116. data/doc/rdoc/files/lib/wee_rb.html +4 -2
  117. data/doc/rdoc/fr_class_index.html +8 -4
  118. data/doc/rdoc/fr_file_index.html +17 -1
  119. data/doc/rdoc/fr_method_index.html +312 -267
  120. data/examples/live-update.rb +1 -1
  121. data/install.rb +14 -0
  122. data/lib/wee.rb +6 -2
  123. data/lib/wee/adaptors/webrick.rb +17 -5
  124. data/lib/wee/application.rb +2 -1
  125. data/lib/wee/continuation/session.rb +1 -146
  126. data/lib/wee/core/callback.rb +11 -5
  127. data/lib/wee/core/component.rb +14 -10
  128. data/lib/wee/databases/og.rb +3 -113
  129. data/lib/wee/databases/og/application.rb +3 -0
  130. data/lib/wee/databases/og/old_scaffolder.rb +98 -0
  131. data/lib/wee/databases/og/scaffolder.rb +174 -0
  132. data/lib/wee/databases/og/session.rb +9 -0
  133. data/lib/wee/idgen/md5.rb +21 -0
  134. data/lib/wee/{idgen.rb → idgen/simple.rb} +2 -4
  135. data/lib/wee/pageless.rb +3 -0
  136. data/lib/wee/pageless/application.rb +9 -0
  137. data/lib/wee/pageless/request.rb +15 -0
  138. data/lib/wee/pageless/session.rb +89 -0
  139. data/lib/wee/renderer/html/brushes.rb +100 -115
  140. data/lib/wee/renderer/html/canvas.rb +32 -2
  141. data/lib/wee/request.rb +36 -24
  142. data/lib/wee/response.rb +8 -1
  143. data/lib/wee/session.rb +13 -7
  144. data/lib/wee/skeleton/og/README +38 -0
  145. data/lib/wee/skeleton/og/components/main.rb +16 -0
  146. data/lib/wee/skeleton/og/conf/db.rb +8 -0
  147. data/lib/wee/skeleton/og/models/recipe.rb +5 -0
  148. data/lib/wee/skeleton/og/run.rb +23 -0
  149. data/lib/wee/skeleton/simple/README +32 -0
  150. data/lib/wee/skeleton/simple/components/main.rb +25 -0
  151. data/lib/wee/skeleton/simple/run.rb +12 -0
  152. data/lib/wee/template.rb +28 -0
  153. data/lib/wee/utils/autoreload.rb +29 -0
  154. data/lib/wee/utils/helper.rb +9 -5
  155. data/test/test_request.rb +4 -3
  156. data/wee.gemspec +3 -1
  157. metadata +91 -22
@@ -88,9 +88,9 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000097">close</a>&nbsp;&nbsp;
92
- <a href="#M000095">new</a>&nbsp;&nbsp;
93
- <a href="#M000096">with</a>&nbsp;&nbsp;
91
+ <a href="#M000142">close</a>&nbsp;&nbsp;
92
+ <a href="#M000140">new</a>&nbsp;&nbsp;
93
+ <a href="#M000141">with</a>&nbsp;&nbsp;
94
94
  </div>
95
95
  </div>
96
96
 
@@ -104,11 +104,7 @@
104
104
  <div id="class-list">
105
105
  <h3 class="section-bar">Classes and Modules</h3>
106
106
 
107
- Module <a href="Brush/ActionCallbackMixin.html" class="link">Wee::Brush::ActionCallbackMixin</a><br />
108
- Module <a href="Brush/ActionURLCallbackMixin.html" class="link">Wee::Brush::ActionURLCallbackMixin</a><br />
109
- Module <a href="Brush/InputCallbackMixin.html" class="link">Wee::Brush::InputCallbackMixin</a><br />
110
- Module <a href="Brush/ToCallback.html" class="link">Wee::Brush::ToCallback</a><br />
111
- Class <a href="Brush/AnchorTag.html" class="link">Wee::Brush::AnchorTag</a><br />
107
+ Class <a href="Brush/AnchorTag.html" class="link">Wee::Brush::AnchorTag</a><br />
112
108
  Class <a href="Brush/FileUploadTag.html" class="link">Wee::Brush::FileUploadTag</a><br />
113
109
  Class <a href="Brush/FormTag.html" class="link">Wee::Brush::FormTag</a><br />
114
110
  Class <a href="Brush/GenericEncodedTextBrush.html" class="link">Wee::Brush::GenericEncodedTextBrush</a><br />
@@ -160,19 +156,19 @@ Class <a href="Brush/TextInputTag.html" class="link">Wee::Brush::TextInputTag</a
160
156
  <div id="methods">
161
157
  <h3 class="section-bar">Public Class methods</h3>
162
158
 
163
- <div id="method-M000095" class="method-detail">
164
- <a name="M000095"></a>
159
+ <div id="method-M000140" class="method-detail">
160
+ <a name="M000140"></a>
165
161
 
166
162
  <div class="method-heading">
167
- <a href="#M000095" class="method-signature">
163
+ <a href="#M000140" class="method-signature">
168
164
  <span class="method-name">new</span><span class="method-args">()</span>
169
165
  </a>
170
166
  </div>
171
167
 
172
168
  <div class="method-description">
173
169
  <p><a class="source-toggle" href="#"
174
- onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
175
- <div class="method-source-code" id="M000095-source">
170
+ onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
171
+ <div class="method-source-code" id="M000140-source">
176
172
  <pre>
177
173
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 6</span>
178
174
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
@@ -185,19 +181,19 @@ Class <a href="Brush/TextInputTag.html" class="link">Wee::Brush::TextInputTag</a
185
181
 
186
182
  <h3 class="section-bar">Public Instance methods</h3>
187
183
 
188
- <div id="method-M000097" class="method-detail">
189
- <a name="M000097"></a>
184
+ <div id="method-M000142" class="method-detail">
185
+ <a name="M000142"></a>
190
186
 
191
187
  <div class="method-heading">
192
- <a href="#M000097" class="method-signature">
188
+ <a href="#M000142" class="method-signature">
193
189
  <span class="method-name">close</span><span class="method-args">()</span>
194
190
  </a>
195
191
  </div>
196
192
 
197
193
  <div class="method-description">
198
194
  <p><a class="source-toggle" href="#"
199
- onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
200
- <div class="method-source-code" id="M000097-source">
195
+ onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
196
+ <div class="method-source-code" id="M000142-source">
201
197
  <pre>
202
198
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 17</span>
203
199
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
@@ -208,19 +204,19 @@ Class <a href="Brush/TextInputTag.html" class="link">Wee::Brush::TextInputTag</a
208
204
  </div>
209
205
  </div>
210
206
 
211
- <div id="method-M000096" class="method-detail">
212
- <a name="M000096"></a>
207
+ <div id="method-M000141" class="method-detail">
208
+ <a name="M000141"></a>
213
209
 
214
210
  <div class="method-heading">
215
- <a href="#M000096" class="method-signature">
211
+ <a href="#M000141" class="method-signature">
216
212
  <span class="method-name">with</span><span class="method-args">(*args, &amp;block)</span>
217
213
  </a>
218
214
  </div>
219
215
 
220
216
  <div class="method-description">
221
217
  <p><a class="source-toggle" href="#"
222
- onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
223
- <div class="method-source-code" id="M000096-source">
218
+ onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
219
+ <div class="method-source-code" id="M000141-source">
224
220
  <pre>
225
221
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 10</span>
226
222
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000143">new</a>&nbsp;&nbsp;
89
+ <a href="#M000190">new</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -94,13 +94,6 @@
94
94
 
95
95
 
96
96
  <!-- if includes -->
97
- <div id="includes">
98
- <h3 class="section-bar">Included Modules</h3>
99
-
100
- <div id="includes-list">
101
- <span class="include-name"><a href="ActionURLCallbackMixin.html">Brush::ActionURLCallbackMixin</a></span>
102
- </div>
103
- </div>
104
97
 
105
98
  <div id="section">
106
99
 
@@ -125,6 +118,16 @@
125
118
  <td class="context-item-name">url</td>
126
119
  <td>-></td>
127
120
  <td class="context-item-value">__set_url</td>
121
+ </tr>
122
+ <tr class="top-aligned-row context-row">
123
+ <td class="context-item-name">__actionurl_callback</td>
124
+ <td>-></td>
125
+ <td class="context-item-value">callback</td>
126
+ </tr>
127
+ <tr class="top-aligned-row context-row">
128
+ <td class="context-item-name">__actionurl_named_callback</td>
129
+ <td>-></td>
130
+ <td class="context-item-value">named_callback</td>
128
131
  </tr>
129
132
  </table>
130
133
  </div>
@@ -138,21 +141,21 @@
138
141
  <div id="methods">
139
142
  <h3 class="section-bar">Public Class methods</h3>
140
143
 
141
- <div id="method-M000143" class="method-detail">
142
- <a name="M000143"></a>
144
+ <div id="method-M000190" class="method-detail">
145
+ <a name="M000190"></a>
143
146
 
144
147
  <div class="method-heading">
145
- <a href="#M000143" class="method-signature">
148
+ <a href="#M000190" class="method-signature">
146
149
  <span class="method-name">new</span><span class="method-args">()</span>
147
150
  </a>
148
151
  </div>
149
152
 
150
153
  <div class="method-description">
151
154
  <p><a class="source-toggle" href="#"
152
- onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
153
- <div class="method-source-code" id="M000143-source">
155
+ onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
156
+ <div class="method-source-code" id="M000190-source">
154
157
  <pre>
155
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 470</span>
158
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 453</span>
156
159
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
157
160
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'a'</span>)
158
161
  <span class="ruby-keyword kw">end</span>
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000139">new</a>&nbsp;&nbsp;
89
+ <a href="#M000186">new</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -94,18 +94,24 @@
94
94
 
95
95
 
96
96
  <!-- if includes -->
97
- <div id="includes">
98
- <h3 class="section-bar">Included Modules</h3>
99
-
100
- <div id="includes-list">
101
- <span class="include-name"><a href="InputCallbackMixin.html">Brush::InputCallbackMixin</a></span>
102
- </div>
103
- </div>
104
97
 
105
98
  <div id="section">
106
99
 
107
100
 
108
101
 
102
+ <div id="aliases-list">
103
+ <h3 class="section-bar">External Aliases</h3>
104
+
105
+ <div class="name-list">
106
+ <table summary="aliases">
107
+ <tr class="top-aligned-row context-row">
108
+ <td class="context-item-name">__input_callback</td>
109
+ <td>-></td>
110
+ <td class="context-item-value">callback</td>
111
+ </tr>
112
+ </table>
113
+ </div>
114
+ </div>
109
115
 
110
116
 
111
117
 
@@ -115,21 +121,21 @@
115
121
  <div id="methods">
116
122
  <h3 class="section-bar">Public Class methods</h3>
117
123
 
118
- <div id="method-M000139" class="method-detail">
119
- <a name="M000139"></a>
124
+ <div id="method-M000186" class="method-detail">
125
+ <a name="M000186"></a>
120
126
 
121
127
  <div class="method-heading">
122
- <a href="#M000139" class="method-signature">
128
+ <a href="#M000186" class="method-signature">
123
129
  <span class="method-name">new</span><span class="method-args">()</span>
124
130
  </a>
125
131
  </div>
126
132
 
127
133
  <div class="method-description">
128
134
  <p><a class="source-toggle" href="#"
129
- onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
130
- <div class="method-source-code" id="M000139-source">
135
+ onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
136
+ <div class="method-source-code" id="M000186-source">
131
137
  <pre>
132
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 390</span>
138
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 376</span>
133
139
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
134
140
  <span class="ruby-keyword kw">super</span>
135
141
  <span class="ruby-identifier">type</span>(<span class="ruby-value str">'file'</span>)
@@ -86,8 +86,8 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000102">new</a>&nbsp;&nbsp;
90
- <a href="#M000103">with</a>&nbsp;&nbsp;
89
+ <a href="#M000143">new</a>&nbsp;&nbsp;
90
+ <a href="#M000144">with</a>&nbsp;&nbsp;
91
91
  </div>
92
92
  </div>
93
93
 
@@ -95,13 +95,6 @@
95
95
 
96
96
 
97
97
  <!-- if includes -->
98
- <div id="includes">
99
- <h3 class="section-bar">Included Modules</h3>
100
-
101
- <div id="includes-list">
102
- <span class="include-name"><a href="ActionURLCallbackMixin.html">Brush::ActionURLCallbackMixin</a></span>
103
- </div>
104
- </div>
105
98
 
106
99
  <div id="section">
107
100
 
@@ -116,6 +109,16 @@
116
109
  <td class="context-item-name">action</td>
117
110
  <td>-></td>
118
111
  <td class="context-item-value">__set_url</td>
112
+ </tr>
113
+ <tr class="top-aligned-row context-row">
114
+ <td class="context-item-name">__actionurl_callback</td>
115
+ <td>-></td>
116
+ <td class="context-item-value">callback</td>
117
+ </tr>
118
+ <tr class="top-aligned-row context-row">
119
+ <td class="context-item-name">__actionurl_named_callback</td>
120
+ <td>-></td>
121
+ <td class="context-item-value">named_callback</td>
119
122
  </tr>
120
123
  </table>
121
124
  </div>
@@ -129,21 +132,21 @@
129
132
  <div id="methods">
130
133
  <h3 class="section-bar">Public Class methods</h3>
131
134
 
132
- <div id="method-M000102" class="method-detail">
133
- <a name="M000102"></a>
135
+ <div id="method-M000143" class="method-detail">
136
+ <a name="M000143"></a>
134
137
 
135
138
  <div class="method-heading">
136
- <a href="#M000102" class="method-signature">
139
+ <a href="#M000143" class="method-signature">
137
140
  <span class="method-name">new</span><span class="method-args">()</span>
138
141
  </a>
139
142
  </div>
140
143
 
141
144
  <div class="method-description">
142
145
  <p><a class="source-toggle" href="#"
143
- onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
144
- <div class="method-source-code" id="M000102-source">
146
+ onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
147
+ <div class="method-source-code" id="M000143-source">
145
148
  <pre>
146
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 448</span>
149
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 430</span>
147
150
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
148
151
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'form'</span>)
149
152
  <span class="ruby-ivar">@attributes</span>[<span class="ruby-value str">'method'</span>] = <span class="ruby-value str">'POST'</span>
@@ -155,25 +158,26 @@
155
158
 
156
159
  <h3 class="section-bar">Public Instance methods</h3>
157
160
 
158
- <div id="method-M000103" class="method-detail">
159
- <a name="M000103"></a>
161
+ <div id="method-M000144" class="method-detail">
162
+ <a name="M000144"></a>
160
163
 
161
164
  <div class="method-heading">
162
- <a href="#M000103" class="method-signature">
165
+ <a href="#M000144" class="method-signature">
163
166
  <span class="method-name">with</span><span class="method-args">(*args, &amp;block)</span>
164
167
  </a>
165
168
  </div>
166
169
 
167
170
  <div class="method-description">
168
171
  <p><a class="source-toggle" href="#"
169
- onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
170
- <div class="method-source-code" id="M000103-source">
172
+ onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
173
+ <div class="method-source-code" id="M000144-source">
171
174
  <pre>
172
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 457</span>
175
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 441</span>
173
176
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
174
177
  <span class="ruby-comment cmt"># If no action was specified, use a dummy one.</span>
175
178
  <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'action'</span>)
176
179
  <span class="ruby-identifier">req</span> = <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">request</span>
180
+ <span class="ruby-comment cmt"># TODO?</span>
177
181
  <span class="ruby-ivar">@attributes</span>[<span class="ruby-value str">'action'</span>] = <span class="ruby-identifier">req</span>.<span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">req</span>.<span class="ruby-identifier">request_handler_id</span>, <span class="ruby-identifier">req</span>.<span class="ruby-identifier">page_id</span>)
178
182
  <span class="ruby-keyword kw">end</span>
179
183
  <span class="ruby-keyword kw">super</span>
@@ -86,8 +86,8 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000124">new</a>&nbsp;&nbsp;
90
- <a href="#M000125">with</a>&nbsp;&nbsp;
89
+ <a href="#M000166">new</a>&nbsp;&nbsp;
90
+ <a href="#M000167">with</a>&nbsp;&nbsp;
91
91
  </div>
92
92
  </div>
93
93
 
@@ -109,19 +109,19 @@
109
109
  <div id="methods">
110
110
  <h3 class="section-bar">Public Class methods</h3>
111
111
 
112
- <div id="method-M000124" class="method-detail">
113
- <a name="M000124"></a>
112
+ <div id="method-M000166" class="method-detail">
113
+ <a name="M000166"></a>
114
114
 
115
115
  <div class="method-heading">
116
- <a href="#M000124" class="method-signature">
116
+ <a href="#M000166" class="method-signature">
117
117
  <span class="method-name">new</span><span class="method-args">(text)</span>
118
118
  </a>
119
119
  </div>
120
120
 
121
121
  <div class="method-description">
122
122
  <p><a class="source-toggle" href="#"
123
- onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000124-source">
123
+ onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
124
+ <div class="method-source-code" id="M000166-source">
125
125
  <pre>
126
126
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 37</span>
127
127
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">text</span>)
@@ -135,19 +135,19 @@
135
135
 
136
136
  <h3 class="section-bar">Public Instance methods</h3>
137
137
 
138
- <div id="method-M000125" class="method-detail">
139
- <a name="M000125"></a>
138
+ <div id="method-M000167" class="method-detail">
139
+ <a name="M000167"></a>
140
140
 
141
141
  <div class="method-heading">
142
- <a href="#M000125" class="method-signature">
142
+ <a href="#M000167" class="method-signature">
143
143
  <span class="method-name">with</span><span class="method-args">()</span>
144
144
  </a>
145
145
  </div>
146
146
 
147
147
  <div class="method-description">
148
148
  <p><a class="source-toggle" href="#"
149
- onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
150
- <div class="method-source-code" id="M000125-source">
149
+ onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
150
+ <div class="method-source-code" id="M000167-source">
151
151
  <pre>
152
152
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 42</span>
153
153
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000147">new</a>&nbsp;&nbsp;
89
+ <a href="#M000194">new</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -108,21 +108,21 @@
108
108
  <div id="methods">
109
109
  <h3 class="section-bar">Public Class methods</h3>
110
110
 
111
- <div id="method-M000147" class="method-detail">
112
- <a name="M000147"></a>
111
+ <div id="method-M000194" class="method-detail">
112
+ <a name="M000194"></a>
113
113
 
114
114
  <div class="method-heading">
115
- <a href="#M000147" class="method-signature">
115
+ <a href="#M000194" class="method-signature">
116
116
  <span class="method-name">new</span><span class="method-args">(tag)</span>
117
117
  </a>
118
118
  </div>
119
119
 
120
120
  <div class="method-description">
121
121
  <p><a class="source-toggle" href="#"
122
- onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000147-source">
122
+ onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000194-source">
124
124
  <pre>
125
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 159</span>
125
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 184</span>
126
126
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">tag</span>)
127
127
  <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-keyword kw">true</span>)
128
128
  <span class="ruby-keyword kw">end</span>
@@ -86,15 +86,20 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000127">bool_attr</a>&nbsp;&nbsp;
90
- <a href="#M000132">css_class</a>&nbsp;&nbsp;
91
- <a href="#M000134">css_class_for</a>&nbsp;&nbsp;
92
- <a href="#M000129">html_attr</a>&nbsp;&nbsp;
93
- <a href="#M000128">html_attr</a>&nbsp;&nbsp;
94
- <a href="#M000130">method_missing</a>&nbsp;&nbsp;
95
- <a href="#M000131">new</a>&nbsp;&nbsp;
96
- <a href="#M000133">onclick_callback</a>&nbsp;&nbsp;
97
- <a href="#M000135">with</a>&nbsp;&nbsp;
89
+ <a href="#M000174">__action_callback</a>&nbsp;&nbsp;
90
+ <a href="#M000175">__actionurl_callback</a>&nbsp;&nbsp;
91
+ <a href="#M000176">__actionurl_named_callback</a>&nbsp;&nbsp;
92
+ <a href="#M000173">__input_callback</a>&nbsp;&nbsp;
93
+ <a href="#M000169">bool_attr</a>&nbsp;&nbsp;
94
+ <a href="#M000179">css_class</a>&nbsp;&nbsp;
95
+ <a href="#M000181">css_class_for</a>&nbsp;&nbsp;
96
+ <a href="#M000170">html_attr</a>&nbsp;&nbsp;
97
+ <a href="#M000171">html_attr</a>&nbsp;&nbsp;
98
+ <a href="#M000177">method_missing</a>&nbsp;&nbsp;
99
+ <a href="#M000178">new</a>&nbsp;&nbsp;
100
+ <a href="#M000180">onclick_callback</a>&nbsp;&nbsp;
101
+ <a href="#M000172">to_callback</a>&nbsp;&nbsp;
102
+ <a href="#M000182">with</a>&nbsp;&nbsp;
98
103
  </div>
99
104
  </div>
100
105
 
@@ -102,13 +107,6 @@
102
107
 
103
108
 
104
109
  <!-- if includes -->
105
- <div id="includes">
106
- <h3 class="section-bar">Included Modules</h3>
107
-
108
- <div id="includes-list">
109
- <span class="include-name"><a href="ToCallback.html">Brush::ToCallback</a></span>
110
- </div>
111
- </div>
112
110
 
113
111
  <div id="section">
114
112
 
@@ -123,111 +121,211 @@
123
121
  <div id="methods">
124
122
  <h3 class="section-bar">Public Class methods</h3>
125
123
 
126
- <div id="method-M000127" class="method-detail">
127
- <a name="M000127"></a>
124
+ <div id="method-M000178" class="method-detail">
125
+ <a name="M000178"></a>
128
126
 
129
127
  <div class="method-heading">
130
- <a href="#M000127" class="method-signature">
128
+ <a href="#M000178" class="method-signature">
129
+ <span class="method-name">new</span><span class="method-args">(tag, is_single_tag=false)</span>
130
+ </a>
131
+ </div>
132
+
133
+ <div class="method-description">
134
+ <p><a class="source-toggle" href="#"
135
+ onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
136
+ <div class="method-source-code" id="M000178-source">
137
+ <pre>
138
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 136</span>
139
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">is_single_tag</span>=<span class="ruby-keyword kw">false</span>)
140
+ <span class="ruby-keyword kw">super</span>()
141
+ <span class="ruby-ivar">@tag</span>, <span class="ruby-ivar">@is_single_tag</span> = <span class="ruby-identifier">tag</span>, <span class="ruby-identifier">is_single_tag</span>
142
+ <span class="ruby-ivar">@attributes</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
143
+ <span class="ruby-keyword kw">end</span>
144
+ </pre>
145
+ </div>
146
+ </div>
147
+ </div>
148
+
149
+ <h3 class="section-bar">Private Class methods</h3>
150
+
151
+ <div id="method-M000169" class="method-detail">
152
+ <a name="M000169"></a>
153
+
154
+ <div class="method-heading">
155
+ <a href="#M000169" class="method-signature">
131
156
  <span class="method-name">bool_attr</span><span class="method-args">(*attrs)</span>
132
157
  </a>
133
158
  </div>
134
159
 
135
160
  <div class="method-description">
136
161
  <p><a class="source-toggle" href="#"
137
- onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000127-source">
162
+ onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
163
+ <div class="method-source-code" id="M000169-source">
139
164
  <pre>
140
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 66</span>
141
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bool_attr</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
142
- <span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
143
- <span class="ruby-identifier">class_eval</span> <span class="ruby-node">&quot;
144
- def #{ a }(bool=true)
145
- if bool
146
- @attributes['#{ a }'] = nil
147
- else
148
- @attributes.delete('#{ a }')
165
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 55</span>
166
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bool_attr</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
167
+ <span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
168
+ <span class="ruby-identifier">class_eval</span> <span class="ruby-node">&quot;
169
+ def #{ a }(bool=true)
170
+ if bool
171
+ @attributes['#{ a }'] = nil
172
+ else
173
+ @attributes.delete('#{ a }')
174
+ end
175
+ self
149
176
  end
150
- self
151
- end
152
- &quot;</span>
153
- }
154
- <span class="ruby-keyword kw">end</span>
177
+ &quot;</span>
178
+ }
179
+ <span class="ruby-keyword kw">end</span>
155
180
  </pre>
156
181
  </div>
157
182
  </div>
158
183
  </div>
159
184
 
160
- <div id="method-M000128" class="method-detail">
161
- <a name="M000128"></a>
185
+ <div id="method-M000170" class="method-detail">
186
+ <a name="M000170"></a>
162
187
 
163
188
  <div class="method-heading">
164
- <a href="#M000128" class="method-signature">
189
+ <a href="#M000170" class="method-signature">
165
190
  <span class="method-name">html_attr</span><span class="method-args">(*attrs)</span>
166
191
  </a>
167
192
  </div>
168
193
 
169
194
  <div class="method-description">
170
195
  <p><a class="source-toggle" href="#"
171
- onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
172
- <div class="method-source-code" id="M000128-source">
196
+ onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
197
+ <div class="method-source-code" id="M000170-source">
173
198
  <pre>
174
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 81</span>
175
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">html_attr</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
176
- <span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
177
- <span class="ruby-identifier">class_eval</span> <span class="ruby-node">&quot;
178
- def #{ a }(value)
179
- html_attr('#{ a }', value)
180
- end
181
- &quot;</span>
182
- }
199
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 70</span>
200
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">html_attr</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
201
+ <span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
202
+ <span class="ruby-identifier">class_eval</span> <span class="ruby-node">&quot;
203
+ def #{ a }(value)
204
+ html_attr('#{ a }', value)
205
+ end
206
+ &quot;</span>
207
+ }
208
+ <span class="ruby-keyword kw">end</span>
209
+ </pre>
210
+ </div>
211
+ </div>
212
+ </div>
213
+
214
+ <h3 class="section-bar">Public Instance methods</h3>
215
+
216
+ <div id="method-M000174" class="method-detail">
217
+ <a name="M000174"></a>
218
+
219
+ <div class="method-heading">
220
+ <a href="#M000174" class="method-signature">
221
+ <span class="method-name">__action_callback</span><span class="method-args">(symbol=nil, *args, &amp;block)</span>
222
+ </a>
223
+ </div>
224
+
225
+ <div class="method-description">
226
+ <p><a class="source-toggle" href="#"
227
+ onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
228
+ <div class="method-source-code" id="M000174-source">
229
+ <pre>
230
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 116</span>
231
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__action_callback</span>(<span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
232
+ <span class="ruby-identifier">name</span>(<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">:action</span>, <span class="ruby-identifier">to_callback</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>)))
183
233
  <span class="ruby-keyword kw">end</span>
184
234
  </pre>
185
235
  </div>
186
236
  </div>
187
237
  </div>
188
238
 
189
- <div id="method-M000131" class="method-detail">
190
- <a name="M000131"></a>
239
+ <div id="method-M000175" class="method-detail">
240
+ <a name="M000175"></a>
191
241
 
192
242
  <div class="method-heading">
193
- <a href="#M000131" class="method-signature">
194
- <span class="method-name">new</span><span class="method-args">(tag, is_single_tag=false)</span>
243
+ <a href="#M000175" class="method-signature">
244
+ <span class="method-name">__actionurl_callback</span><span class="method-args">(symbol=nil, *args, &amp;block)</span>
195
245
  </a>
196
246
  </div>
197
247
 
198
248
  <div class="method-description">
249
+ <p>
250
+ The callback id is listed in the URL (not as a form-data field)
251
+ </p>
199
252
  <p><a class="source-toggle" href="#"
200
- onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000131-source">
253
+ onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
254
+ <div class="method-source-code" id="M000175-source">
202
255
  <pre>
203
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 108</span>
204
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">is_single_tag</span>=<span class="ruby-keyword kw">false</span>)
205
- <span class="ruby-keyword kw">super</span>()
206
- <span class="ruby-ivar">@tag</span>, <span class="ruby-ivar">@is_single_tag</span> = <span class="ruby-identifier">tag</span>, <span class="ruby-identifier">is_single_tag</span>
207
- <span class="ruby-ivar">@attributes</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
256
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 122</span>
257
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__actionurl_callback</span>(<span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
258
+ <span class="ruby-identifier">__set_url</span>(<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">url_for_callback</span>(<span class="ruby-identifier">to_callback</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>)))
208
259
  <span class="ruby-keyword kw">end</span>
209
260
  </pre>
210
261
  </div>
211
262
  </div>
212
263
  </div>
213
264
 
214
- <h3 class="section-bar">Public Instance methods</h3>
265
+ <div id="method-M000176" class="method-detail">
266
+ <a name="M000176"></a>
215
267
 
216
- <div id="method-M000132" class="method-detail">
217
- <a name="M000132"></a>
268
+ <div class="method-heading">
269
+ <a href="#M000176" class="method-signature">
270
+ <span class="method-name">__actionurl_named_callback</span><span class="method-args">(name, symbol=nil, *args, &amp;block)</span>
271
+ </a>
272
+ </div>
273
+
274
+ <div class="method-description">
275
+ <p>
276
+ The callback id is listed in the URL (not as a form-data field)
277
+ </p>
278
+ <p><a class="source-toggle" href="#"
279
+ onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
280
+ <div class="method-source-code" id="M000176-source">
281
+ <pre>
282
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 128</span>
283
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__actionurl_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
284
+ <span class="ruby-identifier">__set_url</span>(<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">url_for_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">to_callback</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>)))
285
+ <span class="ruby-keyword kw">end</span>
286
+ </pre>
287
+ </div>
288
+ </div>
289
+ </div>
290
+
291
+ <div id="method-M000173" class="method-detail">
292
+ <a name="M000173"></a>
218
293
 
219
294
  <div class="method-heading">
220
- <a href="#M000132" class="method-signature">
295
+ <a href="#M000173" class="method-signature">
296
+ <span class="method-name">__input_callback</span><span class="method-args">(symbol=nil, *args, &amp;block)</span>
297
+ </a>
298
+ </div>
299
+
300
+ <div class="method-description">
301
+ <p><a class="source-toggle" href="#"
302
+ onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
303
+ <div class="method-source-code" id="M000173-source">
304
+ <pre>
305
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 112</span>
306
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__input_callback</span>(<span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
307
+ <span class="ruby-identifier">name</span>(<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">:input</span>, <span class="ruby-identifier">to_callback</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>)))
308
+ <span class="ruby-keyword kw">end</span>
309
+ </pre>
310
+ </div>
311
+ </div>
312
+ </div>
313
+
314
+ <div id="method-M000179" class="method-detail">
315
+ <a name="M000179"></a>
316
+
317
+ <div class="method-heading">
318
+ <a href="#M000179" class="method-signature">
221
319
  <span class="method-name">css_class</span><span class="method-args">(c)</span>
222
320
  </a>
223
321
  </div>
224
322
 
225
323
  <div class="method-description">
226
324
  <p><a class="source-toggle" href="#"
227
- onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
228
- <div class="method-source-code" id="M000132-source">
325
+ onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
326
+ <div class="method-source-code" id="M000179-source">
229
327
  <pre>
230
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 116</span>
328
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 144</span>
231
329
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">css_class</span>(<span class="ruby-identifier">c</span>)
232
330
  <span class="ruby-identifier">html_attr</span>(<span class="ruby-value str">&quot;class&quot;</span>, <span class="ruby-identifier">c</span>)
233
331
  <span class="ruby-keyword kw">end</span>
@@ -236,12 +334,12 @@
236
334
  </div>
237
335
  </div>
238
336
 
239
- <div id="method-M000134" class="method-detail">
240
- <a name="M000134"></a>
337
+ <div id="method-M000181" class="method-detail">
338
+ <a name="M000181"></a>
241
339
 
242
340
  <div class="method-heading">
243
- <a href="#M000134" class="method-signature">
244
- <span class="method-name">css_class_for</span><span class="method-args">(c)</span>
341
+ <a href="#M000181" class="method-signature">
342
+ <span class="method-name">css_class_for</span><span class="method-args">(prop)</span>
245
343
  </a>
246
344
  </div>
247
345
 
@@ -251,12 +349,11 @@ This method construct the css-class attribute by looking up the property
251
349
  from the current component.
252
350
  </p>
253
351
  <p><a class="source-toggle" href="#"
254
- onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
255
- <div class="method-source-code" id="M000134-source">
352
+ onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
353
+ <div class="method-source-code" id="M000181-source">
256
354
  <pre>
257
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 131</span>
258
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">css_class_for</span>(<span class="ruby-identifier">c</span>)
259
- <span class="ruby-identifier">prop</span> = <span class="ruby-value str">'css.'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">c</span>
355
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 157</span>
356
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">css_class_for</span>(<span class="ruby-identifier">prop</span>)
260
357
  <span class="ruby-identifier">val</span> = <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">current_component</span>.<span class="ruby-identifier">lookup_property</span>(<span class="ruby-identifier">prop</span>)
261
358
  <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;no property found for: &lt;#{ prop }&gt;&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">nil?</span>
262
359
  <span class="ruby-identifier">css_class</span>(<span class="ruby-identifier">val</span>)
@@ -266,21 +363,21 @@ from the current component.
266
363
  </div>
267
364
  </div>
268
365
 
269
- <div id="method-M000130" class="method-detail">
270
- <a name="M000130"></a>
366
+ <div id="method-M000177" class="method-detail">
367
+ <a name="M000177"></a>
271
368
 
272
369
  <div class="method-heading">
273
- <a href="#M000130" class="method-signature">
370
+ <a href="#M000177" class="method-signature">
274
371
  <span class="method-name">method_missing</span><span class="method-args">(id, attr)</span>
275
372
  </a>
276
373
  </div>
277
374
 
278
375
  <div class="method-description">
279
376
  <p><a class="source-toggle" href="#"
280
- onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
281
- <div class="method-source-code" id="M000130-source">
377
+ onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
378
+ <div class="method-source-code" id="M000177-source">
282
379
  <pre>
283
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 104</span>
380
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 132</span>
284
381
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">attr</span>)
285
382
  <span class="ruby-identifier">html_attr</span>(<span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">attr</span>)
286
383
  <span class="ruby-keyword kw">end</span>
@@ -289,21 +386,21 @@ from the current component.
289
386
  </div>
290
387
  </div>
291
388
 
292
- <div id="method-M000133" class="method-detail">
293
- <a name="M000133"></a>
389
+ <div id="method-M000180" class="method-detail">
390
+ <a name="M000180"></a>
294
391
 
295
392
  <div class="method-heading">
296
- <a href="#M000133" class="method-signature">
393
+ <a href="#M000180" class="method-signature">
297
394
  <span class="method-name">onclick_callback</span><span class="method-args">(symbol=nil, *args, &amp;block)</span>
298
395
  </a>
299
396
  </div>
300
397
 
301
398
  <div class="method-description">
302
399
  <p><a class="source-toggle" href="#"
303
- onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
304
- <div class="method-source-code" id="M000133-source">
400
+ onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
401
+ <div class="method-source-code" id="M000180-source">
305
402
  <pre>
306
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 122</span>
403
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 148</span>
307
404
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">onclick_callback</span>(<span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
308
405
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">symbol</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">block</span>
309
406
  <span class="ruby-identifier">url</span> = <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">url_for_callback</span>(<span class="ruby-identifier">to_callback</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>))
@@ -314,21 +411,21 @@ from the current component.
314
411
  </div>
315
412
  </div>
316
413
 
317
- <div id="method-M000135" class="method-detail">
318
- <a name="M000135"></a>
414
+ <div id="method-M000182" class="method-detail">
415
+ <a name="M000182"></a>
319
416
 
320
417
  <div class="method-heading">
321
- <a href="#M000135" class="method-signature">
418
+ <a href="#M000182" class="method-signature">
322
419
  <span class="method-name">with</span><span class="method-args">(text=nil, &amp;block)</span>
323
420
  </a>
324
421
  </div>
325
422
 
326
423
  <div class="method-description">
327
424
  <p><a class="source-toggle" href="#"
328
- onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
329
- <div class="method-source-code" id="M000135-source">
425
+ onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
426
+ <div class="method-source-code" id="M000182-source">
330
427
  <pre>
331
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 138</span>
428
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 163</span>
332
429
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-identifier">text</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
333
430
  <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">document</span>
334
431
  <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@is_single_tag</span>
@@ -354,21 +451,21 @@ from the current component.
354
451
 
355
452
  <h3 class="section-bar">Private Instance methods</h3>
356
453
 
357
- <div id="method-M000129" class="method-detail">
358
- <a name="M000129"></a>
454
+ <div id="method-M000171" class="method-detail">
455
+ <a name="M000171"></a>
359
456
 
360
457
  <div class="method-heading">
361
- <a href="#M000129" class="method-signature">
458
+ <a href="#M000171" class="method-signature">
362
459
  <span class="method-name">html_attr</span><span class="method-args">(attr, value)</span>
363
460
  </a>
364
461
  </div>
365
462
 
366
463
  <div class="method-description">
367
464
  <p><a class="source-toggle" href="#"
368
- onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
369
- <div class="method-source-code" id="M000129-source">
465
+ onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
466
+ <div class="method-source-code" id="M000171-source">
370
467
  <pre>
371
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 93</span>
468
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 84</span>
372
469
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">html_attr</span>(<span class="ruby-identifier">attr</span>, <span class="ruby-identifier">value</span>)
373
470
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>
374
471
  <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">attr</span>)
@@ -382,6 +479,43 @@ from the current component.
382
479
  </div>
383
480
  </div>
384
481
 
482
+ <div id="method-M000172" class="method-detail">
483
+ <a name="M000172"></a>
484
+
485
+ <div class="method-heading">
486
+ <a href="#M000172" class="method-signature">
487
+ <span class="method-name">to_callback</span><span class="method-args">(symbol, args, block)</span>
488
+ </a>
489
+ </div>
490
+
491
+ <div class="method-description">
492
+ <p>
493
+ Converts the arguments into a callable object.
494
+ </p>
495
+ <p><a class="source-toggle" href="#"
496
+ onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
497
+ <div class="method-source-code" id="M000172-source">
498
+ <pre>
499
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 95</span>
500
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_callback</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">block</span>)
501
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">symbol</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">block</span>
502
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">symbol</span>.<span class="ruby-identifier">nil?</span>
503
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
504
+ <span class="ruby-identifier">block</span>
505
+ <span class="ruby-keyword kw">else</span>
506
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">symbol</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">symbol</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
507
+ <span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">LiteralMethodCallback</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">current_component</span>, <span class="ruby-identifier">symbol</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
508
+ <span class="ruby-keyword kw">else</span>
509
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
510
+ <span class="ruby-identifier">symbol</span>
511
+ <span class="ruby-keyword kw">end</span>
512
+ <span class="ruby-keyword kw">end</span>
513
+ <span class="ruby-keyword kw">end</span>
514
+ </pre>
515
+ </div>
516
+ </div>
517
+ </div>
518
+
385
519
 
386
520
  </div>
387
521