wee 0.1.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. data/INSTALL +7 -0
  2. data/README +268 -0
  3. data/Rakefile +26 -0
  4. data/TODO +116 -0
  5. data/benchmark/Centrino1300/result.2000.counter.action +45 -0
  6. data/benchmark/Centrino1300/result.2000.counter.render +43 -0
  7. data/benchmark/Centrino1300/result.2000.filehandler +43 -0
  8. data/benchmark/Centrino600/result.2000.counter.action +47 -0
  9. data/benchmark/Centrino600/result.2000.counter.render +45 -0
  10. data/benchmark/Centrino600/result.2000.filehandler +43 -0
  11. data/benchmark/Makefile +48 -0
  12. data/benchmark/bench.sh +24 -0
  13. data/benchmark/counter.rb +96 -0
  14. data/benchmark/filehandler.rb +6 -0
  15. data/doc/rdoc/classes/Array.html +172 -0
  16. data/doc/rdoc/classes/Cache.html +126 -0
  17. data/doc/rdoc/classes/Cache/StorageCache.html +320 -0
  18. data/doc/rdoc/classes/Cache/Strategy.html +128 -0
  19. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +269 -0
  20. data/doc/rdoc/classes/Cache/Strategy/LFU.html +238 -0
  21. data/doc/rdoc/classes/Cache/Strategy/LFU/Item.html +111 -0
  22. data/doc/rdoc/classes/Cache/Strategy/LRU.html +238 -0
  23. data/doc/rdoc/classes/Cache/Strategy/LRU/Item.html +111 -0
  24. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +225 -0
  25. data/doc/rdoc/classes/Cache/Strategy/Unbounded/Item.html +111 -0
  26. data/doc/rdoc/classes/Enumerable.html +146 -0
  27. data/doc/rdoc/classes/LiteralMethod.html +196 -0
  28. data/doc/rdoc/classes/Object.html +178 -0
  29. data/doc/rdoc/classes/String.html +172 -0
  30. data/doc/rdoc/classes/Struct.html +174 -0
  31. data/doc/rdoc/classes/Wee.html +160 -0
  32. data/doc/rdoc/classes/Wee/AnswerDecoration.html +182 -0
  33. data/doc/rdoc/classes/Wee/Application.html +337 -0
  34. data/doc/rdoc/classes/Wee/Brush.html +245 -0
  35. data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +149 -0
  36. data/doc/rdoc/classes/Wee/Brush/ActionMixin.html +146 -0
  37. data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +157 -0
  38. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +210 -0
  39. data/doc/rdoc/classes/Wee/Brush/AssignMixin.html +141 -0
  40. data/doc/rdoc/classes/Wee/Brush/CallbackMixin.html +141 -0
  41. data/doc/rdoc/classes/Wee/Brush/FormTag.html +225 -0
  42. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +176 -0
  43. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +283 -0
  44. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +176 -0
  45. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +195 -0
  46. data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +149 -0
  47. data/doc/rdoc/classes/Wee/Brush/InputTag.html +172 -0
  48. data/doc/rdoc/classes/Wee/Brush/Page.html +193 -0
  49. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +267 -0
  50. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +177 -0
  51. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +154 -0
  52. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +173 -0
  53. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +146 -0
  54. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +277 -0
  55. data/doc/rdoc/classes/Wee/Brush/TableTag.html +146 -0
  56. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +229 -0
  57. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +154 -0
  58. data/doc/rdoc/classes/Wee/Callback.html +231 -0
  59. data/doc/rdoc/classes/Wee/CallbackRegistry.html +308 -0
  60. data/doc/rdoc/classes/Wee/CallbackStream.html +227 -0
  61. data/doc/rdoc/classes/Wee/Canvas.html +235 -0
  62. data/doc/rdoc/classes/Wee/Component.html +933 -0
  63. data/doc/rdoc/classes/Wee/Context.html +111 -0
  64. data/doc/rdoc/classes/Wee/Decoration.html +338 -0
  65. data/doc/rdoc/classes/Wee/Delegate.html +247 -0
  66. data/doc/rdoc/classes/Wee/ErrorPage.html +175 -0
  67. data/doc/rdoc/classes/Wee/ErrorResponse.html +180 -0
  68. data/doc/rdoc/classes/Wee/GenericResponse.html +162 -0
  69. data/doc/rdoc/classes/Wee/HtmlCanvas.html +751 -0
  70. data/doc/rdoc/classes/Wee/HtmlWriter.html +351 -0
  71. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +180 -0
  72. data/doc/rdoc/classes/Wee/MethodCallback.html +193 -0
  73. data/doc/rdoc/classes/Wee/Page.html +111 -0
  74. data/doc/rdoc/classes/Wee/Presenter.html +521 -0
  75. data/doc/rdoc/classes/Wee/RedirectResponse.html +150 -0
  76. data/doc/rdoc/classes/Wee/RefreshResponse.html +157 -0
  77. data/doc/rdoc/classes/Wee/RenderingContext.html +111 -0
  78. data/doc/rdoc/classes/Wee/Request.html +268 -0
  79. data/doc/rdoc/classes/Wee/RequestHandler.html +336 -0
  80. data/doc/rdoc/classes/Wee/Response.html +260 -0
  81. data/doc/rdoc/classes/Wee/Session.html +469 -0
  82. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +198 -0
  83. data/doc/rdoc/classes/Wee/Snapshot.html +211 -0
  84. data/doc/rdoc/classes/Wee/StateHolder.html +149 -0
  85. data/doc/rdoc/classes/Wee/StateRegistry.html +434 -0
  86. data/doc/rdoc/classes/Wee/StateRegistry/Snapshot.html +320 -0
  87. data/doc/rdoc/classes/Wee/StateRegistry/WithObject.html +153 -0
  88. data/doc/rdoc/classes/Wee/Utils.html +111 -0
  89. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +148 -0
  90. data/doc/rdoc/classes/Wee/ValueHolder.html +220 -0
  91. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +330 -0
  92. data/doc/rdoc/created.rid +1 -0
  93. data/doc/rdoc/files/INSTALL.html +118 -0
  94. data/doc/rdoc/files/README.html +466 -0
  95. data/doc/rdoc/files/lib/cache/cache_rb.html +101 -0
  96. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +108 -0
  97. data/doc/rdoc/files/lib/wee/application_rb.html +112 -0
  98. data/doc/rdoc/files/lib/wee/callback_rb.html +107 -0
  99. data/doc/rdoc/files/lib/wee/component_ext_rb.html +101 -0
  100. data/doc/rdoc/files/lib/wee/component_rb.html +109 -0
  101. data/doc/rdoc/files/lib/wee/context_rb.html +101 -0
  102. data/doc/rdoc/files/lib/wee/core/callback_rb.html +115 -0
  103. data/doc/rdoc/files/lib/wee/core/component_rb.html +108 -0
  104. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +133 -0
  105. data/doc/rdoc/files/lib/wee/core/presenter_rb.html +112 -0
  106. data/doc/rdoc/files/lib/wee/core/snapshot_rb.html +113 -0
  107. data/doc/rdoc/files/lib/wee/core/valueholder_rb.html +110 -0
  108. data/doc/rdoc/files/lib/wee/core_rb.html +131 -0
  109. data/doc/rdoc/files/lib/wee/decoration_rb.html +101 -0
  110. data/doc/rdoc/files/lib/wee/holder_rb.html +101 -0
  111. data/doc/rdoc/files/lib/wee/html_canvas_rb.html +108 -0
  112. data/doc/rdoc/files/lib/wee/html_writer_rb.html +108 -0
  113. data/doc/rdoc/files/lib/wee/idgen_rb.html +101 -0
  114. data/doc/rdoc/files/lib/wee/page_rb.html +101 -0
  115. data/doc/rdoc/files/lib/wee/presenter_rb.html +112 -0
  116. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +101 -0
  117. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +101 -0
  118. data/doc/rdoc/files/lib/wee/renderer/html/writer_rb.html +108 -0
  119. data/doc/rdoc/files/lib/wee/rendering/html/brushes_rb.html +101 -0
  120. data/doc/rdoc/files/lib/wee/rendering/html/canvas_rb.html +101 -0
  121. data/doc/rdoc/files/lib/wee/rendering/html/writer_rb.html +108 -0
  122. data/doc/rdoc/files/lib/wee/request_rb.html +113 -0
  123. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +101 -0
  124. data/doc/rdoc/files/lib/wee/response_rb.html +108 -0
  125. data/doc/rdoc/files/lib/wee/session_rb.html +109 -0
  126. data/doc/rdoc/files/lib/wee/snapshot_ext_rb.html +101 -0
  127. data/doc/rdoc/files/lib/wee/snapshot_rb.html +107 -0
  128. data/doc/rdoc/files/lib/wee/state_registry_rb.html +110 -0
  129. data/doc/rdoc/files/lib/wee/stuff_rb.html +144 -0
  130. data/doc/rdoc/files/lib/wee/utils/cache_rb.html +108 -0
  131. data/doc/rdoc/files/lib/wee/webrick_rb.html +108 -0
  132. data/doc/rdoc/files/lib/wee_rb.html +132 -0
  133. data/doc/rdoc/fr_class_index.html +93 -0
  134. data/doc/rdoc/fr_file_index.html +51 -0
  135. data/doc/rdoc/fr_method_index.html +242 -0
  136. data/doc/rdoc/index.html +24 -0
  137. data/doc/rdoc/rdoc-style.css +208 -0
  138. data/examples/ObjectSpaceBrowser.rb +199 -0
  139. data/examples/calendar.rb +366 -0
  140. data/examples/cc.rb +94 -0
  141. data/examples/draw.rb +91 -0
  142. data/examples/example.rb +223 -0
  143. data/examples/test.rb +66 -0
  144. data/examples/window.rb +53 -0
  145. data/lib/cache/cache.rb +9 -0
  146. data/lib/wee.rb +18 -8
  147. data/lib/wee/adaptors/webrick.rb +73 -0
  148. data/lib/wee/application.rb +69 -71
  149. data/lib/wee/context.rb +2 -12
  150. data/lib/wee/core.rb +15 -0
  151. data/lib/wee/core/callback.rb +108 -0
  152. data/lib/wee/core/component.rb +314 -0
  153. data/lib/wee/core/decoration.rb +129 -0
  154. data/lib/wee/core/presenter.rb +132 -0
  155. data/lib/wee/core/snapshot.rb +21 -0
  156. data/lib/wee/core/valueholder.rb +19 -0
  157. data/lib/wee/idgen.rb +13 -0
  158. data/lib/wee/page.rb +1 -1
  159. data/lib/wee/renderer/html/brushes.rb +435 -0
  160. data/lib/wee/renderer/html/canvas.rb +148 -0
  161. data/lib/wee/{html_writer.rb → renderer/html/writer.rb} +31 -16
  162. data/lib/wee/request.rb +57 -0
  163. data/lib/wee/requesthandler.rb +77 -0
  164. data/lib/wee/response.rb +77 -0
  165. data/lib/wee/session.rb +70 -64
  166. data/lib/wee/{snapshot.rb → snapshot_ext.rb} +4 -4
  167. data/test/components/calltest.rb +16 -0
  168. data/test/components/counter.rb +17 -0
  169. data/test/components/messagebox.rb +15 -0
  170. data/test/components/page.rb +14 -0
  171. data/test/components/page_decoration.rb +7 -0
  172. data/test/stress.rb +64 -0
  173. data/test/test_component.rb +106 -0
  174. data/test/test_html_canvas.rb +25 -0
  175. data/test/test_html_writer.rb +27 -0
  176. data/test/test_request.rb +13 -0
  177. data/test/utils/cross.rb +65 -0
  178. data/test/utils/generic_plotter.rb +28 -0
  179. data/test/utils/gnuplot.rb +31 -0
  180. data/test/utils/measure_memory.rb +9 -0
  181. data/test/utils/memory_plotter.rb +10 -0
  182. data/test/utils/object_plotter.rb +10 -0
  183. data/test/utils/webrick_background.rb +31 -0
  184. data/wee.gemspec +22 -0
  185. metadata +222 -18
  186. data/lib/wee/component.rb +0 -126
  187. data/lib/wee/delegate_decoration.rb +0 -22
  188. data/lib/wee/handler_registry.rb +0 -89
  189. data/lib/wee/holder.rb +0 -14
  190. data/lib/wee/html_canvas.rb +0 -379
  191. data/lib/wee/state_registry.rb +0 -173
  192. data/lib/wee/stuff.rb +0 -29
  193. data/lib/wee/webrick.rb +0 -15
