wee 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/README +0 -1
  2. data/Rakefile +5 -0
  3. data/TODO +6 -0
  4. data/doc/rdoc/classes/Enumerable.html +6 -6
  5. data/doc/rdoc/classes/Wee/AnswerDecoration.html +10 -10
  6. data/doc/rdoc/classes/Wee/Application.html +110 -52
  7. data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +8 -15
  8. data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +8 -19
  9. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +22 -22
  10. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +156 -0
  11. data/doc/rdoc/classes/Wee/Brush/FormTag.html +50 -25
  12. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  13. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +36 -36
  14. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  15. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +16 -16
  16. data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +8 -15
  17. data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
  18. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  19. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +28 -28
  20. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +14 -14
  21. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  22. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  23. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  24. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +36 -36
  25. data/doc/rdoc/classes/Wee/Brush/TableTag.html +6 -6
  26. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +28 -28
  27. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  28. data/doc/rdoc/classes/Wee/Brush.html +19 -19
  29. data/doc/rdoc/classes/Wee/CallbackRegistry.html +33 -33
  30. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  31. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  32. data/doc/rdoc/classes/Wee/Component.html +163 -138
  33. data/doc/rdoc/classes/Wee/Decoration.html +72 -41
  34. data/doc/rdoc/classes/Wee/Delegate.html +31 -31
  35. data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
  36. data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
  37. data/doc/rdoc/classes/Wee/Helper.html +148 -0
  38. data/doc/rdoc/classes/Wee/HtmlCanvas.html +267 -166
  39. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  40. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
  41. data/doc/rdoc/classes/Wee/PageDecoration.html +199 -0
  42. data/doc/rdoc/classes/Wee/Presenter.html +69 -69
  43. data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
  44. data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
  45. data/doc/rdoc/classes/Wee/Request.html +18 -18
  46. data/doc/rdoc/classes/Wee/RequestHandler.html +32 -31
  47. data/doc/rdoc/classes/Wee/Response.html +24 -24
  48. data/doc/rdoc/classes/Wee/Session.html +83 -64
  49. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +18 -18
  50. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  51. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  52. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  53. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +66 -62
  54. data/doc/rdoc/classes/Wee.html +63 -2
  55. data/doc/rdoc/created.rid +1 -1
  56. data/doc/rdoc/files/README.html +6 -9
  57. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  58. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  59. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +101 -0
  60. data/doc/rdoc/files/lib/wee/components_rb.html +108 -0
  61. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  62. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  63. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
  64. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  65. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  66. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  67. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  68. data/doc/rdoc/files/lib/wee/session_rb.html +2 -1
  69. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +101 -0
  70. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +108 -0
  71. data/doc/rdoc/files/lib/wee_rb.html +2 -1
  72. data/doc/rdoc/fr_class_index.html +3 -1
  73. data/doc/rdoc/fr_file_index.html +4 -0
  74. data/doc/rdoc/fr_method_index.html +203 -191
  75. data/examples/example.rb +2 -16
  76. data/examples/test.rb +15 -18
  77. data/lib/wee/adaptors/webrick.rb +3 -1
  78. data/lib/wee/application.rb +55 -19
  79. data/lib/wee/components/page_decoration.rb +14 -0
  80. data/lib/wee/components.rb +1 -0
  81. data/lib/wee/core/callback.rb +1 -1
  82. data/lib/wee/core/component.rb +27 -3
  83. data/lib/wee/core/decoration.rb +9 -0
  84. data/lib/wee/renderer/html/brushes.rb +21 -23
  85. data/lib/wee/renderer/html/canvas.rb +25 -4
  86. data/lib/wee/requesthandler.rb +1 -0
  87. data/lib/wee/session.rb +21 -1
  88. data/lib/wee/utils/autoreload.rb +27 -0
  89. data/lib/wee/utils/helper.rb +15 -0
  90. data/lib/wee.rb +2 -1
  91. metadata +203 -191
  92. data/test/components/page_decoration.rb +0 -7
