wee 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +0 -1
- data/Rakefile +5 -0
- data/TODO +6 -0
- data/doc/rdoc/classes/Enumerable.html +6 -6
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +10 -10
- data/doc/rdoc/classes/Wee/Application.html +110 -52
- data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +8 -15
- data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +8 -19
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +22 -22
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +156 -0
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +50 -25
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +36 -36
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +16 -16
- data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +8 -15
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +28 -28
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +14 -14
- 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 +28 -28
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush.html +19 -19
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +33 -33
- 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 +163 -138
- data/doc/rdoc/classes/Wee/Decoration.html +72 -41
- data/doc/rdoc/classes/Wee/Delegate.html +31 -31
- data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
- data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
- data/doc/rdoc/classes/Wee/Helper.html +148 -0
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +267 -166
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
- data/doc/rdoc/classes/Wee/PageDecoration.html +199 -0
- data/doc/rdoc/classes/Wee/Presenter.html +69 -69
- 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 +18 -18
- data/doc/rdoc/classes/Wee/RequestHandler.html +32 -31
- data/doc/rdoc/classes/Wee/Response.html +24 -24
- data/doc/rdoc/classes/Wee/Session.html +83 -64
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +18 -18
- data/doc/rdoc/classes/Wee/Snapshot.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 +66 -62
- data/doc/rdoc/classes/Wee.html +63 -2
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README.html +6 -9
- data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/components_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
- data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/session_rb.html +2 -1
- data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/utils/helper_rb.html +108 -0
- data/doc/rdoc/files/lib/wee_rb.html +2 -1
- data/doc/rdoc/fr_class_index.html +3 -1
- data/doc/rdoc/fr_file_index.html +4 -0
- data/doc/rdoc/fr_method_index.html +203 -191
- data/examples/example.rb +2 -16
- data/examples/test.rb +15 -18
- data/lib/wee/adaptors/webrick.rb +3 -1
- data/lib/wee/application.rb +55 -19
- data/lib/wee/components/page_decoration.rb +14 -0
- data/lib/wee/components.rb +1 -0
- data/lib/wee/core/callback.rb +1 -1
- data/lib/wee/core/component.rb +27 -3
- data/lib/wee/core/decoration.rb +9 -0
- data/lib/wee/renderer/html/brushes.rb +21 -23
- data/lib/wee/renderer/html/canvas.rb +25 -4
- data/lib/wee/requesthandler.rb +1 -0
- data/lib/wee/session.rb +21 -1
- data/lib/wee/utils/autoreload.rb +27 -0
- data/lib/wee/utils/helper.rb +15 -0
- data/lib/wee.rb +2 -1
- metadata +203 -191
- 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="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000092">new</a>
|
90
|
+
<a href="#M000093">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-M000092" class="method-detail">
|
113
|
+
<a name="M000092"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
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('
|
124
|
-
<div class="method-source-code" id="
|
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-
|
139
|
-
<a name="
|
138
|
+
<div id="method-M000093" class="method-detail">
|
139
|
+
<a name="M000093"></a>
|
140
140
|
|
141
141
|
<div class="method-heading">
|
142
|
-
<a href="#
|
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('
|
150
|
-
<div class="method-source-code" id="
|
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 "name" key together with the value
|
|
87
87
|
specified by "value", only "name.x" and
|
88
88
|
"name.y". This conforms to the standard. But Firefox also sends
|
89
89
|
"name"="value". This is why I raise an exception from
|
90
|
-
the <a href="ImageButtonTag.html#
|
90
|
+
the <a href="ImageButtonTag.html#M000118">value</a> method. Note that
|
91
91
|
it’s neccessary to parse the passed form-fields and generate a
|
92
92
|
"name" fields in the request, to make this image-button work.
|
93
93
|
</p>
|
@@ -101,8 +101,8 @@ it’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="#
|
105
|
-
<a href="#
|
104
|
+
<a href="#M000117">new</a>
|
105
|
+
<a href="#M000118">value</a>
|
106
106
|
</div>
|
107
107
|
</div>
|
108
108
|
|
@@ -114,7 +114,7 @@ it’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">
|
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’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-
|
135
|
-
<a name="
|
134
|
+
<div id="method-M000117" class="method-detail">
|
135
|
+
<a name="M000117"></a>
|
136
136
|
|
137
137
|
<div class="method-heading">
|
138
|
-
<a href="#
|
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('
|
146
|
-
<div class="method-source-code" id="
|
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
|
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’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-
|
161
|
-
<a name="
|
160
|
+
<div id="method-M000118" class="method-detail">
|
161
|
+
<a name="M000118"></a>
|
162
162
|
|
163
163
|
<div class="method-heading">
|
164
|
-
<a href="#
|
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('
|
172
|
-
<div class="method-source-code" id="
|
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
|
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">"specified value will not be used in the request"</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="#
|
83
|
+
<a href="#M000082">callback</a>
|
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-
|
113
|
-
<a name="
|
105
|
+
<div id="method-M000082" class="method-detail">
|
106
|
+
<a name="M000082"></a>
|
114
107
|
|
115
108
|
<div class="method-heading">
|
116
|
-
<a href="#
|
109
|
+
<a href="#M000082" class="method-signature">
|
117
110
|
<span class="method-name">callback</span><span class="method-args">(symbol=nil, &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('
|
124
|
-
<div class="method-source-code" id="
|
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
|
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">&</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">&</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">&</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="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000129">new</a>
|
90
|
+
<a href="#M000130">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-M000129" class="method-detail">
|
113
|
+
<a name="M000129"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
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('
|
124
|
-
<div class="method-source-code" id="
|
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-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000130" class="method-detail">
|
138
|
+
<a name="M000130"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
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('
|
149
|
-
<div class="method-source-code" id="
|
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="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000121">title</a>
|
90
|
+
<a href="#M000122">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-M000121" class="method-detail">
|
113
|
+
<a name="M000121"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
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('
|
124
|
-
<div class="method-source-code" id="
|
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
|
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-
|
137
|
-
<a name="
|
136
|
+
<div id="method-M000122" class="method-detail">
|
137
|
+
<a name="M000122"></a>
|
138
138
|
|
139
139
|
<div class="method-heading">
|
140
|
-
<a href="#
|
140
|
+
<a href="#M000122" 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('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
|
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">&</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,10 +86,10 @@
|
|
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="#
|
92
|
-
<a href="#
|
89
|
+
<a href="#M000106">callback</a>
|
90
|
+
<a href="#M000105">multiple</a>
|
91
|
+
<a href="#M000104">new</a>
|
92
|
+
<a href="#M000107">with</a>
|
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-
|
135
|
-
<a name="
|
134
|
+
<div id="method-M000104" class="method-detail">
|
135
|
+
<a name="M000104"></a>
|
136
136
|
|
137
137
|
<div class="method-heading">
|
138
|
-
<a href="#
|
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('
|
146
|
-
<div class="method-source-code" id="
|
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
|
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-
|
161
|
-
<a name="
|
160
|
+
<div id="method-M000106" class="method-detail">
|
161
|
+
<a name="M000106"></a>
|
162
162
|
|
163
163
|
<div class="method-heading">
|
164
|
-
<a href="#
|
164
|
+
<a href="#M000106" class="method-signature">
|
165
165
|
<span class="method-name">callback</span><span class="method-args">(symbol=nil, &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('
|
172
|
-
<div class="method-source-code" id="
|
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
|
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">&</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-
|
188
|
-
<a name="
|
187
|
+
<div id="method-M000105" class="method-detail">
|
188
|
+
<a name="M000105"></a>
|
189
189
|
|
190
190
|
<div class="method-heading">
|
191
|
-
<a href="#
|
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('
|
199
|
-
<div class="method-source-code" id="
|
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
|
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-
|
213
|
-
<a name="
|
212
|
+
<div id="method-M000107" class="method-detail">
|
213
|
+
<a name="M000107"></a>
|
214
214
|
|
215
215
|
<div class="method-heading">
|
216
|
-
<a href="#
|
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('
|
224
|
-
<div class="method-source-code" id="
|
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
|
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="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000127">new</a>
|
90
|
+
<a href="#M000128">selected</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 Class methods</h3>
|
111
111
|
|
112
|
-
<div id="method-
|
113
|
-
<a name="
|
112
|
+
<div id="method-M000127" class="method-detail">
|
113
|
+
<a name="M000127"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
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('
|
124
|
-
<div class="method-source-code" id="
|
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
|
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-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000128" class="method-detail">
|
138
|
+
<a name="M000128"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
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('
|
149
|
-
<div class="method-source-code" id="
|
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
|
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="#
|
89
|
+
<a href="#M000110">new</a>
|
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-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000110" class="method-detail">
|
119
|
+
<a name="M000110"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="#
|
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('
|
130
|
-
<div class="method-source-code" id="
|
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
|
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>)
|