wee 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +132 -0
- data/INSTALL +13 -3
- data/README +3 -3
- data/Rakefile +5 -1
- data/bin/wee +100 -0
- data/doc/rdoc/classes/Array.html +12 -12
- data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
- data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
- data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
- data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
- data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
- data/doc/rdoc/classes/Enumerable.html +6 -6
- data/doc/rdoc/classes/Main.html +265 -0
- data/doc/rdoc/classes/Object.html +12 -12
- data/doc/rdoc/classes/OgApplication.html +2 -2
- data/doc/rdoc/classes/OgScaffolder.html +444 -64
- data/doc/rdoc/classes/OgScaffolder/Editor.html +490 -0
- data/doc/rdoc/classes/OgSession.html +4 -4
- data/doc/rdoc/classes/Recipe.html +113 -0
- data/doc/rdoc/classes/String.html +12 -12
- data/doc/rdoc/classes/Struct.html +12 -12
- data/doc/rdoc/classes/Wee.html +10 -1
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
- data/doc/rdoc/classes/Wee/Application.html +48 -47
- data/doc/rdoc/classes/Wee/Brush.html +19 -23
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +17 -14
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +20 -14
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +25 -21
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +234 -100
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +28 -22
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +23 -24
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +33 -57
- data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +154 -0
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +20 -14
- 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 +42 -42
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +27 -21
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +20 -14
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +64 -36
- data/doc/rdoc/classes/Wee/CallbackStream.html +21 -21
- data/doc/rdoc/classes/Wee/Canvas.html +24 -24
- data/doc/rdoc/classes/Wee/Component.html +179 -151
- data/doc/rdoc/classes/Wee/Component/OnAnswer.html +12 -12
- data/doc/rdoc/classes/Wee/Decoration.html +42 -42
- data/doc/rdoc/classes/Wee/Delegate.html +27 -27
- data/doc/rdoc/classes/Wee/ErrorResponse.html +14 -14
- data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
- data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +326 -219
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +19 -19
- data/doc/rdoc/classes/Wee/Md5IdGenerator.html +181 -0
- 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 +152 -0
- data/doc/rdoc/classes/Wee/PagelessRequest.html +177 -0
- data/doc/rdoc/classes/Wee/PagelessSession.html +320 -0
- data/doc/rdoc/classes/Wee/Presenter.html +145 -89
- data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
- data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
- data/doc/rdoc/classes/Wee/Request.html +116 -50
- data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
- data/doc/rdoc/classes/Wee/Response.html +76 -28
- data/doc/rdoc/classes/Wee/Session.html +129 -506
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +22 -40
- data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
- data/doc/rdoc/classes/Wee/Utils.html +70 -17
- 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 +82 -49
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/INSTALL.html +17 -5
- data/doc/rdoc/files/README.html +9 -11
- 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 +1 -1
- data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -3
- 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_rb.html +3 -3
- data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/databases/og_rb.html +4 -1
- data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +115 -0
- data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +107 -0
- data/doc/rdoc/files/lib/wee/pageless/application_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/pageless/request_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/pageless/session_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/pageless_rb.html +110 -0
- data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +8 -1
- data/doc/rdoc/files/lib/wee/request_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/response_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/session_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +114 -0
- data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +115 -0
- data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +111 -0
- data/doc/rdoc/files/lib/wee/template_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
- data/doc/rdoc/files/lib/wee_rb.html +4 -2
- data/doc/rdoc/fr_class_index.html +8 -4
- data/doc/rdoc/fr_file_index.html +17 -1
- data/doc/rdoc/fr_method_index.html +312 -267
- data/examples/live-update.rb +1 -1
- data/install.rb +14 -0
- data/lib/wee.rb +6 -2
- data/lib/wee/adaptors/webrick.rb +17 -5
- data/lib/wee/application.rb +2 -1
- data/lib/wee/continuation/session.rb +1 -146
- data/lib/wee/core/callback.rb +11 -5
- data/lib/wee/core/component.rb +14 -10
- data/lib/wee/databases/og.rb +3 -113
- data/lib/wee/databases/og/application.rb +3 -0
- data/lib/wee/databases/og/old_scaffolder.rb +98 -0
- data/lib/wee/databases/og/scaffolder.rb +174 -0
- data/lib/wee/databases/og/session.rb +9 -0
- data/lib/wee/idgen/md5.rb +21 -0
- data/lib/wee/{idgen.rb → idgen/simple.rb} +2 -4
- data/lib/wee/pageless.rb +3 -0
- data/lib/wee/pageless/application.rb +9 -0
- data/lib/wee/pageless/request.rb +15 -0
- data/lib/wee/pageless/session.rb +89 -0
- data/lib/wee/renderer/html/brushes.rb +100 -115
- data/lib/wee/renderer/html/canvas.rb +32 -2
- data/lib/wee/request.rb +36 -24
- data/lib/wee/response.rb +8 -1
- data/lib/wee/session.rb +13 -7
- data/lib/wee/skeleton/og/README +38 -0
- data/lib/wee/skeleton/og/components/main.rb +16 -0
- data/lib/wee/skeleton/og/conf/db.rb +8 -0
- data/lib/wee/skeleton/og/models/recipe.rb +5 -0
- data/lib/wee/skeleton/og/run.rb +23 -0
- data/lib/wee/skeleton/simple/README +32 -0
- data/lib/wee/skeleton/simple/components/main.rb +25 -0
- data/lib/wee/skeleton/simple/run.rb +12 -0
- data/lib/wee/template.rb +28 -0
- data/lib/wee/utils/autoreload.rb +29 -0
- data/lib/wee/utils/helper.rb +9 -5
- data/test/test_request.rb +4 -3
- data/wee.gemspec +3 -1
- metadata +91 -22
@@ -88,7 +88,7 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
91
|
+
<a href="#M000089">render_wrapper</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -110,19 +110,19 @@
|
|
110
110
|
<div id="methods">
|
111
111
|
<h3 class="section-bar">Private Instance methods</h3>
|
112
112
|
|
113
|
-
<div id="method-
|
114
|
-
<a name="
|
113
|
+
<div id="method-M000089" class="method-detail">
|
114
|
+
<a name="M000089"></a>
|
115
115
|
|
116
116
|
<div class="method-heading">
|
117
|
-
<a href="#
|
117
|
+
<a href="#M000089" class="method-signature">
|
118
118
|
<span class="method-name">render_wrapper</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('M000089-source');return false;">[Source]</a></p>
|
125
|
+
<div class="method-source-code" id="M000089-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/wee/components/form_decoration.rb, line 4</span>
|
128
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_wrapper</span>
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
91
|
+
<a href="#M000090">new</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -123,21 +123,21 @@
|
|
123
123
|
<div id="methods">
|
124
124
|
<h3 class="section-bar">Public Class methods</h3>
|
125
125
|
|
126
|
-
<div id="method-
|
127
|
-
<a name="
|
126
|
+
<div id="method-M000090" class="method-detail">
|
127
|
+
<a name="M000090"></a>
|
128
128
|
|
129
129
|
<div class="method-heading">
|
130
|
-
<a href="#
|
130
|
+
<a href="#M000090" class="method-signature">
|
131
131
|
<span class="method-name">new</span><span class="method-args">(mime_type = 'text/html', content='')</span>
|
132
132
|
</a>
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div class="method-description">
|
136
136
|
<p><a class="source-toggle" href="#"
|
137
|
-
onclick="toggleCode('
|
138
|
-
<div class="method-source-code" id="
|
137
|
+
onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
|
138
|
+
<div class="method-source-code" id="M000090-source">
|
139
139
|
<pre>
|
140
|
-
<span class="ruby-comment cmt"># File lib/wee/response.rb, line
|
140
|
+
<span class="ruby-comment cmt"># File lib/wee/response.rb, line 40</span>
|
141
141
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">mime_type</span> = <span class="ruby-value str">'text/html'</span>, <span class="ruby-identifier">content</span>=<span class="ruby-value str">''</span>)
|
142
142
|
<span class="ruby-keyword kw">super</span>
|
143
143
|
<span class="ruby-ivar">@header</span>[<span class="ruby-value str">'Expires'</span>] = (<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span> <span class="ruby-operator">+</span> <span class="ruby-constant">EXPIRE_OFFSET</span>).<span class="ruby-identifier">rfc822</span>
|
@@ -88,38 +88,42 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
119
|
-
<a href="#
|
120
|
-
<a href="#
|
121
|
-
<a href="#
|
122
|
-
<a href="#
|
91
|
+
<a href="#M000128"><<</a>
|
92
|
+
<a href="#M000119">anchor</a>
|
93
|
+
<a href="#M000121">bold</a>
|
94
|
+
<a href="#M000124">break</a>
|
95
|
+
<a href="#M000129">encode_text</a>
|
96
|
+
<a href="#M000117">file_upload</a>
|
97
|
+
<a href="#M000109">form</a>
|
98
|
+
<a href="#M000098">generic_single_tag</a>
|
99
|
+
<a href="#M000097">generic_tag</a>
|
100
|
+
<a href="#M000132">handle</a>
|
101
|
+
<a href="#M000125">image</a>
|
102
|
+
<a href="#M000116">image_button</a>
|
103
|
+
<a href="#M000110">input</a>
|
104
|
+
<a href="#M000122">javascript</a>
|
105
|
+
<a href="#M000126">link_css</a>
|
106
|
+
<a href="#M000099">new</a>
|
107
|
+
<a href="#M000113">option</a>
|
108
|
+
<a href="#M000118">page</a>
|
109
|
+
<a href="#M000123">paragraph</a>
|
110
|
+
<a href="#M000103">register_callback</a>
|
111
|
+
<a href="#M000104">register_named_callback</a>
|
112
|
+
<a href="#M000130">render</a>
|
113
|
+
<a href="#M000114">select_list</a>
|
114
|
+
<a href="#M000120">space</a>
|
115
|
+
<a href="#M000115">submit_button</a>
|
116
|
+
<a href="#M000105">table</a>
|
117
|
+
<a href="#M000107">table_data</a>
|
118
|
+
<a href="#M000108">table_header</a>
|
119
|
+
<a href="#M000106">table_row</a>
|
120
|
+
<a href="#M000131">template</a>
|
121
|
+
<a href="#M000127">text</a>
|
122
|
+
<a href="#M000112">text_area</a>
|
123
|
+
<a href="#M000111">text_input</a>
|
124
|
+
<a href="#M000100">url_for_callback</a>
|
125
|
+
<a href="#M000102">url_for_callback_id</a>
|
126
|
+
<a href="#M000101">url_for_named_callback</a>
|
123
127
|
</div>
|
124
128
|
</div>
|
125
129
|
|
@@ -164,19 +168,19 @@
|
|
164
168
|
<div id="methods">
|
165
169
|
<h3 class="section-bar">Public Class methods</h3>
|
166
170
|
|
167
|
-
<div id="method-
|
168
|
-
<a name="
|
171
|
+
<div id="method-M000098" class="method-detail">
|
172
|
+
<a name="M000098"></a>
|
169
173
|
|
170
174
|
<div class="method-heading">
|
171
|
-
<a href="#
|
175
|
+
<a href="#M000098" class="method-signature">
|
172
176
|
<span class="method-name">generic_single_tag</span><span class="method-args">(*attrs)</span>
|
173
177
|
</a>
|
174
178
|
</div>
|
175
179
|
|
176
180
|
<div class="method-description">
|
177
181
|
<p><a class="source-toggle" href="#"
|
178
|
-
onclick="toggleCode('
|
179
|
-
<div class="method-source-code" id="
|
182
|
+
onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
|
183
|
+
<div class="method-source-code" id="M000098-source">
|
180
184
|
<pre>
|
181
185
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 49</span>
|
182
186
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generic_single_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
|
@@ -193,19 +197,19 @@
|
|
193
197
|
</div>
|
194
198
|
</div>
|
195
199
|
|
196
|
-
<div id="method-
|
197
|
-
<a name="
|
200
|
+
<div id="method-M000097" class="method-detail">
|
201
|
+
<a name="M000097"></a>
|
198
202
|
|
199
203
|
<div class="method-heading">
|
200
|
-
<a href="#
|
204
|
+
<a href="#M000097" class="method-signature">
|
201
205
|
<span class="method-name">generic_tag</span><span class="method-args">(*attrs)</span>
|
202
206
|
</a>
|
203
207
|
</div>
|
204
208
|
|
205
209
|
<div class="method-description">
|
206
210
|
<p><a class="source-toggle" href="#"
|
207
|
-
onclick="toggleCode('
|
208
|
-
<div class="method-source-code" id="
|
211
|
+
onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
|
212
|
+
<div class="method-source-code" id="M000097-source">
|
209
213
|
<pre>
|
210
214
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 39</span>
|
211
215
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generic_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
|
@@ -222,19 +226,19 @@
|
|
222
226
|
</div>
|
223
227
|
</div>
|
224
228
|
|
225
|
-
<div id="method-
|
226
|
-
<a name="
|
229
|
+
<div id="method-M000099" class="method-detail">
|
230
|
+
<a name="M000099"></a>
|
227
231
|
|
228
232
|
<div class="method-heading">
|
229
|
-
<a href="#
|
233
|
+
<a href="#M000099" class="method-signature">
|
230
234
|
<span class="method-name">new</span><span class="method-args">(rendering_context)</span>
|
231
235
|
</a>
|
232
236
|
</div>
|
233
237
|
|
234
238
|
<div class="method-description">
|
235
239
|
<p><a class="source-toggle" href="#"
|
236
|
-
onclick="toggleCode('
|
237
|
-
<div class="method-source-code" id="
|
240
|
+
onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
|
241
|
+
<div class="method-source-code" id="M000099-source">
|
238
242
|
<pre>
|
239
243
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 59</span>
|
240
244
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">rendering_context</span>)
|
@@ -249,8 +253,8 @@
|
|
249
253
|
|
250
254
|
<h3 class="section-bar">Public Instance methods</h3>
|
251
255
|
|
252
|
-
<div id="method-
|
253
|
-
<a name="
|
256
|
+
<div id="method-M000128" class="method-detail">
|
257
|
+
<a name="M000128"></a>
|
254
258
|
|
255
259
|
<div class="method-heading">
|
256
260
|
<span class="method-name"><<</span><span class="method-args">(str)</span>
|
@@ -258,26 +262,26 @@
|
|
258
262
|
|
259
263
|
<div class="method-description">
|
260
264
|
<p>
|
261
|
-
Alias for <a href="HtmlCanvas.html#
|
265
|
+
Alias for <a href="HtmlCanvas.html#M000127">text</a>
|
262
266
|
</p>
|
263
267
|
</div>
|
264
268
|
</div>
|
265
269
|
|
266
|
-
<div id="method-
|
267
|
-
<a name="
|
270
|
+
<div id="method-M000119" class="method-detail">
|
271
|
+
<a name="M000119"></a>
|
268
272
|
|
269
273
|
<div class="method-heading">
|
270
|
-
<a href="#
|
274
|
+
<a href="#M000119" class="method-signature">
|
271
275
|
<span class="method-name">anchor</span><span class="method-args">(*args, &block)</span>
|
272
276
|
</a>
|
273
277
|
</div>
|
274
278
|
|
275
279
|
<div class="method-description">
|
276
280
|
<p><a class="source-toggle" href="#"
|
277
|
-
onclick="toggleCode('
|
278
|
-
<div class="method-source-code" id="
|
281
|
+
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
282
|
+
<div class="method-source-code" id="M000119-source">
|
279
283
|
<pre>
|
280
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
284
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 147</span>
|
281
285
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">anchor</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
282
286
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">AnchorTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
283
287
|
<span class="ruby-keyword kw">end</span>
|
@@ -286,21 +290,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
286
290
|
</div>
|
287
291
|
</div>
|
288
292
|
|
289
|
-
<div id="method-
|
290
|
-
<a name="
|
293
|
+
<div id="method-M000121" class="method-detail">
|
294
|
+
<a name="M000121"></a>
|
291
295
|
|
292
296
|
<div class="method-heading">
|
293
|
-
<a href="#
|
297
|
+
<a href="#M000121" class="method-signature">
|
294
298
|
<span class="method-name">bold</span><span class="method-args">(*args, &block)</span>
|
295
299
|
</a>
|
296
300
|
</div>
|
297
301
|
|
298
302
|
<div class="method-description">
|
299
303
|
<p><a class="source-toggle" href="#"
|
300
|
-
onclick="toggleCode('
|
301
|
-
<div class="method-source-code" id="
|
304
|
+
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
305
|
+
<div class="method-source-code" id="M000121-source">
|
302
306
|
<pre>
|
303
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
307
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 155</span>
|
304
308
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bold</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
305
309
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"b"</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
306
310
|
<span class="ruby-keyword kw">end</span>
|
@@ -309,21 +313,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
309
313
|
</div>
|
310
314
|
</div>
|
311
315
|
|
312
|
-
<div id="method-
|
313
|
-
<a name="
|
316
|
+
<div id="method-M000124" class="method-detail">
|
317
|
+
<a name="M000124"></a>
|
314
318
|
|
315
319
|
<div class="method-heading">
|
316
|
-
<a href="#
|
320
|
+
<a href="#M000124" class="method-signature">
|
317
321
|
<span class="method-name">break</span><span class="method-args">()</span>
|
318
322
|
</a>
|
319
323
|
</div>
|
320
324
|
|
321
325
|
<div class="method-description">
|
322
326
|
<p><a class="source-toggle" href="#"
|
323
|
-
onclick="toggleCode('
|
324
|
-
<div class="method-source-code" id="
|
327
|
+
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
328
|
+
<div class="method-source-code" id="M000124-source">
|
325
329
|
<pre>
|
326
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
330
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 167</span>
|
327
331
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">break</span>
|
328
332
|
<span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericSingleTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"br"</span>))
|
329
333
|
<span class="ruby-keyword kw">end</span>
|
@@ -332,21 +336,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
332
336
|
</div>
|
333
337
|
</div>
|
334
338
|
|
335
|
-
<div id="method-
|
336
|
-
<a name="
|
339
|
+
<div id="method-M000129" class="method-detail">
|
340
|
+
<a name="M000129"></a>
|
337
341
|
|
338
342
|
<div class="method-heading">
|
339
|
-
<a href="#
|
343
|
+
<a href="#M000129" class="method-signature">
|
340
344
|
<span class="method-name">encode_text</span><span class="method-args">(str)</span>
|
341
345
|
</a>
|
342
346
|
</div>
|
343
347
|
|
344
348
|
<div class="method-description">
|
345
349
|
<p><a class="source-toggle" href="#"
|
346
|
-
onclick="toggleCode('
|
347
|
-
<div class="method-source-code" id="
|
350
|
+
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
351
|
+
<div class="method-source-code" id="M000129-source">
|
348
352
|
<pre>
|
349
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
353
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 184</span>
|
350
354
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
|
351
355
|
<span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericEncodedTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>))
|
352
356
|
<span class="ruby-keyword kw">end</span>
|
@@ -355,21 +359,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
355
359
|
</div>
|
356
360
|
</div>
|
357
361
|
|
358
|
-
<div id="method-
|
359
|
-
<a name="
|
362
|
+
<div id="method-M000117" class="method-detail">
|
363
|
+
<a name="M000117"></a>
|
360
364
|
|
361
365
|
<div class="method-heading">
|
362
|
-
<a href="#
|
366
|
+
<a href="#M000117" class="method-signature">
|
363
367
|
<span class="method-name">file_upload</span><span class="method-args">(*args, &block)</span>
|
364
368
|
</a>
|
365
369
|
</div>
|
366
370
|
|
367
371
|
<div class="method-description">
|
368
372
|
<p><a class="source-toggle" href="#"
|
369
|
-
onclick="toggleCode('
|
370
|
-
<div class="method-source-code" id="
|
373
|
+
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
374
|
+
<div class="method-source-code" id="M000117-source">
|
371
375
|
<pre>
|
372
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
376
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 139</span>
|
373
377
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_upload</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
374
378
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">FileUploadTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
375
379
|
<span class="ruby-keyword kw">end</span>
|
@@ -378,21 +382,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
378
382
|
</div>
|
379
383
|
</div>
|
380
384
|
|
381
|
-
<div id="method-
|
382
|
-
<a name="
|
385
|
+
<div id="method-M000109" class="method-detail">
|
386
|
+
<a name="M000109"></a>
|
383
387
|
|
384
388
|
<div class="method-heading">
|
385
|
-
<a href="#
|
389
|
+
<a href="#M000109" class="method-signature">
|
386
390
|
<span class="method-name">form</span><span class="method-args">(*args, &block)</span>
|
387
391
|
</a>
|
388
392
|
</div>
|
389
393
|
|
390
394
|
<div class="method-description">
|
391
395
|
<p><a class="source-toggle" href="#"
|
392
|
-
onclick="toggleCode('
|
393
|
-
<div class="method-source-code" id="
|
396
|
+
onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
|
397
|
+
<div class="method-source-code" id="M000109-source">
|
394
398
|
<pre>
|
395
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
399
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 107</span>
|
396
400
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">form</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
397
401
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">FormTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
398
402
|
<span class="ruby-keyword kw">end</span>
|
@@ -401,21 +405,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
401
405
|
</div>
|
402
406
|
</div>
|
403
407
|
|
404
|
-
<div id="method-
|
405
|
-
<a name="
|
408
|
+
<div id="method-M000125" class="method-detail">
|
409
|
+
<a name="M000125"></a>
|
406
410
|
|
407
411
|
<div class="method-heading">
|
408
|
-
<a href="#
|
412
|
+
<a href="#M000125" class="method-signature">
|
409
413
|
<span class="method-name">image</span><span class="method-args">()</span>
|
410
414
|
</a>
|
411
415
|
</div>
|
412
416
|
|
413
417
|
<div class="method-description">
|
414
418
|
<p><a class="source-toggle" href="#"
|
415
|
-
onclick="toggleCode('
|
416
|
-
<div class="method-source-code" id="
|
419
|
+
onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
|
420
|
+
<div class="method-source-code" id="M000125-source">
|
417
421
|
<pre>
|
418
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
422
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 171</span>
|
419
423
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image</span>
|
420
424
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">ImageTag</span>.<span class="ruby-identifier">new</span>)
|
421
425
|
<span class="ruby-keyword kw">end</span>
|
@@ -424,21 +428,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
424
428
|
</div>
|
425
429
|
</div>
|
426
430
|
|
427
|
-
<div id="method-
|
428
|
-
<a name="
|
431
|
+
<div id="method-M000116" class="method-detail">
|
432
|
+
<a name="M000116"></a>
|
429
433
|
|
430
434
|
<div class="method-heading">
|
431
|
-
<a href="#
|
435
|
+
<a href="#M000116" class="method-signature">
|
432
436
|
<span class="method-name">image_button</span><span class="method-args">(*args, &block)</span>
|
433
437
|
</a>
|
434
438
|
</div>
|
435
439
|
|
436
440
|
<div class="method-description">
|
437
441
|
<p><a class="source-toggle" href="#"
|
438
|
-
onclick="toggleCode('
|
439
|
-
<div class="method-source-code" id="
|
442
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
443
|
+
<div class="method-source-code" id="M000116-source">
|
440
444
|
<pre>
|
441
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
445
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 135</span>
|
442
446
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
443
447
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">ImageButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
444
448
|
<span class="ruby-keyword kw">end</span>
|
@@ -447,21 +451,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
447
451
|
</div>
|
448
452
|
</div>
|
449
453
|
|
450
|
-
<div id="method-
|
451
|
-
<a name="
|
454
|
+
<div id="method-M000110" class="method-detail">
|
455
|
+
<a name="M000110"></a>
|
452
456
|
|
453
457
|
<div class="method-heading">
|
454
|
-
<a href="#
|
458
|
+
<a href="#M000110" class="method-signature">
|
455
459
|
<span class="method-name">input</span><span class="method-args">(*args, &block)</span>
|
456
460
|
</a>
|
457
461
|
</div>
|
458
462
|
|
459
463
|
<div class="method-description">
|
460
464
|
<p><a class="source-toggle" href="#"
|
461
|
-
onclick="toggleCode('
|
462
|
-
<div class="method-source-code" id="
|
465
|
+
onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
|
466
|
+
<div class="method-source-code" id="M000110-source">
|
463
467
|
<pre>
|
464
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
468
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 111</span>
|
465
469
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
466
470
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">InputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
467
471
|
<span class="ruby-keyword kw">end</span>
|
@@ -470,21 +474,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
470
474
|
</div>
|
471
475
|
</div>
|
472
476
|
|
473
|
-
<div id="method-
|
474
|
-
<a name="
|
477
|
+
<div id="method-M000122" class="method-detail">
|
478
|
+
<a name="M000122"></a>
|
475
479
|
|
476
480
|
<div class="method-heading">
|
477
|
-
<a href="#
|
481
|
+
<a href="#M000122" class="method-signature">
|
478
482
|
<span class="method-name">javascript</span><span class="method-args">(*args, &block)</span>
|
479
483
|
</a>
|
480
484
|
</div>
|
481
485
|
|
482
486
|
<div class="method-description">
|
483
487
|
<p><a class="source-toggle" href="#"
|
484
|
-
onclick="toggleCode('
|
485
|
-
<div class="method-source-code" id="
|
488
|
+
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
489
|
+
<div class="method-source-code" id="M000122-source">
|
486
490
|
<pre>
|
487
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
491
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 159</span>
|
488
492
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">javascript</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
489
493
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">JavascriptTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
490
494
|
<span class="ruby-keyword kw">end</span>
|
@@ -493,21 +497,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
493
497
|
</div>
|
494
498
|
</div>
|
495
499
|
|
496
|
-
<div id="method-
|
497
|
-
<a name="
|
500
|
+
<div id="method-M000126" class="method-detail">
|
501
|
+
<a name="M000126"></a>
|
498
502
|
|
499
503
|
<div class="method-heading">
|
500
|
-
<a href="#
|
504
|
+
<a href="#M000126" class="method-signature">
|
501
505
|
<span class="method-name">link_css</span><span class="method-args">(url)</span>
|
502
506
|
</a>
|
503
507
|
</div>
|
504
508
|
|
505
509
|
<div class="method-description">
|
506
510
|
<p><a class="source-toggle" href="#"
|
507
|
-
onclick="toggleCode('
|
508
|
-
<div class="method-source-code" id="
|
511
|
+
onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
|
512
|
+
<div class="method-source-code" id="M000126-source">
|
509
513
|
<pre>
|
510
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
514
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 175</span>
|
511
515
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_css</span>(<span class="ruby-identifier">url</span>)
|
512
516
|
<span class="ruby-identifier">link</span>.<span class="ruby-identifier">type</span>(<span class="ruby-value str">'text/css'</span>).<span class="ruby-identifier">rel</span>(<span class="ruby-value str">'stylesheet'</span>).<span class="ruby-identifier">href</span>(<span class="ruby-identifier">url</span>)
|
513
517
|
<span class="ruby-keyword kw">end</span>
|
@@ -516,21 +520,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
516
520
|
</div>
|
517
521
|
</div>
|
518
522
|
|
519
|
-
<div id="method-
|
520
|
-
<a name="
|
523
|
+
<div id="method-M000113" class="method-detail">
|
524
|
+
<a name="M000113"></a>
|
521
525
|
|
522
526
|
<div class="method-heading">
|
523
|
-
<a href="#
|
527
|
+
<a href="#M000113" class="method-signature">
|
524
528
|
<span class="method-name">option</span><span class="method-args">(*args, &block)</span>
|
525
529
|
</a>
|
526
530
|
</div>
|
527
531
|
|
528
532
|
<div class="method-description">
|
529
533
|
<p><a class="source-toggle" href="#"
|
530
|
-
onclick="toggleCode('
|
531
|
-
<div class="method-source-code" id="
|
534
|
+
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
535
|
+
<div class="method-source-code" id="M000113-source">
|
532
536
|
<pre>
|
533
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
537
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 123</span>
|
534
538
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">option</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
535
539
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SelectOptionTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
536
540
|
<span class="ruby-keyword kw">end</span>
|
@@ -539,21 +543,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
539
543
|
</div>
|
540
544
|
</div>
|
541
545
|
|
542
|
-
<div id="method-
|
543
|
-
<a name="
|
546
|
+
<div id="method-M000118" class="method-detail">
|
547
|
+
<a name="M000118"></a>
|
544
548
|
|
545
549
|
<div class="method-heading">
|
546
|
-
<a href="#
|
550
|
+
<a href="#M000118" class="method-signature">
|
547
551
|
<span class="method-name">page</span><span class="method-args">(*args, &block)</span>
|
548
552
|
</a>
|
549
553
|
</div>
|
550
554
|
|
551
555
|
<div class="method-description">
|
552
556
|
<p><a class="source-toggle" href="#"
|
553
|
-
onclick="toggleCode('
|
554
|
-
<div class="method-source-code" id="
|
557
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
558
|
+
<div class="method-source-code" id="M000118-source">
|
555
559
|
<pre>
|
556
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
560
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 143</span>
|
557
561
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">page</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
558
562
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">Page</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
559
563
|
<span class="ruby-keyword kw">end</span>
|
@@ -562,21 +566,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
562
566
|
</div>
|
563
567
|
</div>
|
564
568
|
|
565
|
-
<div id="method-
|
566
|
-
<a name="
|
569
|
+
<div id="method-M000123" class="method-detail">
|
570
|
+
<a name="M000123"></a>
|
567
571
|
|
568
572
|
<div class="method-heading">
|
569
|
-
<a href="#
|
573
|
+
<a href="#M000123" class="method-signature">
|
570
574
|
<span class="method-name">paragraph</span><span class="method-args">()</span>
|
571
575
|
</a>
|
572
576
|
</div>
|
573
577
|
|
574
578
|
<div class="method-description">
|
575
579
|
<p><a class="source-toggle" href="#"
|
576
|
-
onclick="toggleCode('
|
577
|
-
<div class="method-source-code" id="
|
580
|
+
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
581
|
+
<div class="method-source-code" id="M000123-source">
|
578
582
|
<pre>
|
579
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
583
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 163</span>
|
580
584
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paragraph</span>
|
581
585
|
<span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericSingleTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"p"</span>))
|
582
586
|
<span class="ruby-keyword kw">end</span>
|
@@ -585,21 +589,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
585
589
|
</div>
|
586
590
|
</div>
|
587
591
|
|
588
|
-
<div id="method-
|
589
|
-
<a name="
|
592
|
+
<div id="method-M000103" class="method-detail">
|
593
|
+
<a name="M000103"></a>
|
590
594
|
|
591
595
|
<div class="method-heading">
|
592
|
-
<a href="#
|
596
|
+
<a href="#M000103" class="method-signature">
|
593
597
|
<span class="method-name">register_callback</span><span class="method-args">(type, callback)</span>
|
594
598
|
</a>
|
595
599
|
</div>
|
596
600
|
|
597
601
|
<div class="method-description">
|
598
602
|
<p><a class="source-toggle" href="#"
|
599
|
-
onclick="toggleCode('
|
600
|
-
<div class="method-source-code" id="
|
603
|
+
onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
|
604
|
+
<div class="method-source-code" id="M000103-source">
|
601
605
|
<pre>
|
602
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
606
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 83</span>
|
603
607
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
|
604
608
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">callbacks</span>.<span class="ruby-identifier">register_for</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_component</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
|
605
609
|
<span class="ruby-keyword kw">end</span>
|
@@ -608,21 +612,44 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
608
612
|
</div>
|
609
613
|
</div>
|
610
614
|
|
611
|
-
<div id="method-
|
612
|
-
<a name="
|
615
|
+
<div id="method-M000104" class="method-detail">
|
616
|
+
<a name="M000104"></a>
|
613
617
|
|
614
618
|
<div class="method-heading">
|
615
|
-
<a href="#
|
619
|
+
<a href="#M000104" class="method-signature">
|
620
|
+
<span class="method-name">register_named_callback</span><span class="method-args">(name, type, callback)</span>
|
621
|
+
</a>
|
622
|
+
</div>
|
623
|
+
|
624
|
+
<div class="method-description">
|
625
|
+
<p><a class="source-toggle" href="#"
|
626
|
+
onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
|
627
|
+
<div class="method-source-code" id="M000104-source">
|
628
|
+
<pre>
|
629
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 87</span>
|
630
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
|
631
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">callbacks</span>.<span class="ruby-identifier">register_named_for</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_component</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>, <span class="ruby-identifier">name</span>)
|
632
|
+
<span class="ruby-keyword kw">end</span>
|
633
|
+
</pre>
|
634
|
+
</div>
|
635
|
+
</div>
|
636
|
+
</div>
|
637
|
+
|
638
|
+
<div id="method-M000130" class="method-detail">
|
639
|
+
<a name="M000130"></a>
|
640
|
+
|
641
|
+
<div class="method-heading">
|
642
|
+
<a href="#M000130" class="method-signature">
|
616
643
|
<span class="method-name">render</span><span class="method-args">(obj)</span>
|
617
644
|
</a>
|
618
645
|
</div>
|
619
646
|
|
620
647
|
<div class="method-description">
|
621
648
|
<p><a class="source-toggle" href="#"
|
622
|
-
onclick="toggleCode('
|
623
|
-
<div class="method-source-code" id="
|
649
|
+
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
650
|
+
<div class="method-source-code" id="M000130-source">
|
624
651
|
<pre>
|
625
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
652
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 188</span>
|
626
653
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">obj</span>)
|
627
654
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
|
628
655
|
<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">do_render_chain</span>(<span class="ruby-ivar">@rendering_context</span>)
|
@@ -633,21 +660,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
633
660
|
</div>
|
634
661
|
</div>
|
635
662
|
|
636
|
-
<div id="method-
|
637
|
-
<a name="
|
663
|
+
<div id="method-M000114" class="method-detail">
|
664
|
+
<a name="M000114"></a>
|
638
665
|
|
639
666
|
<div class="method-heading">
|
640
|
-
<a href="#
|
667
|
+
<a href="#M000114" class="method-signature">
|
641
668
|
<span class="method-name">select_list</span><span class="method-args">(items)</span>
|
642
669
|
</a>
|
643
670
|
</div>
|
644
671
|
|
645
672
|
<div class="method-description">
|
646
673
|
<p><a class="source-toggle" href="#"
|
647
|
-
onclick="toggleCode('
|
648
|
-
<div class="method-source-code" id="
|
674
|
+
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
675
|
+
<div class="method-source-code" id="M000114-source">
|
649
676
|
<pre>
|
650
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
677
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 127</span>
|
651
678
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_list</span>(<span class="ruby-identifier">items</span>)
|
652
679
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SelectListTag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">items</span>))
|
653
680
|
<span class="ruby-keyword kw">end</span>
|
@@ -656,21 +683,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
656
683
|
</div>
|
657
684
|
</div>
|
658
685
|
|
659
|
-
<div id="method-
|
660
|
-
<a name="
|
686
|
+
<div id="method-M000120" class="method-detail">
|
687
|
+
<a name="M000120"></a>
|
661
688
|
|
662
689
|
<div class="method-heading">
|
663
|
-
<a href="#
|
690
|
+
<a href="#M000120" class="method-signature">
|
664
691
|
<span class="method-name">space</span><span class="method-args">(n=1)</span>
|
665
692
|
</a>
|
666
693
|
</div>
|
667
694
|
|
668
695
|
<div class="method-description">
|
669
696
|
<p><a class="source-toggle" href="#"
|
670
|
-
onclick="toggleCode('
|
671
|
-
<div class="method-source-code" id="
|
697
|
+
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
698
|
+
<div class="method-source-code" id="M000120-source">
|
672
699
|
<pre>
|
673
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
700
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 151</span>
|
674
701
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">space</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
675
702
|
<span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"&nbsp;"</span><span class="ruby-operator">*</span><span class="ruby-identifier">n</span>))
|
676
703
|
<span class="ruby-keyword kw">end</span>
|
@@ -679,21 +706,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
679
706
|
</div>
|
680
707
|
</div>
|
681
708
|
|
682
|
-
<div id="method-
|
683
|
-
<a name="
|
709
|
+
<div id="method-M000115" class="method-detail">
|
710
|
+
<a name="M000115"></a>
|
684
711
|
|
685
712
|
<div class="method-heading">
|
686
|
-
<a href="#
|
713
|
+
<a href="#M000115" class="method-signature">
|
687
714
|
<span class="method-name">submit_button</span><span class="method-args">(*args, &block)</span>
|
688
715
|
</a>
|
689
716
|
</div>
|
690
717
|
|
691
718
|
<div class="method-description">
|
692
719
|
<p><a class="source-toggle" href="#"
|
693
|
-
onclick="toggleCode('
|
694
|
-
<div class="method-source-code" id="
|
720
|
+
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
721
|
+
<div class="method-source-code" id="M000115-source">
|
695
722
|
<pre>
|
696
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
723
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 131</span>
|
697
724
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
698
725
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SubmitButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
699
726
|
<span class="ruby-keyword kw">end</span>
|
@@ -702,21 +729,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
702
729
|
</div>
|
703
730
|
</div>
|
704
731
|
|
705
|
-
<div id="method-
|
706
|
-
<a name="
|
732
|
+
<div id="method-M000105" class="method-detail">
|
733
|
+
<a name="M000105"></a>
|
707
734
|
|
708
735
|
<div class="method-heading">
|
709
|
-
<a href="#
|
736
|
+
<a href="#M000105" class="method-signature">
|
710
737
|
<span class="method-name">table</span><span class="method-args">(*args, &block)</span>
|
711
738
|
</a>
|
712
739
|
</div>
|
713
740
|
|
714
741
|
<div class="method-description">
|
715
742
|
<p><a class="source-toggle" href="#"
|
716
|
-
onclick="toggleCode('
|
717
|
-
<div class="method-source-code" id="
|
743
|
+
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
744
|
+
<div class="method-source-code" id="M000105-source">
|
718
745
|
<pre>
|
719
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
746
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 91</span>
|
720
747
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
721
748
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
722
749
|
<span class="ruby-keyword kw">end</span>
|
@@ -725,21 +752,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
725
752
|
</div>
|
726
753
|
</div>
|
727
754
|
|
728
|
-
<div id="method-
|
729
|
-
<a name="
|
755
|
+
<div id="method-M000107" class="method-detail">
|
756
|
+
<a name="M000107"></a>
|
730
757
|
|
731
758
|
<div class="method-heading">
|
732
|
-
<a href="#
|
759
|
+
<a href="#M000107" class="method-signature">
|
733
760
|
<span class="method-name">table_data</span><span class="method-args">(*args, &block)</span>
|
734
761
|
</a>
|
735
762
|
</div>
|
736
763
|
|
737
764
|
<div class="method-description">
|
738
765
|
<p><a class="source-toggle" href="#"
|
739
|
-
onclick="toggleCode('
|
740
|
-
<div class="method-source-code" id="
|
766
|
+
onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
|
767
|
+
<div class="method-source-code" id="M000107-source">
|
741
768
|
<pre>
|
742
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
769
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 99</span>
|
743
770
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_data</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
744
771
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableDataTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
745
772
|
<span class="ruby-keyword kw">end</span>
|
@@ -748,21 +775,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
748
775
|
</div>
|
749
776
|
</div>
|
750
777
|
|
751
|
-
<div id="method-
|
752
|
-
<a name="
|
778
|
+
<div id="method-M000108" class="method-detail">
|
779
|
+
<a name="M000108"></a>
|
753
780
|
|
754
781
|
<div class="method-heading">
|
755
|
-
<a href="#
|
782
|
+
<a href="#M000108" class="method-signature">
|
756
783
|
<span class="method-name">table_header</span><span class="method-args">(*args, &block)</span>
|
757
784
|
</a>
|
758
785
|
</div>
|
759
786
|
|
760
787
|
<div class="method-description">
|
761
788
|
<p><a class="source-toggle" href="#"
|
762
|
-
onclick="toggleCode('
|
763
|
-
<div class="method-source-code" id="
|
789
|
+
onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
|
790
|
+
<div class="method-source-code" id="M000108-source">
|
764
791
|
<pre>
|
765
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
792
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 103</span>
|
766
793
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_header</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
767
794
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableHeaderTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
768
795
|
<span class="ruby-keyword kw">end</span>
|
@@ -771,21 +798,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
771
798
|
</div>
|
772
799
|
</div>
|
773
800
|
|
774
|
-
<div id="method-
|
775
|
-
<a name="
|
801
|
+
<div id="method-M000106" class="method-detail">
|
802
|
+
<a name="M000106"></a>
|
776
803
|
|
777
804
|
<div class="method-heading">
|
778
|
-
<a href="#
|
805
|
+
<a href="#M000106" class="method-signature">
|
779
806
|
<span class="method-name">table_row</span><span class="method-args">(*args, &block)</span>
|
780
807
|
</a>
|
781
808
|
</div>
|
782
809
|
|
783
810
|
<div class="method-description">
|
784
811
|
<p><a class="source-toggle" href="#"
|
785
|
-
onclick="toggleCode('
|
786
|
-
<div class="method-source-code" id="
|
812
|
+
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
813
|
+
<div class="method-source-code" id="M000106-source">
|
787
814
|
<pre>
|
788
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
815
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 95</span>
|
789
816
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_row</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
790
817
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableRowTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
791
818
|
<span class="ruby-keyword kw">end</span>
|
@@ -794,21 +821,55 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
794
821
|
</div>
|
795
822
|
</div>
|
796
823
|
|
797
|
-
<div id="method-
|
798
|
-
<a name="
|
824
|
+
<div id="method-M000131" class="method-detail">
|
825
|
+
<a name="M000131"></a>
|
826
|
+
|
827
|
+
<div class="method-heading">
|
828
|
+
<a href="#M000131" class="method-signature">
|
829
|
+
<span class="method-name">template</span><span class="method-args">(filename)</span>
|
830
|
+
</a>
|
831
|
+
</div>
|
832
|
+
|
833
|
+
<div class="method-description">
|
834
|
+
<p><a class="source-toggle" href="#"
|
835
|
+
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
836
|
+
<div class="method-source-code" id="M000131-source">
|
837
|
+
<pre>
|
838
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 196</span>
|
839
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">template</span>(<span class="ruby-identifier">filename</span>)
|
840
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Template file #{ filename } not found!"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">filename</span>)
|
841
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
|
842
|
+
<span class="ruby-identifier">compiler</span> = <span class="ruby-constant">ERB</span><span class="ruby-operator">::</span><span class="ruby-constant">Compiler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>)
|
843
|
+
<span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">put_cmd</span> = <span class="ruby-value str">'r << '</span>
|
844
|
+
<span class="ruby-identifier">src</span> = <span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">compile</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">filename</span>))
|
845
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
|
846
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"-------------------------"</span>
|
847
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">src</span>
|
848
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"-------------------------"</span>
|
849
|
+
<span class="ruby-keyword kw">end</span>
|
850
|
+
<span class="ruby-ivar">@current_component</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-identifier">src</span>, <span class="ruby-value str">'(erb)'</span>, <span class="ruby-value">1</span>)
|
851
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
852
|
+
<span class="ruby-keyword kw">end</span>
|
853
|
+
</pre>
|
854
|
+
</div>
|
855
|
+
</div>
|
856
|
+
</div>
|
857
|
+
|
858
|
+
<div id="method-M000127" class="method-detail">
|
859
|
+
<a name="M000127"></a>
|
799
860
|
|
800
861
|
<div class="method-heading">
|
801
|
-
<a href="#
|
862
|
+
<a href="#M000127" class="method-signature">
|
802
863
|
<span class="method-name">text</span><span class="method-args">(str)</span>
|
803
864
|
</a>
|
804
865
|
</div>
|
805
866
|
|
806
867
|
<div class="method-description">
|
807
868
|
<p><a class="source-toggle" href="#"
|
808
|
-
onclick="toggleCode('
|
809
|
-
<div class="method-source-code" id="
|
869
|
+
onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
|
870
|
+
<div class="method-source-code" id="M000127-source">
|
810
871
|
<pre>
|
811
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
872
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 179</span>
|
812
873
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
|
813
874
|
<span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>))
|
814
875
|
<span class="ruby-keyword kw">end</span>
|
@@ -817,21 +878,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
817
878
|
</div>
|
818
879
|
</div>
|
819
880
|
|
820
|
-
<div id="method-
|
821
|
-
<a name="
|
881
|
+
<div id="method-M000112" class="method-detail">
|
882
|
+
<a name="M000112"></a>
|
822
883
|
|
823
884
|
<div class="method-heading">
|
824
|
-
<a href="#
|
885
|
+
<a href="#M000112" class="method-signature">
|
825
886
|
<span class="method-name">text_area</span><span class="method-args">(*args, &block)</span>
|
826
887
|
</a>
|
827
888
|
</div>
|
828
889
|
|
829
890
|
<div class="method-description">
|
830
891
|
<p><a class="source-toggle" href="#"
|
831
|
-
onclick="toggleCode('
|
832
|
-
<div class="method-source-code" id="
|
892
|
+
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
893
|
+
<div class="method-source-code" id="M000112-source">
|
833
894
|
<pre>
|
834
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
895
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 119</span>
|
835
896
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_area</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
836
897
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TextAreaTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
837
898
|
<span class="ruby-keyword kw">end</span>
|
@@ -840,21 +901,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
840
901
|
</div>
|
841
902
|
</div>
|
842
903
|
|
843
|
-
<div id="method-
|
844
|
-
<a name="
|
904
|
+
<div id="method-M000111" class="method-detail">
|
905
|
+
<a name="M000111"></a>
|
845
906
|
|
846
907
|
<div class="method-heading">
|
847
|
-
<a href="#
|
908
|
+
<a href="#M000111" class="method-signature">
|
848
909
|
<span class="method-name">text_input</span><span class="method-args">(*args, &block)</span>
|
849
910
|
</a>
|
850
911
|
</div>
|
851
912
|
|
852
913
|
<div class="method-description">
|
853
914
|
<p><a class="source-toggle" href="#"
|
854
|
-
onclick="toggleCode('
|
855
|
-
<div class="method-source-code" id="
|
915
|
+
onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
|
916
|
+
<div class="method-source-code" id="M000111-source">
|
856
917
|
<pre>
|
857
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
918
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 115</span>
|
858
919
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
859
920
|
<span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TextInputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
860
921
|
<span class="ruby-keyword kw">end</span>
|
@@ -863,24 +924,47 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
863
924
|
</div>
|
864
925
|
</div>
|
865
926
|
|
866
|
-
<div id="method-
|
867
|
-
<a name="
|
927
|
+
<div id="method-M000100" class="method-detail">
|
928
|
+
<a name="M000100"></a>
|
868
929
|
|
869
930
|
<div class="method-heading">
|
870
|
-
<a href="#
|
931
|
+
<a href="#M000100" class="method-signature">
|
871
932
|
<span class="method-name">url_for_callback</span><span class="method-args">(callback)</span>
|
872
933
|
</a>
|
873
934
|
</div>
|
874
935
|
|
875
936
|
<div class="method-description">
|
876
937
|
<p><a class="source-toggle" href="#"
|
877
|
-
onclick="toggleCode('
|
878
|
-
<div class="method-source-code" id="
|
938
|
+
onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
|
939
|
+
<div class="method-source-code" id="M000100-source">
|
879
940
|
<pre>
|
880
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
941
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 69</span>
|
881
942
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback</span>(<span class="ruby-identifier">callback</span>)
|
943
|
+
<span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">:action</span>, <span class="ruby-identifier">callback</span>))
|
944
|
+
<span class="ruby-keyword kw">end</span>
|
945
|
+
</pre>
|
946
|
+
</div>
|
947
|
+
</div>
|
948
|
+
</div>
|
949
|
+
|
950
|
+
<div id="method-M000102" class="method-detail">
|
951
|
+
<a name="M000102"></a>
|
952
|
+
|
953
|
+
<div class="method-heading">
|
954
|
+
<a href="#M000102" class="method-signature">
|
955
|
+
<span class="method-name">url_for_callback_id</span><span class="method-args">(callback_id)</span>
|
956
|
+
</a>
|
957
|
+
</div>
|
958
|
+
|
959
|
+
<div class="method-description">
|
960
|
+
<p><a class="source-toggle" href="#"
|
961
|
+
onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
|
962
|
+
<div class="method-source-code" id="M000102-source">
|
963
|
+
<pre>
|
964
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 77</span>
|
965
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">callback_id</span>)
|
882
966
|
<span class="ruby-identifier">req</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">request</span>
|
883
|
-
<span class="ruby-identifier">url</span> = <span class="ruby-identifier">req</span>.<span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">req</span>.<span class="ruby-identifier">request_handler_id</span>, <span class="ruby-identifier">req</span>.<span class="ruby-identifier">page_id</span>, <span class="ruby-identifier">
|
967
|
+
<span class="ruby-identifier">url</span> = <span class="ruby-identifier">req</span>.<span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">req</span>.<span class="ruby-identifier">request_handler_id</span>, <span class="ruby-identifier">req</span>.<span class="ruby-identifier">page_id</span>, <span class="ruby-identifier">callback_id</span>)
|
884
968
|
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">url</span>
|
885
969
|
<span class="ruby-keyword kw">end</span>
|
886
970
|
</pre>
|
@@ -888,23 +972,46 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
|
|
888
972
|
</div>
|
889
973
|
</div>
|
890
974
|
|
975
|
+
<div id="method-M000101" class="method-detail">
|
976
|
+
<a name="M000101"></a>
|
977
|
+
|
978
|
+
<div class="method-heading">
|
979
|
+
<a href="#M000101" class="method-signature">
|
980
|
+
<span class="method-name">url_for_named_callback</span><span class="method-args">(name, callback)</span>
|
981
|
+
</a>
|
982
|
+
</div>
|
983
|
+
|
984
|
+
<div class="method-description">
|
985
|
+
<p><a class="source-toggle" href="#"
|
986
|
+
onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
|
987
|
+
<div class="method-source-code" id="M000101-source">
|
988
|
+
<pre>
|
989
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 73</span>
|
990
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">callback</span>)
|
991
|
+
<span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">register_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">:action</span>, <span class="ruby-identifier">callback</span>))
|
992
|
+
<span class="ruby-keyword kw">end</span>
|
993
|
+
</pre>
|
994
|
+
</div>
|
995
|
+
</div>
|
996
|
+
</div>
|
997
|
+
|
891
998
|
<h3 class="section-bar">Private Instance methods</h3>
|
892
999
|
|
893
|
-
<div id="method-
|
894
|
-
<a name="
|
1000
|
+
<div id="method-M000132" class="method-detail">
|
1001
|
+
<a name="M000132"></a>
|
895
1002
|
|
896
1003
|
<div class="method-heading">
|
897
|
-
<a href="#
|
1004
|
+
<a href="#M000132" class="method-signature">
|
898
1005
|
<span class="method-name">handle</span><span class="method-args">(brush, *args, &block)</span>
|
899
1006
|
</a>
|
900
1007
|
</div>
|
901
1008
|
|
902
1009
|
<div class="method-description">
|
903
1010
|
<p><a class="source-toggle" href="#"
|
904
|
-
onclick="toggleCode('
|
905
|
-
<div class="method-source-code" id="
|
1011
|
+
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
1012
|
+
<div class="method-source-code" id="M000132-source">
|
906
1013
|
<pre>
|
907
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line
|
1014
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 213</span>
|
908
1015
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">handle</span>(<span class="ruby-identifier">brush</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
909
1016
|
<span class="ruby-identifier">set_brush</span>(<span class="ruby-identifier">brush</span>)
|
910
1017
|
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">block</span>
|