@@ -86,8 +86,8 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000086">new</a>&nbsp;&nbsp;
90
- <a href="#M000087">with</a>&nbsp;&nbsp;
89
+ <a href="#M000092">new</a>&nbsp;&nbsp;
90
+ <a href="#M000093">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-M000086" class="method-detail">
113
- <a name="M000086"></a>
112
+ <div id="method-M000092" class="method-detail">
113
+ <a name="M000092"></a>
114
114
 
115
115
  <div class="method-heading">
116
- <a href="#M000086" class="method-signature">
116
+ <a href="#M000092" 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('M000086-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000086-source">
123
+ onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
124
+ <div class="method-source-code" id="M000092-source">
125
125
  <pre>
126
126
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 23</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-M000087" class="method-detail">
139
- <a name="M000087"></a>
138
+ <div id="method-M000093" class="method-detail">
139
+ <a name="M000093"></a>
140
140
 
141
141
  <div class="method-heading">
142
- <a href="#M000087" class="method-signature">
142
+ <a href="#M000093" 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('M000087-source');return false;">[Source]</a></p>
150
- <div class="method-source-code" id="M000087-source">
149
+ onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
150
+ <div class="method-source-code" id="M000093-source">
151
151
  <pre>
152
152
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 28</span>
153
153
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>
@@ -87,7 +87,7 @@ Most browsers do not send the &quot;name&quot; key together with the value
87
87
  specified by &quot;value&quot;, only &quot;name.x&quot; and
88
88
  &quot;name.y&quot;. This conforms to the standard. But Firefox also sends
89
89
  &quot;name&quot;=&quot;value&quot;. This is why I raise an exception from
90
- the <a href="ImageButtonTag.html#M000112">value</a> method. Note that
90
+ the <a href="ImageButtonTag.html#M000118">value</a> method. Note that
91
91
  it&#8217;s neccessary to parse the passed form-fields and generate a
92
92
  &quot;name&quot; fields in the request, to make this image-button work.
93
93
  </p>
@@ -101,8 +101,8 @@ it&#8217;s neccessary to parse the passed form-fields and generate a
101
101
  <h3 class="section-bar">Methods</h3>
102
102
 
103
103
  <div class="name-list">
104
- <a href="#M000111">new</a>&nbsp;&nbsp;
105
- <a href="#M000112">value</a>&nbsp;&nbsp;
104
+ <a href="#M000117">new</a>&nbsp;&nbsp;
105
+ <a href="#M000118">value</a>&nbsp;&nbsp;
106
106
  </div>
107
107
  </div>
108
108
 
@@ -114,7 +114,7 @@ it&#8217;s neccessary to parse the passed form-fields and generate a
114
114
  <h3 class="section-bar">Included Modules</h3>
115
115
 
116
116
  <div id="includes-list">
117
- <span class="include-name"><a href="ActionCallbackMixin.html">Wee::Brush::ActionCallbackMixin</a></span>
117
+ <span class="include-name"><a href="ActionCallbackMixin.html">Brush::ActionCallbackMixin</a></span>
118
118
  </div>
119
119
  </div>
120
120
 
@@ -131,21 +131,21 @@ it&#8217;s neccessary to parse the passed form-fields and generate a
131
131
  <div id="methods">
132
132
  <h3 class="section-bar">Public Class methods</h3>
133
133
 
134
- <div id="method-M000111" class="method-detail">
135
- <a name="M000111"></a>
134
+ <div id="method-M000117" class="method-detail">
135
+ <a name="M000117"></a>
136
136
 
137
137
  <div class="method-heading">
138
- <a href="#M000111" class="method-signature">
138
+ <a href="#M000117" class="method-signature">
139
139
  <span class="method-name">new</span><span class="method-args">()</span>
140
140
  </a>
141
141
  </div>
142
142
 
143
143
  <div class="method-description">
144
144
  <p><a class="source-toggle" href="#"
145
- onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
146
- <div class="method-source-code" id="M000111-source">
145
+ onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
146
+ <div class="method-source-code" id="M000117-source">
147
147
  <pre>
148
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 332</span>
148
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 324</span>
149
149
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
150
150
  <span class="ruby-keyword kw">super</span>
151
151
  <span class="ruby-identifier">type</span>(<span class="ruby-value str">'image'</span>)
@@ -157,21 +157,21 @@ it&#8217;s neccessary to parse the passed form-fields and generate a
157
157
 
158
158
  <h3 class="section-bar">Public Instance methods</h3>
159
159
 
160
- <div id="method-M000112" class="method-detail">
161
- <a name="M000112"></a>
160
+ <div id="method-M000118" class="method-detail">
161
+ <a name="M000118"></a>
162
162
 
163
163
  <div class="method-heading">
164
- <a href="#M000112" class="method-signature">
164
+ <a href="#M000118" class="method-signature">
165
165
  <span class="method-name">value</span><span class="method-args">(v)</span>
166
166
  </a>
167
167
  </div>
168
168
 
169
169
  <div class="method-description">
170
170
  <p><a class="source-toggle" href="#"
171
- onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
172
- <div class="method-source-code" id="M000112-source">
171
+ onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
172
+ <div class="method-source-code" id="M000118-source">
173
173
  <pre>
174
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 337</span>
174
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 329</span>
175
175
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">value</span>(<span class="ruby-identifier">v</span>)
176
176
  <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;specified value will not be used in the request&quot;</span>
177
177
  <span class="ruby-keyword kw">end</span>
@@ -80,7 +80,7 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000077">callback</a>&nbsp;&nbsp;
83
+ <a href="#M000082">callback</a>&nbsp;&nbsp;
84
84
  </div>
85
85
  </div>
86
86
 
@@ -88,13 +88,6 @@
88
88
 
89
89
 
90
90
  <!-- if includes -->
91
- <div id="includes">
92
- <h3 class="section-bar">Included Modules</h3>
93
-
94
- <div id="includes-list">
95
- <span class="include-name"><a href="CallbackMixin.html">Brush::CallbackMixin</a></span>
96
- </div>
97
- </div>
98
91
 
99
92
  <div id="section">
100
93
 
@@ -109,25 +102,25 @@
109
102
  <div id="methods">
110
103
  <h3 class="section-bar">Public Instance methods</h3>
111
104
 
112
- <div id="method-M000077" class="method-detail">
113
- <a name="M000077"></a>
105
+ <div id="method-M000082" class="method-detail">
106
+ <a name="M000082"></a>
114
107
 
115
108
  <div class="method-heading">
116
- <a href="#M000077" class="method-signature">
109
+ <a href="#M000082" class="method-signature">
117
110
  <span class="method-name">callback</span><span class="method-args">(symbol=nil, &amp;block)</span>
118
111
  </a>
119
112
  </div>
120
113
 
121
114
  <div class="method-description">
122
115
  <p><a class="source-toggle" href="#"
123
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000077-source">
116
+ onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
117
+ <div class="method-source-code" id="M000082-source">
125
118
  <pre>
126
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 166</span>
119
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 155</span>
127
120
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">callback</span>(<span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
128
121
  <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>
129
122
  <span class="ruby-identifier">block</span> = <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">current_component</span>.<span class="ruby-identifier">method</span>(<span class="ruby-identifier">symbol</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
130
- <span class="ruby-identifier">name</span>(<span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">:input</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>))
123
+ <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-operator">&amp;</span><span class="ruby-identifier">block</span>))
131
124
  <span class="ruby-keyword kw">end</span>
132
125
  </pre>
133
126
  </div>
@@ -86,8 +86,8 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000122">new</a>&nbsp;&nbsp;
90
- <a href="#M000123">with</a>&nbsp;&nbsp;
89
+ <a href="#M000129">new</a>&nbsp;&nbsp;
90
+ <a href="#M000130">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-M000122" class="method-detail">
113
- <a name="M000122"></a>
112
+ <div id="method-M000129" class="method-detail">
113
+ <a name="M000129"></a>
114
114
 
115
115
  <div class="method-heading">
116
- <a href="#M000122" class="method-signature">
116
+ <a href="#M000129" class="method-signature">
117
117
  <span class="method-name">new</span><span class="method-args">()</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('M000122-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000122-source">
123
+ onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
124
+ <div class="method-source-code" id="M000129-source">
125
125
  <pre>
126
126
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 134</span>
127
127
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
@@ -134,19 +134,19 @@
134
134
 
135
135
  <h3 class="section-bar">Public Instance methods</h3>
136
136
 
137
- <div id="method-M000123" class="method-detail">
138
- <a name="M000123"></a>
137
+ <div id="method-M000130" class="method-detail">
138
+ <a name="M000130"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="#M000123" class="method-signature">
141
+ <a href="#M000130" class="method-signature">
142
142
  <span class="method-name">with</span><span class="method-args">()</span>
143
143
  </a>
144
144
  </div>
145
145
 
146
146
  <div class="method-description">
147
147
  <p><a class="source-toggle" href="#"
148
- onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000123-source">
148
+ onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
149
+ <div class="method-source-code" id="M000130-source">
150
150
  <pre>
151
151
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 147</span>
152
152
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>
@@ -86,8 +86,8 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000114">title</a>&nbsp;&nbsp;
90
- <a href="#M000115">with</a>&nbsp;&nbsp;
89
+ <a href="#M000121">title</a>&nbsp;&nbsp;
90
+ <a href="#M000122">with</a>&nbsp;&nbsp;
91
91
  </div>
92
92
  </div>
93
93
 
@@ -109,21 +109,21 @@
109
109
  <div id="methods">
110
110
  <h3 class="section-bar">Public Instance methods</h3>
111
111
 
112
- <div id="method-M000114" class="method-detail">
113
- <a name="M000114"></a>
112
+ <div id="method-M000121" class="method-detail">
113
+ <a name="M000121"></a>
114
114
 
115
115
  <div class="method-heading">
116
- <a href="#M000114" class="method-signature">
116
+ <a href="#M000121" class="method-signature">
117
117
  <span class="method-name">title</span><span class="method-args">(str)</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('M000114-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000114-source">
123
+ onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
124
+ <div class="method-source-code" id="M000121-source">
125
125
  <pre>
126
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 403</span>
126
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 401</span>
127
127
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title</span>(<span class="ruby-identifier">str</span>)
128
128
  <span class="ruby-ivar">@title</span> = <span class="ruby-identifier">str</span>
129
129
  <span class="ruby-keyword kw">self</span>
@@ -133,21 +133,21 @@
133
133
  </div>
134
134
  </div>
135
135
 
136
- <div id="method-M000115" class="method-detail">
137
- <a name="M000115"></a>
136
+ <div id="method-M000122" class="method-detail">
137
+ <a name="M000122"></a>
138
138
 
139
139
  <div class="method-heading">
140
- <a href="#M000115" class="method-signature">
140
+ <a href="#M000122" class="method-signature">
141
141
  <span class="method-name">with</span><span class="method-args">(text=nil, &amp;block)</span>
142
142
  </a>
143
143
  </div>
144
144
 
145
145
  <div class="method-description">
146
146
  <p><a class="source-toggle" href="#"
147
- onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
148
- <div class="method-source-code" id="M000115-source">
147
+ onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
148
+ <div class="method-source-code" id="M000122-source">
149
149
  <pre>
150
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 408</span>
150
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 406</span>
151
151
  <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>)
152
152
  <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">document</span>
153
153
  <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">start_tag</span>(<span class="ruby-value str">&quot;html&quot;</span>)
@@ -86,10 +86,10 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000100">callback</a>&nbsp;&nbsp;
90
- <a href="#M000099">multiple</a>&nbsp;&nbsp;
91
- <a href="#M000098">new</a>&nbsp;&nbsp;
92
- <a href="#M000101">with</a>&nbsp;&nbsp;
89
+ <a href="#M000106">callback</a>&nbsp;&nbsp;
90
+ <a href="#M000105">multiple</a>&nbsp;&nbsp;
91
+ <a href="#M000104">new</a>&nbsp;&nbsp;
92
+ <a href="#M000107">with</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -131,21 +131,21 @@
131
131
  <div id="methods">
132
132
  <h3 class="section-bar">Public Class methods</h3>
133
133
 
134
- <div id="method-M000098" class="method-detail">
135
- <a name="M000098"></a>
134
+ <div id="method-M000104" class="method-detail">
135
+ <a name="M000104"></a>
136
136
 
137
137
  <div class="method-heading">
138
- <a href="#M000098" class="method-signature">
138
+ <a href="#M000104" class="method-signature">
139
139
  <span class="method-name">new</span><span class="method-args">(items)</span>
140
140
  </a>
141
141
  </div>
142
142
 
143
143
  <div class="method-description">
144
144
  <p><a class="source-toggle" href="#"
145
- onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
146
- <div class="method-source-code" id="M000098-source">
145
+ onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
146
+ <div class="method-source-code" id="M000104-source">
147
147
  <pre>
148
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 249</span>
148
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 230</span>
149
149
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">items</span>)
150
150
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'select'</span>)
151
151
  <span class="ruby-ivar">@items</span> = <span class="ruby-identifier">items</span>
@@ -157,21 +157,21 @@
157
157
 
158
158
  <h3 class="section-bar">Public Instance methods</h3>
159
159
 
160
- <div id="method-M000100" class="method-detail">
161
- <a name="M000100"></a>
160
+ <div id="method-M000106" class="method-detail">
161
+ <a name="M000106"></a>
162
162
 
163
163
  <div class="method-heading">
164
- <a href="#M000100" class="method-signature">
164
+ <a href="#M000106" class="method-signature">
165
165
  <span class="method-name">callback</span><span class="method-args">(symbol=nil, &amp;block)</span>
166
166
  </a>
167
167
  </div>
168
168
 
169
169
  <div class="method-description">
170
170
  <p><a class="source-toggle" href="#"
171
- onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
172
- <div class="method-source-code" id="M000100-source">
171
+ onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
172
+ <div class="method-source-code" id="M000106-source">
173
173
  <pre>
174
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 271</span>
174
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 252</span>
175
175
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">callback</span>(<span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
176
176
  <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>
177
177
  <span class="ruby-identifier">block</span> = <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">current_component</span>.<span class="ruby-identifier">method</span>(<span class="ruby-identifier">symbol</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
@@ -184,21 +184,21 @@
184
184
  </div>
185
185
  </div>
186
186
 
187
- <div id="method-M000099" class="method-detail">
188
- <a name="M000099"></a>
187
+ <div id="method-M000105" class="method-detail">
188
+ <a name="M000105"></a>
189
189
 
190
190
  <div class="method-heading">
191
- <a href="#M000099" class="method-signature">
191
+ <a href="#M000105" class="method-signature">
192
192
  <span class="method-name">multiple</span><span class="method-args">()</span>
193
193
  </a>
194
194
  </div>
195
195
 
196
196
  <div class="method-description">
197
197
  <p><a class="source-toggle" href="#"
198
- onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
199
- <div class="method-source-code" id="M000099-source">
198
+ onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
199
+ <div class="method-source-code" id="M000105-source">
200
200
  <pre>
201
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 263</span>
201
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 244</span>
202
202
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiple</span>
203
203
  <span class="ruby-ivar">@multiple</span> = <span class="ruby-keyword kw">true</span>
204
204
  <span class="ruby-ivar">@attributes</span>[<span class="ruby-value str">'multiple'</span>] = <span class="ruby-keyword kw">nil</span>
@@ -209,21 +209,21 @@
209
209
  </div>
210
210
  </div>
211
211
 
212
- <div id="method-M000101" class="method-detail">
213
- <a name="M000101"></a>
212
+ <div id="method-M000107" class="method-detail">
213
+ <a name="M000107"></a>
214
214
 
215
215
  <div class="method-heading">
216
- <a href="#M000101" class="method-signature">
216
+ <a href="#M000107" class="method-signature">
217
217
  <span class="method-name">with</span><span class="method-args">()</span>
218
218
  </a>
219
219
  </div>
220
220
 
221
221
  <div class="method-description">
222
222
  <p><a class="source-toggle" href="#"
223
- onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
224
- <div class="method-source-code" id="M000101-source">
223
+ onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
224
+ <div class="method-source-code" id="M000107-source">
225
225
  <pre>
226
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 279</span>
226
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 260</span>
227
227
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>
228
228
  <span class="ruby-ivar">@labels</span> <span class="ruby-operator">||=</span> <span class="ruby-ivar">@items</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">i</span>.<span class="ruby-identifier">to_s</span> }
229
229
  <span class="ruby-ivar">@selected</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
@@ -86,8 +86,8 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000120">new</a>&nbsp;&nbsp;
90
- <a href="#M000121">selected</a>&nbsp;&nbsp;
89
+ <a href="#M000127">new</a>&nbsp;&nbsp;
90
+ <a href="#M000128">selected</a>&nbsp;&nbsp;
91
91
  </div>
92
92
  </div>
93
93
 
@@ -109,21 +109,21 @@
109
109
  <div id="methods">
110
110
  <h3 class="section-bar">Public Class methods</h3>
111
111
 
112
- <div id="method-M000120" class="method-detail">
113
- <a name="M000120"></a>
112
+ <div id="method-M000127" class="method-detail">
113
+ <a name="M000127"></a>
114
114
 
115
115
  <div class="method-heading">
116
- <a href="#M000120" class="method-signature">
116
+ <a href="#M000127" class="method-signature">
117
117
  <span class="method-name">new</span><span class="method-args">()</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('M000120-source');return false;">[Source]</a></p>
124
- <div class="method-source-code" id="M000120-source">
123
+ onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
124
+ <div class="method-source-code" id="M000127-source">
125
125
  <pre>
126
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 232</span>
126
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 213</span>
127
127
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
128
128
  <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'option'</span>)
129
129
  <span class="ruby-keyword kw">end</span>
@@ -134,21 +134,21 @@
134
134
 
135
135
  <h3 class="section-bar">Public Instance methods</h3>
136
136
 
137
- <div id="method-M000121" class="method-detail">
138
- <a name="M000121"></a>
137
+ <div id="method-M000128" class="method-detail">
138
+ <a name="M000128"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="#M000121" class="method-signature">
141
+ <a href="#M000128" class="method-signature">
142
142
  <span class="method-name">selected</span><span class="method-args">(bool=true)</span>
143
143
  </a>
144
144
  </div>
145
145
 
146
146
  <div class="method-description">
147
147
  <p><a class="source-toggle" href="#"
148
- onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000121-source">
148
+ onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
149
+ <div class="method-source-code" id="M000128-source">
150
150
  <pre>
151
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 236</span>
151
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 217</span>
152
152
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">selected</span>(<span class="ruby-identifier">bool</span>=<span class="ruby-keyword kw">true</span>)
153
153
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bool</span>
154
154
  <span class="ruby-ivar">@attributes</span>[<span class="ruby-value str">'selected'</span>] = <span class="ruby-keyword kw">nil</span>
@@ -86,7 +86,7 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000104">new</a>&nbsp;&nbsp;
89
+ <a href="#M000110">new</a>&nbsp;&nbsp;
90
90
  </div>
91
91
  </div>
92
92
 
@@ -115,21 +115,21 @@
115
115
  <div id="methods">
116
116
  <h3 class="section-bar">Public Class methods</h3>
117
117
 
118
- <div id="method-M000104" class="method-detail">
119
- <a name="M000104"></a>
118
+ <div id="method-M000110" class="method-detail">
119
+ <a name="M000110"></a>
120
120
 
121
121
  <div class="method-heading">
122
- <a href="#M000104" class="method-signature">
122
+ <a href="#M000110" class="method-signature">
123
123
  <span class="method-name">new</span><span class="method-args">()</span>
124
124
  </a>
125
125
  </div>
126
126
 
127
127
  <div class="method-description">
128
128
  <p><a class="source-toggle" href="#"
129
- onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
130
- <div class="method-source-code" id="M000104-source">
129
+ onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
130
+ <div class="method-source-code" id="M000110-source">
131
131
  <pre>
132
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 316</span>
132
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 308</span>
133
133
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
134
134
  <span class="ruby-keyword kw">super</span>
135
135
  <span class="ruby-identifier">type</span>(<span class="ruby-value str">'submit'</span>)