wee 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. data/TODO +31 -0
  2. data/benchmark.rb +37 -0
  3. data/demo.ru +11 -0
  4. data/doc/rdoc/classes/Array.html +22 -26
  5. data/doc/rdoc/classes/Hash.html +22 -26
  6. data/doc/rdoc/classes/Object.html +21 -26
  7. data/doc/rdoc/classes/String.html +19 -87
  8. data/doc/rdoc/classes/Struct.html +22 -26
  9. data/doc/rdoc/classes/Wee.html +75 -206
  10. data/doc/rdoc/classes/Wee/AnswerDecoration.html +35 -66
  11. data/doc/rdoc/classes/Wee/AnswerDecoration/Answer.html +28 -46
  12. data/doc/rdoc/classes/Wee/Application.html +63 -114
  13. data/doc/rdoc/classes/Wee/Application/SessionCache.html +30 -44
  14. data/doc/rdoc/classes/Wee/Brush.html +52 -101
  15. data/doc/rdoc/classes/Wee/Brush/ActionInputTag.html +29 -51
  16. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +44 -101
  17. data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +43 -76
  18. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +29 -46
  19. data/doc/rdoc/classes/Wee/Brush/FormTag.html +48 -110
  20. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +30 -42
  21. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +37 -58
  22. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +93 -210
  23. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +38 -63
  24. data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +29 -45
  25. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +35 -52
  26. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +28 -61
  27. data/doc/rdoc/classes/Wee/Brush/InputTag.html +34 -107
  28. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +28 -54
  29. data/doc/rdoc/classes/Wee/Brush/Page.html +39 -73
  30. data/doc/rdoc/classes/Wee/Brush/PasswordInputTag.html +29 -45
  31. data/doc/rdoc/classes/Wee/Brush/RadioButtonTag.html +54 -98
  32. data/doc/rdoc/classes/Wee/Brush/RadioGroup.html +46 -84
  33. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +87 -187
  34. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +29 -56
  35. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +29 -45
  36. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +28 -55
  37. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +28 -55
  38. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +56 -113
  39. data/doc/rdoc/classes/Wee/Brush/TableTag.html +27 -58
  40. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -140
  41. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +29 -45
  42. data/doc/rdoc/classes/Wee/CallAnswerMixin.html +51 -79
  43. data/doc/rdoc/classes/Wee/CallbackMixin.html +44 -77
  44. data/doc/rdoc/classes/Wee/CallbackRegistry.html +69 -125
  45. data/doc/rdoc/classes/Wee/Callbacks.html +43 -82
  46. data/doc/rdoc/classes/Wee/Component.html +142 -292
  47. data/doc/rdoc/classes/Wee/Decoration.html +85 -141
  48. data/doc/rdoc/classes/Wee/DecorationMixin.html +111 -118
  49. data/doc/rdoc/classes/Wee/Delegate.html +72 -115
  50. data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +37 -54
  51. data/doc/rdoc/classes/Wee/ErrorResponse.html +31 -48
  52. data/doc/rdoc/classes/Wee/FormDecoration.html +32 -46
  53. data/doc/rdoc/classes/Wee/GenericResponse.html +30 -50
  54. data/doc/rdoc/classes/Wee/HtmlCanvas.html +209 -562
  55. data/doc/rdoc/classes/Wee/HtmlDocument.html +51 -91
  56. data/doc/rdoc/classes/Wee/HtmlWriter.html +76 -156
  57. data/doc/rdoc/classes/Wee/IdGenerator.html +28 -44
  58. data/doc/rdoc/classes/Wee/IdGenerator/Secure.html +53 -95
  59. data/doc/rdoc/classes/Wee/IdGenerator/Sequential.html +37 -63
  60. data/doc/rdoc/classes/Wee/JQuery.html +36 -64
  61. data/doc/rdoc/classes/Wee/LRUCache.html +94 -189
  62. data/doc/rdoc/classes/Wee/LRUCache/Item.html +30 -42
  63. data/doc/rdoc/classes/Wee/ObjectSnapshotMixin.html +37 -54
  64. data/doc/rdoc/classes/Wee/PageDecoration.html +48 -79
  65. data/doc/rdoc/classes/Wee/Presenter.html +86 -143
  66. data/doc/rdoc/classes/Wee/RedirectResponse.html +31 -49
  67. data/doc/rdoc/classes/Wee/RefreshResponse.html +34 -48
  68. data/doc/rdoc/classes/Wee/Renderer.html +56 -125
  69. data/doc/rdoc/classes/Wee/Request.html +57 -115
  70. data/doc/rdoc/classes/Wee/Response.html +24 -26
  71. data/doc/rdoc/classes/Wee/Session.html +137 -292
  72. data/doc/rdoc/classes/Wee/Session/AbortCallbackProcessing.html +29 -46
  73. data/doc/rdoc/classes/Wee/Session/MutexSerializer.html +29 -42
  74. data/doc/rdoc/classes/Wee/Session/Page.html +22 -21
  75. data/doc/rdoc/classes/Wee/Session/ThreadSerializer.html +36 -60
  76. data/doc/rdoc/classes/Wee/State.html +57 -105
  77. data/doc/rdoc/classes/Wee/State/Snapshot.html +22 -21
  78. data/doc/rdoc/classes/Wee/State/SnapshotIVars.html +22 -21
  79. data/doc/rdoc/classes/Wee/StructSnapshotMixin.html +37 -54
  80. data/doc/rdoc/classes/Wee/WrapperDecoration.html +42 -68
  81. data/doc/rdoc/created.rid +1 -1
  82. data/doc/rdoc/files/README_rdoc.html +26 -17
  83. data/doc/rdoc/files/lib/wee/application_rb.html +25 -19
  84. data/doc/rdoc/files/lib/wee/call_answer_rb.html +23 -12
  85. data/doc/rdoc/files/lib/wee/callback_rb.html +23 -12
  86. data/doc/rdoc/files/lib/wee/component_rb.html +25 -19
  87. data/doc/rdoc/files/lib/wee/decoration_rb.html +23 -15
  88. data/doc/rdoc/files/lib/wee/html_brushes_rb.html +23 -12
  89. data/doc/rdoc/files/lib/wee/html_canvas_rb.html +23 -15
  90. data/doc/rdoc/files/lib/wee/html_document_rb.html +23 -15
  91. data/doc/rdoc/files/lib/wee/html_writer_rb.html +23 -15
  92. data/doc/rdoc/files/lib/wee/id_generator_rb.html +24 -17
  93. data/doc/rdoc/files/lib/wee/jquery/jquery_rb.html +23 -12
  94. data/doc/rdoc/files/lib/wee/jquery_rb.html +23 -15
  95. data/doc/rdoc/files/lib/wee/lru_cache_rb.html +23 -12
  96. data/doc/rdoc/files/lib/wee/presenter_rb.html +23 -12
  97. data/doc/rdoc/files/lib/wee/renderer_rb.html +23 -12
  98. data/doc/rdoc/files/lib/wee/request_rb.html +23 -15
  99. data/doc/rdoc/files/lib/wee/response_rb.html +24 -17
  100. data/doc/rdoc/files/lib/wee/session_rb.html +26 -21
  101. data/doc/rdoc/files/lib/wee/state_rb.html +23 -12
  102. data/doc/rdoc/files/lib/wee_rb.html +37 -47
  103. data/doc/rdoc/fr_class_index.html +12 -86
  104. data/doc/rdoc/fr_file_index.html +12 -30
  105. data/doc/rdoc/fr_method_index.html +242 -473
  106. data/doc/rdoc/index.html +8 -5
  107. data/doc/rdoc/rdoc-style.css +119 -210
  108. data/examples/ObjectSpaceBrowser.rb +4 -4
  109. data/examples/TODO +21 -0
  110. data/examples/ajax.rb +6 -4
  111. data/examples/blog.rb +42 -0
  112. data/examples/demo.rb +5 -3
  113. data/examples/demo/calculator.rb +3 -3
  114. data/examples/demo/calendar.rb +4 -4
  115. data/examples/demo/counter.rb +2 -2
  116. data/examples/demo/editable_counter.rb +2 -2
  117. data/examples/demo/example.rb +25 -16
  118. data/examples/demo/window.rb +10 -3
  119. data/examples/hw2.rb +17 -0
  120. data/examples/recipe/description.rb +170 -0
  121. data/examples/recipe/migrations/001_create_recipes.rb +13 -0
  122. data/examples/recipe/model.rb +27 -0
  123. data/examples/recipe/models/recipe.rb +18 -0
  124. data/examples/recipe/recipe_editor.rb +28 -0
  125. data/lib/wee.rb +1 -7
  126. data/lib/wee/component.rb +37 -74
  127. data/lib/wee/decoration.rb +16 -15
  128. data/lib/wee/html_brushes.rb +16 -17
  129. data/lib/wee/presenter.rb +2 -1
  130. data/lib/wee/response.rb +4 -4
  131. data/lib/wee/session.rb +2 -2
  132. data/lib/wee/state.rb +2 -2
  133. data/test/t.rb +67 -0
  134. data/wee.gemspec +1 -1
  135. metadata +157 -167