@@ -0,0 +1,751 @@
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
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Wee::HtmlCanvas</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Wee::HtmlCanvas</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/wee/renderer/html/canvas_rb.html">
59
+ lib/wee/renderer/html/canvas.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Canvas.html">
69
+ Canvas
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000064">&lt;&lt;</a>&nbsp;&nbsp;
92
+ <a href="#M000059">anchor</a>&nbsp;&nbsp;
93
+ <a href="#M000044">bold</a>&nbsp;&nbsp;
94
+ <a href="#M000061">break</a>&nbsp;&nbsp;
95
+ <a href="#M000065">encode_text</a>&nbsp;&nbsp;
96
+ <a href="#M000050">form</a>&nbsp;&nbsp;
97
+ <a href="#M000067">handle</a>&nbsp;&nbsp;
98
+ <a href="#M000062">image</a>&nbsp;&nbsp;
99
+ <a href="#M000057">image_button</a>&nbsp;&nbsp;
100
+ <a href="#M000051">input</a>&nbsp;&nbsp;
101
+ <a href="#M000045">method_missing</a>&nbsp;&nbsp;
102
+ <a href="#M000043">new</a>&nbsp;&nbsp;
103
+ <a href="#M000054">option</a>&nbsp;&nbsp;
104
+ <a href="#M000058">page</a>&nbsp;&nbsp;
105
+ <a href="#M000066">render</a>&nbsp;&nbsp;
106
+ <a href="#M000055">select_list</a>&nbsp;&nbsp;
107
+ <a href="#M000060">space</a>&nbsp;&nbsp;
108
+ <a href="#M000056">submit_button</a>&nbsp;&nbsp;
109
+ <a href="#M000046">table</a>&nbsp;&nbsp;
110
+ <a href="#M000048">table_data</a>&nbsp;&nbsp;
111
+ <a href="#M000049">table_header</a>&nbsp;&nbsp;
112
+ <a href="#M000047">table_row</a>&nbsp;&nbsp;
113
+ <a href="#M000063">text</a>&nbsp;&nbsp;
114
+ <a href="#M000053">text_area</a>&nbsp;&nbsp;
115
+ <a href="#M000052">text_input</a>&nbsp;&nbsp;
116
+ </div>
117
+ </div>
118
+
119
+ </div>
120
+
121
+
122
+ <!-- if includes -->
123
+
124
+ <div id="section">
125
+
126
+
127
+
128
+
129
+
130
+ <div id="attribute-list">
131
+ <h3 class="section-bar">Attributes</h3>
132
+
133
+ <div class="name-list">
134
+ <table>
135
+ <tr class="top-aligned-row context-row">
136
+ <td class="context-item-name">current_component</td>
137
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
138
+ <td class="context-item-desc"></td>
139
+ </tr>
140
+ <tr class="top-aligned-row context-row">
141
+ <td class="context-item-name">document</td>
142
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
143
+ <td class="context-item-desc"></td>
144
+ </tr>
145
+ <tr class="top-aligned-row context-row">
146
+ <td class="context-item-name">rendering_context</td>
147
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
148
+ <td class="context-item-desc"></td>
149
+ </tr>
150
+ </table>
151
+ </div>
152
+ </div>
153
+
154
+
155
+
156
+ <!-- if method_list -->
157
+ <div id="methods">
158
+ <h3 class="section-bar">Public Class methods</h3>
159
+
160
+ <div id="method-M000043" class="method-detail">
161
+ <a name="M000043"></a>
162
+
163
+ <div class="method-heading">
164
+ <a href="#M000043" class="method-signature">
165
+ <span class="method-name">new</span><span class="method-args">(rendering_context)</span>
166
+ </a>
167
+ </div>
168
+
169
+ <div class="method-description">
170
+ <p><a class="source-toggle" href="#"
171
+ onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
172
+ <div class="method-source-code" id="M000043-source">
173
+ <pre>
174
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 39</span>
175
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">rendering_context</span>)
176
+ <span class="ruby-keyword kw">super</span>()
177
+ <span class="ruby-ivar">@rendering_context</span> = <span class="ruby-identifier">rendering_context</span>
178
+ <span class="ruby-ivar">@document</span> = <span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">document</span>
179
+ <span class="ruby-keyword kw">end</span>
180
+ </pre>
181
+ </div>
182
+ </div>
183
+ </div>
184
+
185
+ <h3 class="section-bar">Public Instance methods</h3>
186
+
187
+ <div id="method-M000064" class="method-detail">
188
+ <a name="M000064"></a>
189
+
190
+ <div class="method-heading">
191
+ <span class="method-name">&lt;&lt;</span><span class="method-args">(str)</span>
192
+ </div>
193
+
194
+ <div class="method-description">
195
+ <p>
196
+ Alias for <a href="HtmlCanvas.html#M000063">text</a>
197
+ </p>
198
+ </div>
199
+ </div>
200
+
201
+ <div id="method-M000059" class="method-detail">
202
+ <a name="M000059"></a>
203
+
204
+ <div class="method-heading">
205
+ <a href="#M000059" class="method-signature">
206
+ <span class="method-name">anchor</span><span class="method-args">(*args, &amp;block)</span>
207
+ </a>
208
+ </div>
209
+
210
+ <div class="method-description">
211
+ <p><a class="source-toggle" href="#"
212
+ onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
213
+ <div class="method-source-code" id="M000059-source">
214
+ <pre>
215
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 105</span>
216
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">anchor</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
217
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">AnchorTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
218
+ <span class="ruby-keyword kw">end</span>
219
+ </pre>
220
+ </div>
221
+ </div>
222
+ </div>
223
+
224
+ <div id="method-M000044" class="method-detail">
225
+ <a name="M000044"></a>
226
+
227
+ <div class="method-heading">
228
+ <a href="#M000044" class="method-signature">
229
+ <span class="method-name">bold</span><span class="method-args">(*args, &amp;block)</span>
230
+ </a>
231
+ </div>
232
+
233
+ <div class="method-description">
234
+ <p><a class="source-toggle" href="#"
235
+ onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
236
+ <div class="method-source-code" id="M000044-source">
237
+ <pre>
238
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 45</span>
239
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bold</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
240
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;b&quot;</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
241
+ <span class="ruby-keyword kw">end</span>
242
+ </pre>
243
+ </div>
244
+ </div>
245
+ </div>
246
+
247
+ <div id="method-M000061" class="method-detail">
248
+ <a name="M000061"></a>
249
+
250
+ <div class="method-heading">
251
+ <a href="#M000061" class="method-signature">
252
+ <span class="method-name">break</span><span class="method-args">()</span>
253
+ </a>
254
+ </div>
255
+
256
+ <div class="method-description">
257
+ <p><a class="source-toggle" href="#"
258
+ onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
259
+ <div class="method-source-code" id="M000061-source">
260
+ <pre>
261
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 113</span>
262
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">break</span>
263
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;br&quot;</span>))
264
+ <span class="ruby-keyword kw">end</span>
265
+ </pre>
266
+ </div>
267
+ </div>
268
+ </div>
269
+
270
+ <div id="method-M000065" class="method-detail">
271
+ <a name="M000065"></a>
272
+
273
+ <div class="method-heading">
274
+ <a href="#M000065" class="method-signature">
275
+ <span class="method-name">encode_text</span><span class="method-args">(str)</span>
276
+ </a>
277
+ </div>
278
+
279
+ <div class="method-description">
280
+ <p><a class="source-toggle" href="#"
281
+ onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
282
+ <div class="method-source-code" id="M000065-source">
283
+ <pre>
284
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 126</span>
285
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
286
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericEncodedTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>))
287
+ <span class="ruby-keyword kw">end</span>
288
+ </pre>
289
+ </div>
290
+ </div>
291
+ </div>
292
+
293
+ <div id="method-M000050" class="method-detail">
294
+ <a name="M000050"></a>
295
+
296
+ <div class="method-heading">
297
+ <a href="#M000050" class="method-signature">
298
+ <span class="method-name">form</span><span class="method-args">(*args, &amp;block)</span>
299
+ </a>
300
+ </div>
301
+
302
+ <div class="method-description">
303
+ <p><a class="source-toggle" href="#"
304
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
305
+ <div class="method-source-code" id="M000050-source">
306
+ <pre>
307
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 69</span>
308
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">form</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
309
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">FormTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
310
+ <span class="ruby-keyword kw">end</span>
311
+ </pre>
312
+ </div>
313
+ </div>
314
+ </div>
315
+
316
+ <div id="method-M000062" class="method-detail">
317
+ <a name="M000062"></a>
318
+
319
+ <div class="method-heading">
320
+ <a href="#M000062" class="method-signature">
321
+ <span class="method-name">image</span><span class="method-args">()</span>
322
+ </a>
323
+ </div>
324
+
325
+ <div class="method-description">
326
+ <p><a class="source-toggle" href="#"
327
+ onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
328
+ <div class="method-source-code" id="M000062-source">
329
+ <pre>
330
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 117</span>
331
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image</span>
332
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;img&quot;</span>))
333
+ <span class="ruby-keyword kw">end</span>
334
+ </pre>
335
+ </div>
336
+ </div>
337
+ </div>
338
+
339
+ <div id="method-M000057" class="method-detail">
340
+ <a name="M000057"></a>
341
+
342
+ <div class="method-heading">
343
+ <a href="#M000057" class="method-signature">
344
+ <span class="method-name">image_button</span><span class="method-args">(*args, &amp;block)</span>
345
+ </a>
346
+ </div>
347
+
348
+ <div class="method-description">
349
+ <p><a class="source-toggle" href="#"
350
+ onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
351
+ <div class="method-source-code" id="M000057-source">
352
+ <pre>
353
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 97</span>
354
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
355
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">ImageButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
356
+ <span class="ruby-keyword kw">end</span>
357
+ </pre>
358
+ </div>
359
+ </div>
360
+ </div>
361
+
362
+ <div id="method-M000051" class="method-detail">
363
+ <a name="M000051"></a>
364
+
365
+ <div class="method-heading">
366
+ <a href="#M000051" class="method-signature">
367
+ <span class="method-name">input</span><span class="method-args">(*args, &amp;block)</span>
368
+ </a>
369
+ </div>
370
+
371
+ <div class="method-description">
372
+ <p><a class="source-toggle" href="#"
373
+ onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
374
+ <div class="method-source-code" id="M000051-source">
375
+ <pre>
376
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 73</span>
377
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
378
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">InputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
379
+ <span class="ruby-keyword kw">end</span>
380
+ </pre>
381
+ </div>
382
+ </div>
383
+ </div>
384
+
385
+ <div id="method-M000045" class="method-detail">
386
+ <a name="M000045"></a>
387
+
388
+ <div class="method-heading">
389
+ <a href="#M000045" class="method-signature">
390
+ <span class="method-name">method_missing</span><span class="method-args">(id, *args, &amp;block)</span>
391
+ </a>
392
+ </div>
393
+
394
+ <div class="method-description">
395
+ <p><a class="source-toggle" href="#"
396
+ onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
397
+ <div class="method-source-code" id="M000045-source">
398
+ <pre>
399
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 49</span>
400
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
401
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
402
+ <span class="ruby-keyword kw">end</span>
403
+ </pre>
404
+ </div>
405
+ </div>
406
+ </div>
407
+
408
+ <div id="method-M000054" class="method-detail">
409
+ <a name="M000054"></a>
410
+
411
+ <div class="method-heading">
412
+ <a href="#M000054" class="method-signature">
413
+ <span class="method-name">option</span><span class="method-args">(*args, &amp;block)</span>
414
+ </a>
415
+ </div>
416
+
417
+ <div class="method-description">
418
+ <p><a class="source-toggle" href="#"
419
+ onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
420
+ <div class="method-source-code" id="M000054-source">
421
+ <pre>
422
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 85</span>
423
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">option</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
424
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SelectOptionTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
425
+ <span class="ruby-keyword kw">end</span>
426
+ </pre>
427
+ </div>
428
+ </div>
429
+ </div>
430
+
431
+ <div id="method-M000058" class="method-detail">
432
+ <a name="M000058"></a>
433
+
434
+ <div class="method-heading">
435
+ <a href="#M000058" class="method-signature">
436
+ <span class="method-name">page</span><span class="method-args">(*args, &amp;block)</span>
437
+ </a>
438
+ </div>
439
+
440
+ <div class="method-description">
441
+ <p><a class="source-toggle" href="#"
442
+ onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
443
+ <div class="method-source-code" id="M000058-source">
444
+ <pre>
445
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 101</span>
446
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">page</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
447
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">Page</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
448
+ <span class="ruby-keyword kw">end</span>
449
+ </pre>
450
+ </div>
451
+ </div>
452
+ </div>
453
+
454
+ <div id="method-M000066" class="method-detail">
455
+ <a name="M000066"></a>
456
+
457
+ <div class="method-heading">
458
+ <a href="#M000066" class="method-signature">
459
+ <span class="method-name">render</span><span class="method-args">(obj)</span>
460
+ </a>
461
+ </div>
462
+
463
+ <div class="method-description">
464
+ <p><a class="source-toggle" href="#"
465
+ onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
466
+ <div class="method-source-code" id="M000066-source">
467
+ <pre>
468
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 130</span>
469
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">obj</span>)
470
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
471
+ <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">do_render_chain</span>(<span class="ruby-ivar">@rendering_context</span>)
472
+ <span class="ruby-keyword kw">nil</span>
473
+ <span class="ruby-keyword kw">end</span>
474
+ </pre>
475
+ </div>
476
+ </div>
477
+ </div>
478
+
479
+ <div id="method-M000055" class="method-detail">
480
+ <a name="M000055"></a>
481
+
482
+ <div class="method-heading">
483
+ <a href="#M000055" class="method-signature">
484
+ <span class="method-name">select_list</span><span class="method-args">(items)</span>
485
+ </a>
486
+ </div>
487
+
488
+ <div class="method-description">
489
+ <p><a class="source-toggle" href="#"
490
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
491
+ <div class="method-source-code" id="M000055-source">
492
+ <pre>
493
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 89</span>
494
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_list</span>(<span class="ruby-identifier">items</span>)
495
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SelectListTag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">items</span>))
496
+ <span class="ruby-keyword kw">end</span>
497
+ </pre>
498
+ </div>
499
+ </div>
500
+ </div>
501
+
502
+ <div id="method-M000060" class="method-detail">
503
+ <a name="M000060"></a>
504
+
505
+ <div class="method-heading">
506
+ <a href="#M000060" class="method-signature">
507
+ <span class="method-name">space</span><span class="method-args">(n=1)</span>
508
+ </a>
509
+ </div>
510
+
511
+ <div class="method-description">
512
+ <p><a class="source-toggle" href="#"
513
+ onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
514
+ <div class="method-source-code" id="M000060-source">
515
+ <pre>
516
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 109</span>
517
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">space</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
518
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;&amp;nbsp;&quot;</span><span class="ruby-operator">*</span><span class="ruby-identifier">n</span>))
519
+ <span class="ruby-keyword kw">end</span>
520
+ </pre>
521
+ </div>
522
+ </div>
523
+ </div>
524
+
525
+ <div id="method-M000056" class="method-detail">
526
+ <a name="M000056"></a>
527
+
528
+ <div class="method-heading">
529
+ <a href="#M000056" class="method-signature">
530
+ <span class="method-name">submit_button</span><span class="method-args">(*args, &amp;block)</span>
531
+ </a>
532
+ </div>
533
+
534
+ <div class="method-description">
535
+ <p><a class="source-toggle" href="#"
536
+ onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
537
+ <div class="method-source-code" id="M000056-source">
538
+ <pre>
539
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 93</span>
540
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
541
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SubmitButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
542
+ <span class="ruby-keyword kw">end</span>
543
+ </pre>
544
+ </div>
545
+ </div>
546
+ </div>
547
+
548
+ <div id="method-M000046" class="method-detail">
549
+ <a name="M000046"></a>
550
+
551
+ <div class="method-heading">
552
+ <a href="#M000046" class="method-signature">
553
+ <span class="method-name">table</span><span class="method-args">(*args, &amp;block)</span>
554
+ </a>
555
+ </div>
556
+
557
+ <div class="method-description">
558
+ <p><a class="source-toggle" href="#"
559
+ onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
560
+ <div class="method-source-code" id="M000046-source">
561
+ <pre>
562
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 53</span>
563
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
564
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
565
+ <span class="ruby-keyword kw">end</span>
566
+ </pre>
567
+ </div>
568
+ </div>
569
+ </div>
570
+
571
+ <div id="method-M000048" class="method-detail">
572
+ <a name="M000048"></a>
573
+
574
+ <div class="method-heading">
575
+ <a href="#M000048" class="method-signature">
576
+ <span class="method-name">table_data</span><span class="method-args">(*args, &amp;block)</span>
577
+ </a>
578
+ </div>
579
+
580
+ <div class="method-description">
581
+ <p><a class="source-toggle" href="#"
582
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
583
+ <div class="method-source-code" id="M000048-source">
584
+ <pre>
585
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 61</span>
586
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_data</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
587
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableDataTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
588
+ <span class="ruby-keyword kw">end</span>
589
+ </pre>
590
+ </div>
591
+ </div>
592
+ </div>
593
+
594
+ <div id="method-M000049" class="method-detail">
595
+ <a name="M000049"></a>
596
+
597
+ <div class="method-heading">
598
+ <a href="#M000049" class="method-signature">
599
+ <span class="method-name">table_header</span><span class="method-args">(*args, &amp;block)</span>
600
+ </a>
601
+ </div>
602
+
603
+ <div class="method-description">
604
+ <p><a class="source-toggle" href="#"
605
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
606
+ <div class="method-source-code" id="M000049-source">
607
+ <pre>
608
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 65</span>
609
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_header</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
610
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableHeaderTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
611
+ <span class="ruby-keyword kw">end</span>
612
+ </pre>
613
+ </div>
614
+ </div>
615
+ </div>
616
+
617
+ <div id="method-M000047" class="method-detail">
618
+ <a name="M000047"></a>
619
+
620
+ <div class="method-heading">
621
+ <a href="#M000047" class="method-signature">
622
+ <span class="method-name">table_row</span><span class="method-args">(*args, &amp;block)</span>
623
+ </a>
624
+ </div>
625
+
626
+ <div class="method-description">
627
+ <p><a class="source-toggle" href="#"
628
+ onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
629
+ <div class="method-source-code" id="M000047-source">
630
+ <pre>
631
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 57</span>
632
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_row</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
633
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableRowTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
634
+ <span class="ruby-keyword kw">end</span>
635
+ </pre>
636
+ </div>
637
+ </div>
638
+ </div>
639
+
640
+ <div id="method-M000063" class="method-detail">
641
+ <a name="M000063"></a>
642
+
643
+ <div class="method-heading">
644
+ <a href="#M000063" class="method-signature">
645
+ <span class="method-name">text</span><span class="method-args">(str)</span>
646
+ </a>
647
+ </div>
648
+
649
+ <div class="method-description">
650
+ <p><a class="source-toggle" href="#"
651
+ onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
652
+ <div class="method-source-code" id="M000063-source">
653
+ <pre>
654
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 121</span>
655
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
656
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>))
657
+ <span class="ruby-keyword kw">end</span>
658
+ </pre>
659
+ </div>
660
+ </div>
661
+ </div>
662
+
663
+ <div id="method-M000053" class="method-detail">
664
+ <a name="M000053"></a>
665
+
666
+ <div class="method-heading">
667
+ <a href="#M000053" class="method-signature">
668
+ <span class="method-name">text_area</span><span class="method-args">(*args, &amp;block)</span>
669
+ </a>
670
+ </div>
671
+
672
+ <div class="method-description">
673
+ <p><a class="source-toggle" href="#"
674
+ onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
675
+ <div class="method-source-code" id="M000053-source">
676
+ <pre>
677
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 81</span>
678
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_area</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
679
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TextAreaTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
680
+ <span class="ruby-keyword kw">end</span>
681
+ </pre>
682
+ </div>
683
+ </div>
684
+ </div>
685
+
686
+ <div id="method-M000052" class="method-detail">
687
+ <a name="M000052"></a>
688
+
689
+ <div class="method-heading">
690
+ <a href="#M000052" class="method-signature">
691
+ <span class="method-name">text_input</span><span class="method-args">(*args, &amp;block)</span>
692
+ </a>
693
+ </div>
694
+
695
+ <div class="method-description">
696
+ <p><a class="source-toggle" href="#"
697
+ onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
698
+ <div class="method-source-code" id="M000052-source">
699
+ <pre>
700
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 77</span>
701
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
702
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TextInputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
703
+ <span class="ruby-keyword kw">end</span>
704
+ </pre>
705
+ </div>
706
+ </div>
707
+ </div>
708
+
709
+ <h3 class="section-bar">Private Instance methods</h3>
710
+
711
+ <div id="method-M000067" class="method-detail">
712
+ <a name="M000067"></a>
713
+
714
+ <div class="method-heading">
715
+ <a href="#M000067" class="method-signature">
716
+ <span class="method-name">handle</span><span class="method-args">(brush, *args, &amp;block)</span>
717
+ </a>
718
+ </div>
719
+
720
+ <div class="method-description">
721
+ <p><a class="source-toggle" href="#"
722
+ onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
723
+ <div class="method-source-code" id="M000067-source">
724
+ <pre>
725
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 138</span>
726
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">handle</span>(<span class="ruby-identifier">brush</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
727
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-identifier">brush</span>)
728
+ <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> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">block</span>
729
+ <span class="ruby-identifier">brush</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>)
730
+ <span class="ruby-keyword kw">else</span>
731
+ <span class="ruby-identifier">brush</span>
732
+ <span class="ruby-keyword kw">end</span>
733
+ <span class="ruby-keyword kw">end</span>
734
+ </pre>
735
+ </div>
736
+ </div>
737
+ </div>
738
+
739
+
740
+ </div>
741
+
742
+
743
+ </div>
744
+
745
+
746
+ <div id="validator-badges">
747
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
748
+ </div>
749
+
750
+ </body>
751
+ </html>