wee 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +18 -0
- data/doc/rdoc/classes/Enumerable.html +6 -6
- data/doc/rdoc/classes/Object.html +12 -12
- data/doc/rdoc/classes/OgScaffolder.html +53 -6
- data/doc/rdoc/classes/OgScaffolder/Editor.html +182 -107
- data/doc/rdoc/classes/String.html +12 -12
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
- data/doc/rdoc/classes/Wee/Application.html +42 -42
- data/doc/rdoc/classes/Wee/Brush.html +18 -18
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +6 -6
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +84 -84
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +18 -18
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +6 -6
- data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +31 -23
- data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +11 -7
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +6 -6
- data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +36 -36
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +6 -6
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +36 -36
- data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
- data/doc/rdoc/classes/Wee/Canvas.html +24 -24
- data/doc/rdoc/classes/Wee/Component.html +124 -124
- data/doc/rdoc/classes/Wee/Component/OnAnswer.html +6 -6
- data/doc/rdoc/classes/Wee/Decoration.html +40 -40
- data/doc/rdoc/classes/Wee/Delegate.html +27 -27
- data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
- data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
- data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +214 -214
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
- data/doc/rdoc/classes/Wee/Md5IdGenerator.html +12 -12
- data/doc/rdoc/classes/Wee/MessageBox.html +12 -12
- data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
- data/doc/rdoc/classes/Wee/PagelessApplication.html +6 -6
- data/doc/rdoc/classes/Wee/PagelessRequest.html +12 -12
- data/doc/rdoc/classes/Wee/PagelessSession.html +24 -24
- data/doc/rdoc/classes/Wee/Presenter.html +85 -85
- data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
- data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
- data/doc/rdoc/classes/Wee/Request.html +30 -30
- data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
- data/doc/rdoc/classes/Wee/Response.html +36 -36
- data/doc/rdoc/classes/Wee/Session.html +104 -104
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +12 -12
- data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
- data/doc/rdoc/classes/Wee/Utils.html +19 -19
- data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
- data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
- data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +46 -46
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README.html +5 -5
- data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
- data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +8 -1
- data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +268 -264
- data/lib/wee.rb +1 -1
- data/lib/wee/databases/og/scaffolder.rb +62 -17
- data/lib/wee/renderer/html/brushes.rb +17 -5
- metadata +21 -21
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000151">new</a>
|
90
|
+
<a href="#M000152">with</a>
|
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-
|
113
|
-
<a name="
|
112
|
+
<div id="method-M000151" class="method-detail">
|
113
|
+
<a name="M000151"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
116
|
+
<a href="#M000151" 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('
|
124
|
-
<div class="method-source-code" id="
|
123
|
+
onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
|
124
|
+
<div class="method-source-code" id="M000151-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-
|
139
|
-
<a name="
|
138
|
+
<div id="method-M000152" class="method-detail">
|
139
|
+
<a name="M000152"></a>
|
140
140
|
|
141
141
|
<div class="method-heading">
|
142
|
-
<a href="#
|
142
|
+
<a href="#M000152" 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('
|
150
|
-
<div class="method-source-code" id="
|
149
|
+
onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
|
150
|
+
<div class="method-source-code" id="M000152-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>
|
@@ -85,7 +85,7 @@ Most browsers do not send the "name" key together with the value
|
|
85
85
|
specified by "value", only "name.x" and
|
86
86
|
"name.y". This conforms to the standard. But Firefox also sends
|
87
87
|
"name"="value". This is why I raise an exception from
|
88
|
-
the <a href="ImageButtonTag.html#
|
88
|
+
the <a href="ImageButtonTag.html#M000188">value</a> method. Note that
|
89
89
|
it’s neccessary to parse the passed form-fields and generate a
|
90
90
|
"name" fields in the request, to make this image-button work.
|
91
91
|
</p>
|
@@ -99,8 +99,8 @@ it’s neccessary to parse the passed form-fields and generate a
|
|
99
99
|
<h3 class="section-bar">Methods</h3>
|
100
100
|
|
101
101
|
<div class="name-list">
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
102
|
+
<a href="#M000187">new</a>
|
103
|
+
<a href="#M000188">value</a>
|
104
104
|
</div>
|
105
105
|
</div>
|
106
106
|
|
@@ -135,21 +135,21 @@ it’s neccessary to parse the passed form-fields and generate a
|
|
135
135
|
<div id="methods">
|
136
136
|
<h3 class="section-bar">Public Class methods</h3>
|
137
137
|
|
138
|
-
<div id="method-
|
139
|
-
<a name="
|
138
|
+
<div id="method-M000187" class="method-detail">
|
139
|
+
<a name="M000187"></a>
|
140
140
|
|
141
141
|
<div class="method-heading">
|
142
|
-
<a href="#
|
142
|
+
<a href="#M000187" class="method-signature">
|
143
143
|
<span class="method-name">new</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('
|
150
|
-
<div class="method-source-code" id="
|
149
|
+
onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
|
150
|
+
<div class="method-source-code" id="M000187-source">
|
151
151
|
<pre>
|
152
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
152
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 413</span>
|
153
153
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
154
154
|
<span class="ruby-keyword kw">super</span>
|
155
155
|
<span class="ruby-identifier">type</span>(<span class="ruby-value str">'image'</span>)
|
@@ -161,21 +161,21 @@ it’s neccessary to parse the passed form-fields and generate a
|
|
161
161
|
|
162
162
|
<h3 class="section-bar">Public Instance methods</h3>
|
163
163
|
|
164
|
-
<div id="method-
|
165
|
-
<a name="
|
164
|
+
<div id="method-M000188" class="method-detail">
|
165
|
+
<a name="M000188"></a>
|
166
166
|
|
167
167
|
<div class="method-heading">
|
168
|
-
<a href="#
|
168
|
+
<a href="#M000188" class="method-signature">
|
169
169
|
<span class="method-name">value</span><span class="method-args">(v)</span>
|
170
170
|
</a>
|
171
171
|
</div>
|
172
172
|
|
173
173
|
<div class="method-description">
|
174
174
|
<p><a class="source-toggle" href="#"
|
175
|
-
onclick="toggleCode('
|
176
|
-
<div class="method-source-code" id="
|
175
|
+
onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000188-source">
|
177
177
|
<pre>
|
178
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
178
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 420</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">value</span>(<span class="ruby-identifier">v</span>)
|
180
180
|
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"specified value will not be used in the request"</span>
|
181
181
|
<span class="ruby-keyword kw">end</span>
|
@@ -86,9 +86,9 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
89
|
+
<a href="#M000158">new</a>
|
90
|
+
<a href="#M000157">src_for</a>
|
91
|
+
<a href="#M000159">with</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -110,19 +110,19 @@
|
|
110
110
|
<div id="methods">
|
111
111
|
<h3 class="section-bar">Public Class methods</h3>
|
112
112
|
|
113
|
-
<div id="method-
|
114
|
-
<a name="
|
113
|
+
<div id="method-M000158" class="method-detail">
|
114
|
+
<a name="M000158"></a>
|
115
115
|
|
116
116
|
<div class="method-heading">
|
117
|
-
<a href="#
|
117
|
+
<a href="#M000158" class="method-signature">
|
118
118
|
<span class="method-name">new</span><span class="method-args">()</span>
|
119
119
|
</a>
|
120
120
|
</div>
|
121
121
|
|
122
122
|
<div class="method-description">
|
123
123
|
<p><a class="source-toggle" href="#"
|
124
|
-
onclick="toggleCode('
|
125
|
-
<div class="method-source-code" id="
|
124
|
+
onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
|
125
|
+
<div class="method-source-code" id="M000158-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 201</span>
|
128
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -135,11 +135,11 @@
|
|
135
135
|
|
136
136
|
<h3 class="section-bar">Public Instance methods</h3>
|
137
137
|
|
138
|
-
<div id="method-
|
139
|
-
<a name="
|
138
|
+
<div id="method-M000157" class="method-detail">
|
139
|
+
<a name="M000157"></a>
|
140
140
|
|
141
141
|
<div class="method-heading">
|
142
|
-
<a href="#
|
142
|
+
<a href="#M000157" class="method-signature">
|
143
143
|
<span class="method-name">src_for</span><span class="method-args">(prop)</span>
|
144
144
|
</a>
|
145
145
|
</div>
|
@@ -150,8 +150,8 @@ This method construct the src attribute by looking up the property from the
|
|
150
150
|
current component.
|
151
151
|
</p>
|
152
152
|
<p><a class="source-toggle" href="#"
|
153
|
-
onclick="toggleCode('
|
154
|
-
<div class="method-source-code" id="
|
153
|
+
onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
|
154
|
+
<div class="method-source-code" id="M000157-source">
|
155
155
|
<pre>
|
156
156
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 195</span>
|
157
157
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">src_for</span>(<span class="ruby-identifier">prop</span>)
|
@@ -164,19 +164,19 @@ current component.
|
|
164
164
|
</div>
|
165
165
|
</div>
|
166
166
|
|
167
|
-
<div id="method-
|
168
|
-
<a name="
|
167
|
+
<div id="method-M000159" class="method-detail">
|
168
|
+
<a name="M000159"></a>
|
169
169
|
|
170
170
|
<div class="method-heading">
|
171
|
-
<a href="#
|
171
|
+
<a href="#M000159" class="method-signature">
|
172
172
|
<span class="method-name">with</span><span class="method-args">()</span>
|
173
173
|
</a>
|
174
174
|
</div>
|
175
175
|
|
176
176
|
<div class="method-description">
|
177
177
|
<p><a class="source-toggle" href="#"
|
178
|
-
onclick="toggleCode('
|
179
|
-
<div class="method-source-code" id="
|
178
|
+
onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
|
179
|
+
<div class="method-source-code" id="M000159-source">
|
180
180
|
<pre>
|
181
181
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 205</span>
|
182
182
|
<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="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000196">new</a>
|
90
|
+
<a href="#M000197">with</a>
|
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-
|
113
|
-
<a name="
|
112
|
+
<div id="method-M000196" class="method-detail">
|
113
|
+
<a name="M000196"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
116
|
+
<a href="#M000196" 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('
|
124
|
-
<div class="method-source-code" id="
|
123
|
+
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
124
|
+
<div class="method-source-code" id="M000196-source">
|
125
125
|
<pre>
|
126
126
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 276</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-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000197" class="method-detail">
|
138
|
+
<a name="M000197"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
141
|
+
<a href="#M000197" 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('
|
149
|
-
<div class="method-source-code" id="
|
148
|
+
onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
|
149
|
+
<div class="method-source-code" id="M000197-source">
|
150
150
|
<pre>
|
151
151
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 283</span>
|
152
152
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000189">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,19 +108,19 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Class methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000189" class="method-detail">
|
112
|
+
<a name="M000189"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="#
|
115
|
+
<a href="#M000189" class="method-signature">
|
116
116
|
<span class="method-name">new</span><span class="method-args">()</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
121
|
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('
|
123
|
-
<div class="method-source-code" id="
|
122
|
+
onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
|
123
|
+
<div class="method-source-code" id="M000189-source">
|
124
124
|
<pre>
|
125
125
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 213</span>
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000192">title</a>
|
90
|
+
<a href="#M000193">with</a>
|
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-
|
113
|
-
<a name="
|
112
|
+
<div id="method-M000192" class="method-detail">
|
113
|
+
<a name="M000192"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
116
|
+
<a href="#M000192" class="method-signature">
|
117
117
|
<span class="method-name">title</span><span class="method-args">(t)</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('
|
124
|
-
<div class="method-source-code" id="
|
123
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
124
|
+
<div class="method-source-code" id="M000192-source">
|
125
125
|
<pre>
|
126
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
126
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 479</span>
|
127
127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title</span>(<span class="ruby-identifier">t</span>)
|
128
128
|
<span class="ruby-ivar">@title</span> = <span class="ruby-identifier">t</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-
|
137
|
-
<a name="
|
136
|
+
<div id="method-M000193" class="method-detail">
|
137
|
+
<a name="M000193"></a>
|
138
138
|
|
139
139
|
<div class="method-heading">
|
140
|
-
<a href="#
|
140
|
+
<a href="#M000193" class="method-signature">
|
141
141
|
<span class="method-name">with</span><span class="method-args">(text=nil, &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('
|
148
|
-
<div class="method-source-code" id="
|
147
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
148
|
+
<div class="method-source-code" id="M000193-source">
|
149
149
|
<pre>
|
150
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
150
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 484</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">&</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">"html"</span>)
|
@@ -86,9 +86,9 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
89
|
+
<a href="#M000167">callback</a>
|
90
|
+
<a href="#M000166">new</a>
|
91
|
+
<a href="#M000168">with</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -116,19 +116,19 @@
|
|
116
116
|
<div id="methods">
|
117
117
|
<h3 class="section-bar">Public Class methods</h3>
|
118
118
|
|
119
|
-
<div id="method-
|
120
|
-
<a name="
|
119
|
+
<div id="method-M000166" class="method-detail">
|
120
|
+
<a name="M000166"></a>
|
121
121
|
|
122
122
|
<div class="method-heading">
|
123
|
-
<a href="#
|
123
|
+
<a href="#M000166" class="method-signature">
|
124
124
|
<span class="method-name">new</span><span class="method-args">(items)</span>
|
125
125
|
</a>
|
126
126
|
</div>
|
127
127
|
|
128
128
|
<div class="method-description">
|
129
129
|
<p><a class="source-toggle" href="#"
|
130
|
-
onclick="toggleCode('
|
131
|
-
<div class="method-source-code" id="
|
130
|
+
onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
|
131
|
+
<div class="method-source-code" id="M000166-source">
|
132
132
|
<pre>
|
133
133
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 312</span>
|
134
134
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">items</span>)
|
@@ -142,19 +142,19 @@
|
|
142
142
|
|
143
143
|
<h3 class="section-bar">Public Instance methods</h3>
|
144
144
|
|
145
|
-
<div id="method-
|
146
|
-
<a name="
|
145
|
+
<div id="method-M000167" class="method-detail">
|
146
|
+
<a name="M000167"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="#
|
149
|
+
<a href="#M000167" class="method-signature">
|
150
150
|
<span class="method-name">callback</span><span class="method-args">(symbol=nil, *args, &block)</span>
|
151
151
|
</a>
|
152
152
|
</div>
|
153
153
|
|
154
154
|
<div class="method-description">
|
155
155
|
<p><a class="source-toggle" href="#"
|
156
|
-
onclick="toggleCode('
|
157
|
-
<div class="method-source-code" id="
|
156
|
+
onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
|
157
|
+
<div class="method-source-code" id="M000167-source">
|
158
158
|
<pre>
|
159
159
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 328</span>
|
160
160
|
<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">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -166,35 +166,43 @@
|
|
166
166
|
</div>
|
167
167
|
</div>
|
168
168
|
|
169
|
-
<div id="method-
|
170
|
-
<a name="
|
169
|
+
<div id="method-M000168" class="method-detail">
|
170
|
+
<a name="M000168"></a>
|
171
171
|
|
172
172
|
<div class="method-heading">
|
173
|
-
<a href="#
|
173
|
+
<a href="#M000168" class="method-signature">
|
174
174
|
<span class="method-name">with</span><span class="method-args">()</span>
|
175
175
|
</a>
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div class="method-description">
|
179
179
|
<p><a class="source-toggle" href="#"
|
180
|
-
onclick="toggleCode('
|
181
|
-
<div class="method-source-code" id="
|
180
|
+
onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
|
181
|
+
<div class="method-source-code" id="M000168-source">
|
182
182
|
<pre>
|
183
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
183
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 351</span>
|
184
184
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>
|
185
185
|
<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> }
|
186
|
-
|
186
|
+
|
187
|
+
<span class="ruby-identifier">is_multiple</span> = <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value str">'multiple'</span>)
|
187
188
|
|
188
189
|
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@callback</span>
|
189
190
|
<span class="ruby-comment cmt"># A callback was specified. We have to wrap it inside a</span>
|
190
191
|
<span class="ruby-comment cmt"># SelectListCallback object as we want to perform some </span>
|
191
192
|
<span class="ruby-comment cmt"># additional actions.</span>
|
192
|
-
<span class="ruby-identifier">__input_callback</span>(<span class="ruby-constant">SelectListCallback</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@callback</span>, <span class="ruby-ivar">@items</span>, <span class="ruby-
|
193
|
+
<span class="ruby-identifier">__input_callback</span>(<span class="ruby-constant">SelectListCallback</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@callback</span>, <span class="ruby-ivar">@items</span>, <span class="ruby-identifier">is_multiple</span>))
|
193
194
|
<span class="ruby-keyword kw">end</span>
|
194
195
|
|
195
196
|
<span class="ruby-keyword kw">super</span> <span class="ruby-keyword kw">do</span>
|
196
|
-
<span class="ruby-
|
197
|
-
<span class="ruby-ivar">@
|
197
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_multiple</span>
|
198
|
+
<span class="ruby-ivar">@selected</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
199
|
+
<span class="ruby-ivar">@items</span>.<span class="ruby-identifier">each_index</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
200
|
+
<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">option</span>.<span class="ruby-identifier">value</span>(<span class="ruby-identifier">i</span>).<span class="ruby-identifier">selected</span>(<span class="ruby-ivar">@selected</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-ivar">@items</span>[<span class="ruby-identifier">i</span>])).<span class="ruby-identifier">with</span>(<span class="ruby-ivar">@labels</span>[<span class="ruby-identifier">i</span>])
|
201
|
+
}
|
202
|
+
<span class="ruby-keyword kw">else</span>
|
203
|
+
<span class="ruby-ivar">@items</span>.<span class="ruby-identifier">each_index</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
204
|
+
<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">option</span>.<span class="ruby-identifier">value</span>(<span class="ruby-identifier">i</span>).<span class="ruby-identifier">selected</span>(<span class="ruby-ivar">@selected</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@items</span>[<span class="ruby-identifier">i</span>]).<span class="ruby-identifier">with</span>(<span class="ruby-ivar">@labels</span>[<span class="ruby-identifier">i</span>])
|
205
|
+
}
|
198
206
|
<span class="ruby-keyword kw">end</span>
|
199
207
|
<span class="ruby-keyword kw">end</span>
|
200
208
|
<span class="ruby-keyword kw">end</span>
|