@@ -1,9 +1,12 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
3
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
7
  <head>
5
- <title>Class: Wee::Application::SessionCache [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::Application::SessionCache</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
11
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
9
12
  <script type="text/javascript">
@@ -22,7 +25,7 @@
22
25
  return false;
23
26
 
24
27
  elemStyle = elem.style;
25
-
28
+
26
29
  if ( elemStyle.display != "block" ) {
27
30
  elemStyle.display = "block"
28
31
  } else {
@@ -31,10 +34,10 @@
31
34
 
32
35
  return true;
33
36
  }
34
-
37
+
35
38
  // Make codeblocks hidden by default
36
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
-
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
38
41
  // ]]>
39
42
  </script>
40
43
 
@@ -42,6 +45,7 @@
42
45
  <body>
43
46
 
44
47
 
48
+
45
49
  <div id="classHeader">
46
50
  <table class="header-table">
47
51
  <tr class="top-aligned-row">
@@ -51,57 +55,46 @@
51
55
  <tr class="top-aligned-row">
52
56
  <td><strong>In:</strong></td>
53
57
  <td>
54
-
55
-
56
58
  <a href="../../../files/lib/wee/application_rb.html">
57
-
58
59
  lib/wee/application.rb
59
-
60
60
  </a>
61
-
62
-
63
61
  <br />
64
-
65
62
  </td>
66
63
  </tr>
67
64
 
68
-
69
65
  <tr class="top-aligned-row">
70
66
  <td><strong>Parent:</strong></td>
71
67
  <td>
72
-
73
68
  <a href="../LRUCache.html">
74
-
75
69
  Wee::LRUCache
76
-
77
70
  </a>
78
-
79
71
  </td>
80
72
  </tr>
81
-
82
73
  </table>
83
74
  </div>
84
75
  <!-- banner header -->
85
76
 
86
77
  <div id="bodyContent">
87
78
 
79
+
80
+
88
81
  <div id="contextContent">
89
82
 
90
- </div>
91
83
 
92
84
 
85
+ </div>
86
+
93
87
  <div id="method-list">
94
88
  <h3 class="section-bar">Methods</h3>
95
89
 
96
90
  <div class="name-list">
97
-
98
- <a href="#M000099">garbage_collect</a>&nbsp;&nbsp;
99
-
91
+ <a href="#M000116">garbage_collect</a>&nbsp;&nbsp;
100
92
  </div>
101
93
  </div>
102
94
 
103
95
  </div>
104
96
 
97
+
105
98
  <!-- if includes -->
106
99
 
107
100
  <div id="section">
@@ -109,31 +102,27 @@
109
102
 
110
103
 
111
104
 
112
- <!-- if method_list -->
113
105
 
114
- <div id="methods">
106
+
115
107
 
116
- <h3 class="section-bar">Public Instance methods</h3>
117
108
 
109
+ <!-- if method_list -->
110
+ <div id="methods">
111
+ <h3 class="section-bar">Public Instance methods</h3>
118
112
 
119
- <div id="method-M000099" class="method-detail">
120
- <a name="M000099"></a>
113
+ <div id="method-M000116" class="method-detail">
114
+ <a name="M000116"></a>
121
115
 
122
116
  <div class="method-heading">
123
-
124
- <a href="#M000099" class="method-signature">
125
-
117
+ <a href="#M000116" class="method-signature">
126
118
  <span class="method-name">garbage_collect</span><span class="method-args">()</span>
127
-
128
119
  </a>
129
-
130
120
  </div>
131
-
121
+
132
122
  <div class="method-description">
133
-
134
123
  <p><a class="source-toggle" href="#"
135
- onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000099-source">
124
+ onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
125
+ <div class="method-source-code" id="M000116-source">
137
126
  <pre>
138
127
  <span class="ruby-comment cmt"># File lib/wee/application.rb, line 14</span>
139
128
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">garbage_collect</span>
@@ -141,22 +130,19 @@
141
130
  <span class="ruby-keyword kw">end</span>
142
131
  </pre>
143
132
  </div>
144
-
145
133
  </div>
146
134
  </div>
147
135
 
148
136
 
149
-
150
137
  </div>
151
138
 
152
139
 
153
-
154
-
155
140
  </div>
156
141
 
142
+
157
143
  <div id="validator-badges">
158
144
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
159
145
  </div>
160
146
 
161
147
  </body>
162
- </html>
148
+ </html>
@@ -1,9 +1,12 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
3
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
7
  <head>
5
- <title>Class: Wee::Brush [RDoc Documentation]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <title>Class: Wee::Brush</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
11
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
9
12
  <script type="text/javascript">
@@ -22,7 +25,7 @@
22
25
  return false;
23
26
 
24
27
  elemStyle = elem.style;
25
-
28
+
26
29
  if ( elemStyle.display != "block" ) {
27
30
  elemStyle.display = "block"
28
31
  } else {
@@ -31,10 +34,10 @@
31
34
 
32
35
  return true;
33
36
  }
34
-
37
+
35
38
  // Make codeblocks hidden by default
36
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
-
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
38
41
  // ]]>
39
42
  </script>
40
43
 
@@ -42,6 +45,7 @@
42
45
  <body>
43
46
 
44
47
 
48
+
45
49
  <div id="classHeader">
46
50
  <table class="header-table">
47
51
  <tr class="top-aligned-row">
@@ -51,63 +55,49 @@
51
55
  <tr class="top-aligned-row">
52
56
  <td><strong>In:</strong></td>
53
57
  <td>
54
-
55
-
56
58
  <a href="../../files/lib/wee/html_brushes_rb.html">
57
-
58
59
  lib/wee/html_brushes.rb
59
-
60
60
  </a>
61
-
62
-
63
61
  <br />
64
-
65
62
  </td>
66
63
  </tr>
67
64
 
68
-
69
65
  <tr class="top-aligned-row">
70
66
  <td><strong>Parent:</strong></td>
71
67
  <td>
72
-
73
68
  <a href="../Object.html">
74
-
75
69
  Object
76
-
77
70
  </a>
78
-
79
71
  </td>
80
72
  </tr>
81
-
82
73
  </table>
83
74
  </div>
84
75
  <!-- banner header -->
85
76
 
86
77
  <div id="bodyContent">
87
78
 
79
+
80
+
88
81
  <div id="contextContent">
89
82
 
90
- </div>
91
83
 
92
84
 
85
+ </div>
86
+
93
87
  <div id="method-list">
94
88
  <h3 class="section-bar">Methods</h3>
95
89
 
96
90
  <div class="name-list">
97
-
98
- <a href="#M000118">close</a>&nbsp;&nbsp;
99
-
100
- <a href="#M000119">nesting?</a>&nbsp;&nbsp;
101
-
102
- <a href="#M000116">setup</a>&nbsp;&nbsp;
103
-
104
- <a href="#M000117">with</a>&nbsp;&nbsp;
105
-
91
+ <a href="#M000123">close</a>&nbsp;&nbsp;
92
+ <a href="#M000124">nesting?</a>&nbsp;&nbsp;
93
+ <a href="#M000121">setup</a>&nbsp;&nbsp;
94
+ <a href="#M000122">with</a>&nbsp;&nbsp;
106
95
  </div>
107
96
  </div>
108
97
 
109
98
  </div>
110
99
 
100
+
111
101
  <!-- if includes -->
112
102
 
113
103
  <div id="section">
@@ -147,89 +137,68 @@ Class <a href="Brush/TextInputTag.html" class="link">Wee::Brush::TextInputTag</a
147
137
 
148
138
 
149
139
 
140
+
150
141
  <div id="attribute-list">
151
142
  <h3 class="section-bar">Attributes</h3>
152
143
 
153
144
  <div class="name-list">
154
145
  <table>
155
-
156
146
  <tr class="top-aligned-row context-row">
157
147
  <td class="context-item-name">canvas</td>
158
-
159
148
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
160
-
161
149
  <td class="context-item-desc"></td>
162
150
  </tr>
163
-
164
151
  <tr class="top-aligned-row context-row">
165
152
  <td class="context-item-name">document</td>
166
-
167
153
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
168
-
169
154
  <td class="context-item-desc"></td>
170
155
  </tr>
171
-
172
156
  </table>
173
157
  </div>
174
158
  </div>
159
+
175
160
 
176
161
 
177
162
  <!-- if method_list -->
178
-
179
163
  <div id="methods">
180
-
181
164
  <h3 class="section-bar">Public Class methods</h3>
182
165
 
183
-
184
- <div id="method-M000119" class="method-detail">
185
- <a name="M000119"></a>
166
+ <div id="method-M000124" class="method-detail">
167
+ <a name="M000124"></a>
186
168
 
187
169
  <div class="method-heading">
188
-
189
- <a href="#M000119" class="method-signature">
190
-
170
+ <a href="#M000124" class="method-signature">
191
171
  <span class="method-name">nesting?</span><span class="method-args">()</span>
192
-
193
172
  </a>
194
-
195
173
  </div>
196
-
174
+
197
175
  <div class="method-description">
198
-
199
176
  <p><a class="source-toggle" href="#"
200
- onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000119-source">
177
+ onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
178
+ <div class="method-source-code" id="M000124-source">
202
179
  <pre>
203
180
  <span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line 29</span>
204
181
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">nesting?</span>() <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">end</span>
205
182
  </pre>
206
183
  </div>
207
-
208
184
  </div>
209
185
  </div>
210
186
 
211
-
212
187
  <h3 class="section-bar">Public Instance methods</h3>
213
188
 
214
-
215
- <div id="method-M000118" class="method-detail">
216
- <a name="M000118"></a>
189
+ <div id="method-M000123" class="method-detail">
190
+ <a name="M000123"></a>
217
191
 
218
192
  <div class="method-heading">
219
-
220
- <a href="#M000118" class="method-signature">
221
-
193
+ <a href="#M000123" class="method-signature">
222
194
  <span class="method-name">close</span><span class="method-args">()</span>
223
-
224
195
  </a>
225
-
226
196
  </div>
227
-
197
+
228
198
  <div class="method-description">
229
-
230
199
  <p><a class="source-toggle" href="#"
231
- onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
232
- <div class="method-source-code" id="M000118-source">
200
+ onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
201
+ <div class="method-source-code" id="M000123-source">
233
202
  <pre>
234
203
  <span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line 25</span>
235
204
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
@@ -237,42 +206,34 @@ Class <a href="Brush/TextInputTag.html" class="link">Wee::Brush::TextInputTag</a
237
206
  <span class="ruby-keyword kw">end</span>
238
207
  </pre>
239
208
  </div>
240
-
241
209
  </div>
242
210
  </div>
243
211
 
244
-
245
- <div id="method-M000116" class="method-detail">
246
- <a name="M000116"></a>
212
+ <div id="method-M000121" class="method-detail">
213
+ <a name="M000121"></a>
247
214
 
248
215
  <div class="method-heading">
249
-
250
- <a href="#M000116" class="method-signature">
251
-
216
+ <a href="#M000121" class="method-signature">
252
217
  <span class="method-name">setup</span><span class="method-args">(canvas, document)</span>
253
-
254
218
  </a>
255
-
256
219
  </div>
257
-
220
+
258
221
  <div class="method-description">
259
-
260
222
  <p>
261
- This method is called right after initialize. It&#8217;s only here to
223
+ This method is called right after initialize. It&#8216;s only here to
262
224
  simplify the implementation of Brushes, mainly to avoid passing all those
263
225
  arguments to super.
264
226
  </p>
265
227
  <p>
266
- There is a bit of redundancy with canvas and document here. It&#8217;s
267
- there to avoid method calls.
228
+ There is a bit of redundancy <a href="Brush.html#M000122">with</a> canvas
229
+ and document here. It&#8216;s there to avoid method calls.
268
230
  </p>
269
231
  <p>
270
232
  A brush is considered to be closed, when @document is nil.
271
233
  </p>
272
-
273
234
  <p><a class="source-toggle" href="#"
274
- onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
275
- <div class="method-source-code" id="M000116-source">
235
+ onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
236
+ <div class="method-source-code" id="M000121-source">
276
237
  <pre>
277
238
  <span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line 15</span>
278
239
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>(<span class="ruby-identifier">canvas</span>, <span class="ruby-identifier">document</span>)
@@ -281,29 +242,22 @@ A brush is considered to be closed, when @document is nil.
281
242
  <span class="ruby-keyword kw">end</span>
282
243
  </pre>
283
244
  </div>
284
-
285
245
  </div>
286
246
  </div>
287
247
 
288
-
289
- <div id="method-M000117" class="method-detail">
290
- <a name="M000117"></a>
248
+ <div id="method-M000122" class="method-detail">
249
+ <a name="M000122"></a>
291
250
 
292
251
  <div class="method-heading">
293
-
294
- <a href="#M000117" class="method-signature">
295
-
252
+ <a href="#M000122" class="method-signature">
296
253
  <span class="method-name">with</span><span class="method-args">(*args, &amp;block)</span>
297
-
298
254
  </a>
299
-
300
255
  </div>
301
-
256
+
302
257
  <div class="method-description">
303
-
304
258
  <p><a class="source-toggle" href="#"
305
- onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
306
- <div class="method-source-code" id="M000117-source">
259
+ onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
260
+ <div class="method-source-code" id="M000122-source">
307
261
  <pre>
308
262
  <span class="ruby-comment cmt"># File lib/wee/html_brushes.rb, line 20</span>
309
263
  <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>)
@@ -312,22 +266,19 @@ A brush is considered to be closed, when @document is nil.
312
266
  <span class="ruby-keyword kw">end</span>
313
267
  </pre>
314
268
  </div>
315
-
316
269
  </div>
317
270
  </div>
318
271
 
319
272
 
320
-
321
273
  </div>
322
274
 
323
275
 
324
-
325
-
326
276
  </div>
327
277
 
278
+
328
279
  <div id="validator-badges">
329
280
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
330
281
  </div>
331
282
 
332
283
  </body>
333
- </html>
284
+ </html>