wee 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +286 -0
- data/Features +185 -0
- data/doc/rdoc/classes/ActionView.html +107 -0
- data/doc/rdoc/classes/ActionView/Base.html +133 -0
- data/doc/rdoc/classes/Array.html +7 -59
- 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/Hash.html +120 -0
- data/doc/rdoc/classes/Main.html +58 -34
- data/doc/rdoc/classes/Object.html +12 -12
- data/doc/rdoc/classes/OgScaffolder.html +165 -166
- data/doc/rdoc/classes/OgScaffolder/Editor.html +112 -112
- data/doc/rdoc/classes/String.html +7 -59
- data/doc/rdoc/classes/Struct.html +14 -14
- data/doc/rdoc/classes/Wee.html +70 -6
- data/doc/rdoc/classes/Wee/AbstractSession.html +502 -0
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +11 -11
- data/doc/rdoc/classes/Wee/Application.html +139 -84
- data/doc/rdoc/classes/Wee/Brush.html +21 -18
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +90 -17
- data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +162 -0
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +41 -17
- 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 +112 -86
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +160 -0
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +21 -21
- 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/RadioButtonTag.html +234 -0
- data/doc/rdoc/classes/Wee/Brush/RadioButtonTag/RadioGroup.html +207 -0
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +124 -28
- data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
- 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 +42 -42
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -15
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +38 -38
- data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
- data/doc/rdoc/classes/Wee/CanvasMixin.html +225 -0
- data/doc/rdoc/classes/Wee/Component.html +202 -201
- data/doc/rdoc/classes/Wee/Component/OnAnswer.html +7 -7
- data/doc/rdoc/classes/Wee/ComponentDispatcher.html +289 -0
- data/doc/rdoc/classes/Wee/ComponentRunner.html +321 -0
- data/doc/rdoc/classes/Wee/Context.html +63 -3
- data/doc/rdoc/classes/Wee/Decoration.html +45 -45
- data/doc/rdoc/classes/Wee/Delegate.html +30 -30
- data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +164 -0
- data/doc/rdoc/classes/Wee/ErrorResponse.html +16 -16
- data/doc/rdoc/classes/Wee/Examples.html +114 -0
- data/doc/rdoc/classes/Wee/Examples/Calculator.html +319 -0
- data/doc/rdoc/classes/Wee/Examples/Counter.html +289 -0
- data/doc/rdoc/classes/Wee/Examples/EditableCounter.html +210 -0
- data/doc/rdoc/classes/Wee/Examples/Window.html +346 -0
- data/doc/rdoc/classes/Wee/FastCGIAdaptor.html +227 -0
- data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
- data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
- data/doc/rdoc/classes/Wee/HtmlCanvasRenderer.html +1230 -0
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/IdGenerator.html +148 -0
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +27 -14
- data/doc/rdoc/classes/Wee/LoginDecoration.html +261 -0
- data/doc/rdoc/classes/Wee/Md5IdGenerator.html +14 -14
- data/doc/rdoc/classes/Wee/MessageBox.html +14 -14
- data/doc/rdoc/classes/Wee/Nitro.html +114 -0
- data/doc/rdoc/classes/Wee/Nitro/ControllerClassMixin.html +192 -0
- data/doc/rdoc/classes/Wee/Nitro/ControllerMixin.html +345 -0
- data/doc/rdoc/classes/Wee/Nitro/FormTag.html +155 -0
- data/doc/rdoc/classes/Wee/Nitro/HtmlCanvasRenderer.html +178 -0
- data/doc/rdoc/classes/Wee/Page.html +4 -0
- data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
- data/doc/rdoc/classes/Wee/PagelessApplication.html +13 -11
- data/doc/rdoc/classes/Wee/PagelessComponentDriver.html +296 -0
- data/doc/rdoc/classes/Wee/PagelessRequest.html +52 -21
- data/doc/rdoc/classes/Wee/PagelessSession.html +130 -91
- data/doc/rdoc/classes/Wee/Pager.html +534 -0
- data/doc/rdoc/classes/Wee/Presenter.html +482 -298
- data/doc/rdoc/classes/Wee/Rails.html +114 -0
- data/doc/rdoc/classes/Wee/Rails/ControllerClassMixin.html +192 -0
- data/doc/rdoc/classes/Wee/Rails/ControllerMixin.html +342 -0
- data/doc/rdoc/classes/Wee/Rails/FormTag.html +155 -0
- data/doc/rdoc/classes/Wee/Rails/HtmlCanvasRenderer.html +177 -0
- data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
- data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
- data/doc/rdoc/classes/Wee/Renderer.html +208 -0
- data/doc/rdoc/classes/Wee/RenderingContext.html +175 -3
- data/doc/rdoc/classes/Wee/Request.html +197 -46
- data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
- data/doc/rdoc/classes/Wee/Response.html +44 -43
- data/doc/rdoc/classes/Wee/Session.html +296 -402
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +14 -14
- data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
- data/doc/rdoc/classes/Wee/Utils.html +22 -22
- data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
- data/doc/rdoc/classes/Wee/ValueHolder.html +19 -19
- data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +72 -46
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/INSTALL.html +1 -1
- data/doc/rdoc/files/README.html +8 -12
- data/doc/rdoc/files/lib/cache/cache_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/abstractsession_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/adaptors/fastcgi_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/adaptors/nitro_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/adaptors/rails_rb.html +101 -0
- 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/component_dispatcher_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/login_decoration_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/pager_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components_rb.html +4 -1
- data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/continuation_rb.html +1 -1
- 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/componentrunner_rb.html +110 -0
- data/doc/rdoc/files/lib/wee/core/context_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/idgen_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/page_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/presenter_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/renderer_rb.html +107 -0
- data/doc/rdoc/files/lib/wee/core/snapshot_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/valueholder_rb.html +2 -2
- data/doc/rdoc/files/lib/wee/core_ext_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core_rb.html +7 -14
- data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/examples/calculator_rb.html +107 -0
- data/doc/rdoc/files/lib/wee/examples/counter_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/examples/editable_counter_rb.html +114 -0
- data/doc/rdoc/files/lib/wee/examples/window_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/page_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/pageless/application_rb.html +8 -1
- data/doc/rdoc/files/lib/wee/pageless/request_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/pageless/session_rb.html +2 -1
- data/doc/rdoc/files/lib/wee/pageless_rb.html +1 -1
- 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/renderer/html/writer_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/request_rb.html +5 -4
- data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/response_rb.html +2 -1
- data/doc/rdoc/files/lib/wee/session_rb.html +2 -3
- data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +2 -2
- data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/snapshot_ext_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/template_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/cache_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils_rb.html +1 -1
- data/doc/rdoc/files/lib/wee_rb.html +5 -3
- data/doc/rdoc/fr_class_index.html +34 -2
- data/doc/rdoc/fr_file_index.html +17 -1
- data/doc/rdoc/fr_method_index.html +464 -314
- data/examples/ajax/ajax.rb +1 -1
- data/examples/demo.rb +47 -0
- data/examples/{calendar.rb → demo/calendar.rb} +89 -97
- data/examples/{example.rb → demo/example.rb} +17 -97
- data/examples/dispatcher.rb +37 -0
- data/examples/draw.rb +14 -11
- data/examples/nitro/run.rb +42 -0
- data/examples/radio.rb +44 -0
- data/examples/test.rb +3 -27
- data/lib/wee.rb +15 -3
- data/lib/wee/adaptors/nitro.rb +154 -0
- data/lib/wee/adaptors/rails.rb +154 -0
- data/lib/wee/application.rb +22 -20
- data/lib/wee/components.rb +3 -0
- data/lib/wee/components/component_dispatcher.rb +46 -0
- data/lib/wee/components/login_decoration.rb +35 -0
- data/lib/wee/components/messagebox.rb +2 -2
- data/lib/wee/components/pager.rb +102 -0
- data/lib/wee/continuation/core/component.rb +13 -12
- data/lib/wee/continuation/session.rb +11 -19
- data/lib/wee/core.rb +8 -7
- data/lib/wee/core/component.rb +8 -28
- data/lib/wee/core/componentrunner.rb +73 -0
- data/lib/wee/core/context.rb +27 -0
- data/lib/wee/core/idgen.rb +5 -0
- data/lib/wee/core/page.rb +1 -0
- data/lib/wee/core/presenter.rb +10 -126
- data/lib/wee/core/renderer.rb +23 -0
- data/lib/wee/core_ext.rb +122 -0
- data/lib/wee/databases/og/scaffolder.rb +0 -1
- data/lib/wee/examples/calculator.rb +70 -0
- data/lib/wee/examples/counter.rb +33 -0
- data/lib/wee/examples/editable_counter.rb +31 -0
- data/{examples → lib/wee/examples}/window.rb +29 -23
- data/lib/wee/idgen/md5.rb +1 -1
- data/lib/wee/idgen/simple.rb +1 -1
- data/lib/wee/pageless/session.rb +2 -3
- data/lib/wee/renderer/html/brushes.rb +142 -22
- data/lib/wee/renderer/html/canvas.rb +57 -19
- data/lib/wee/response.rb +3 -2
- data/lib/wee/session.rb +10 -54
- data/lib/wee/skeleton/og/components/main.rb +5 -1
- data/lib/wee/skeleton/og/conf/db.rb +1 -1
- data/lib/wee/snapshot_ext.rb +4 -10
- data/lib/wee/template.rb +19 -5
- data/lib/wee/utils/helper.rb +2 -2
- metadata +90 -13
- data/examples/calculator.rb +0 -67
- data/lib/wee/context.rb +0 -2
@@ -84,9 +84,9 @@
|
|
84
84
|
<p>
|
85
85
|
A <a href="AnswerDecoration.html">Wee::AnswerDecoration</a> is wrapped
|
86
86
|
around a component that will call <a
|
87
|
-
href="Component.html#
|
87
|
+
href="Component.html#M000341">Component#answer</a>. This makes it possible
|
88
88
|
to use such components without the need to call them (<a
|
89
|
-
href="Component.html#
|
89
|
+
href="Component.html#M000340">Component#call</a>), e.g. as child components
|
90
90
|
of other components.
|
91
91
|
</p>
|
92
92
|
|
@@ -99,7 +99,7 @@ of other components.
|
|
99
99
|
<h3 class="section-bar">Methods</h3>
|
100
100
|
|
101
101
|
<div class="name-list">
|
102
|
-
<a href="#
|
102
|
+
<a href="#M000168">process_callbacks</a>
|
103
103
|
</div>
|
104
104
|
</div>
|
105
105
|
|
@@ -125,7 +125,7 @@ of other components.
|
|
125
125
|
<td class="context-item-desc">
|
126
126
|
When a component answers, <tt>on_answer.call(args)</tt> will be executed
|
127
127
|
(unless nil), where <tt>args</tt> are the arguments passed to <a
|
128
|
-
href="Component.html#
|
128
|
+
href="Component.html#M000341">Component#answer</a>. Note that no snapshot
|
129
129
|
of on_answer is taken, so you should avoid modifying it!
|
130
130
|
|
131
131
|
</td>
|
@@ -140,22 +140,22 @@ of on_answer is taken, so you should avoid modifying it!
|
|
140
140
|
<div id="methods">
|
141
141
|
<h3 class="section-bar">Public Instance methods</h3>
|
142
142
|
|
143
|
-
<div id="method-
|
144
|
-
<a name="
|
143
|
+
<div id="method-M000168" class="method-detail">
|
144
|
+
<a name="M000168"></a>
|
145
145
|
|
146
146
|
<div class="method-heading">
|
147
|
-
<a href="#
|
148
|
-
<span class="method-name">process_callbacks</span><span class="method-args">(
|
147
|
+
<a href="#M000168" class="method-signature">
|
148
|
+
<span class="method-name">process_callbacks</span><span class="method-args">(&block)</span>
|
149
149
|
</a>
|
150
150
|
</div>
|
151
151
|
|
152
152
|
<div class="method-description">
|
153
153
|
<p><a class="source-toggle" href="#"
|
154
|
-
onclick="toggleCode('
|
155
|
-
<div class="method-source-code" id="
|
154
|
+
onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
|
155
|
+
<div class="method-source-code" id="M000168-source">
|
156
156
|
<pre>
|
157
157
|
<span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 131</span>
|
158
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">
|
158
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
159
159
|
<span class="ruby-identifier">args</span> = <span class="ruby-identifier">catch</span>(<span class="ruby-identifier">:wee_answer</span>) { <span class="ruby-keyword kw">super</span>; <span class="ruby-keyword kw">nil</span> }
|
160
160
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
161
161
|
<span class="ruby-comment cmt"># return to the calling component </span>
|
@@ -95,7 +95,7 @@ the correct handler by examining the request.
|
|
95
95
|
<div id="contents-list">
|
96
96
|
<h3 class="section-bar">Contents</h3>
|
97
97
|
<ul>
|
98
|
-
<li><a href="#
|
98
|
+
<li><a href="#SEC00022">Properties</a></li>
|
99
99
|
</ul>
|
100
100
|
</div>
|
101
101
|
|
@@ -103,13 +103,16 @@ the correct handler by examining the request.
|
|
103
103
|
<h3 class="section-bar">Methods</h3>
|
104
104
|
|
105
105
|
<div class="name-list">
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
106
|
+
<a href="#M000293">default_request_handler</a>
|
107
|
+
<a href="#M000301">garbage_collect_handlers</a>
|
108
|
+
<a href="#M000299">get_property</a>
|
109
|
+
<a href="#M000295">handle_request</a>
|
110
|
+
<a href="#M000296">insert_new_request_handler</a>
|
111
|
+
<a href="#M000294">new</a>
|
112
|
+
<a href="#M000297">properties</a>
|
113
|
+
<a href="#M000298">properties=</a>
|
114
|
+
<a href="#M000302">request_handler_expired</a>
|
115
|
+
<a href="#M000300">unique_request_handler_id</a>
|
113
116
|
</div>
|
114
117
|
</div>
|
115
118
|
|
@@ -155,11 +158,11 @@ The maximum number of request handlers
|
|
155
158
|
<div id="methods">
|
156
159
|
<h3 class="section-bar">Public Class methods</h3>
|
157
160
|
|
158
|
-
<div id="method-
|
159
|
-
<a name="
|
161
|
+
<div id="method-M000294" class="method-detail">
|
162
|
+
<a name="M000294"></a>
|
160
163
|
|
161
164
|
<div class="method-heading">
|
162
|
-
<a href="#
|
165
|
+
<a href="#M000294" class="method-signature">
|
163
166
|
<span class="method-name">new</span><span class="method-args">(&block)</span>
|
164
167
|
</a>
|
165
168
|
</div>
|
@@ -176,8 +179,8 @@ Creates a new application. The block is used to initialize the attributes:
|
|
176
179
|
}
|
177
180
|
</pre>
|
178
181
|
<p><a class="source-toggle" href="#"
|
179
|
-
onclick="toggleCode('
|
180
|
-
<div class="method-source-code" id="
|
182
|
+
onclick="toggleCode('M000294-source');return false;">[Source]</a></p>
|
183
|
+
<div class="method-source-code" id="M000294-source">
|
181
184
|
<pre>
|
182
185
|
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 34</span>
|
183
186
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -203,11 +206,11 @@ Creates a new application. The block is used to initialize the attributes:
|
|
203
206
|
|
204
207
|
<h3 class="section-bar">Public Instance methods</h3>
|
205
208
|
|
206
|
-
<div id="method-
|
207
|
-
<a name="
|
209
|
+
<div id="method-M000293" class="method-detail">
|
210
|
+
<a name="M000293"></a>
|
208
211
|
|
209
212
|
<div class="method-heading">
|
210
|
-
<a href="#
|
213
|
+
<a href="#M000293" class="method-signature">
|
211
214
|
<span class="method-name">default_request_handler</span><span class="method-args">(&block)</span>
|
212
215
|
</a>
|
213
216
|
</div>
|
@@ -218,8 +221,8 @@ Get or set the default request handler. The default request handler is used
|
|
218
221
|
if no request handler id is given in a request.
|
219
222
|
</p>
|
220
223
|
<p><a class="source-toggle" href="#"
|
221
|
-
onclick="toggleCode('
|
222
|
-
<div class="method-source-code" id="
|
224
|
+
onclick="toggleCode('M000293-source');return false;">[Source]</a></p>
|
225
|
+
<div class="method-source-code" id="M000293-source">
|
223
226
|
<pre>
|
224
227
|
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 18</span>
|
225
228
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_request_handler</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -234,19 +237,19 @@ if no request handler id is given in a request.
|
|
234
237
|
</div>
|
235
238
|
</div>
|
236
239
|
|
237
|
-
<div id="method-
|
238
|
-
<a name="
|
240
|
+
<div id="method-M000295" class="method-detail">
|
241
|
+
<a name="M000295"></a>
|
239
242
|
|
240
243
|
<div class="method-heading">
|
241
|
-
<a href="#
|
244
|
+
<a href="#M000295" class="method-signature">
|
242
245
|
<span class="method-name">handle_request</span><span class="method-args">(context)</span>
|
243
246
|
</a>
|
244
247
|
</div>
|
245
248
|
|
246
249
|
<div class="method-description">
|
247
250
|
<p><a class="source-toggle" href="#"
|
248
|
-
onclick="toggleCode('
|
249
|
-
<div class="method-source-code" id="
|
251
|
+
onclick="toggleCode('M000295-source');return false;">[Source]</a></p>
|
252
|
+
<div class="method-source-code" id="M000295-source">
|
250
253
|
<pre>
|
251
254
|
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 51</span>
|
252
255
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">handle_request</span>(<span class="ruby-identifier">context</span>)
|
@@ -258,26 +261,9 @@ if no request handler id is given in a request.
|
|
258
261
|
<span class="ruby-comment cmt"># No id was given -> check whether the maximum number of request-handlers</span>
|
259
262
|
<span class="ruby-comment cmt"># limit is reached. if not, create new id and handler</span>
|
260
263
|
|
261
|
-
<span class="ruby-ivar">@
|
262
|
-
|
263
|
-
|
264
|
-
<span class="ruby-identifier">garbage_collect_handlers</span>()
|
265
|
-
|
266
|
-
<span class="ruby-comment cmt"># ...and test again</span>
|
267
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@request_handlers</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@max_request_handlers</span>
|
268
|
-
<span class="ruby-comment cmt"># TODO: show a custom error message</span>
|
269
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"maximum number of request-handlers reached"</span>
|
270
|
-
<span class="ruby-keyword kw">end</span>
|
271
|
-
<span class="ruby-keyword kw">end</span>
|
272
|
-
|
273
|
-
<span class="ruby-identifier">request_handler_id</span> = <span class="ruby-identifier">unique_request_handler_id</span>()
|
274
|
-
<span class="ruby-identifier">request_handler</span> = <span class="ruby-ivar">@default_request_handler</span>.<span class="ruby-identifier">call</span>
|
275
|
-
<span class="ruby-identifier">request_handler</span>.<span class="ruby-identifier">id</span> = <span class="ruby-identifier">request_handler_id</span>
|
276
|
-
<span class="ruby-identifier">request_handler</span>.<span class="ruby-identifier">application</span> = <span class="ruby-keyword kw">self</span>
|
277
|
-
<span class="ruby-ivar">@request_handlers</span>[<span class="ruby-identifier">request_handler_id</span>] = <span class="ruby-identifier">request_handler</span>
|
278
|
-
}
|
279
|
-
|
280
|
-
<span class="ruby-identifier">context</span>.<span class="ruby-identifier">request</span>.<span class="ruby-identifier">request_handler_id</span> = <span class="ruby-identifier">request_handler_id</span>
|
264
|
+
<span class="ruby-identifier">request_handler</span> = <span class="ruby-ivar">@default_request_handler</span>.<span class="ruby-identifier">call</span>
|
265
|
+
<span class="ruby-identifier">insert_new_request_handler</span>(<span class="ruby-identifier">request_handler</span>)
|
266
|
+
<span class="ruby-identifier">context</span>.<span class="ruby-identifier">request</span>.<span class="ruby-identifier">request_handler_id</span> = <span class="ruby-identifier">request_handler</span>.<span class="ruby-identifier">id</span>
|
281
267
|
<span class="ruby-identifier">handle_request</span>(<span class="ruby-identifier">context</span>)
|
282
268
|
<span class="ruby-keyword kw">return</span>
|
283
269
|
|
@@ -308,10 +294,48 @@ if no request handler id is given in a request.
|
|
308
294
|
</div>
|
309
295
|
</div>
|
310
296
|
|
297
|
+
<div id="method-M000296" class="method-detail">
|
298
|
+
<a name="M000296"></a>
|
299
|
+
|
300
|
+
<div class="method-heading">
|
301
|
+
<a href="#M000296" class="method-signature">
|
302
|
+
<span class="method-name">insert_new_request_handler</span><span class="method-args">(request_handler)</span>
|
303
|
+
</a>
|
304
|
+
</div>
|
305
|
+
|
306
|
+
<div class="method-description">
|
307
|
+
<p><a class="source-toggle" href="#"
|
308
|
+
onclick="toggleCode('M000296-source');return false;">[Source]</a></p>
|
309
|
+
<div class="method-source-code" id="M000296-source">
|
310
|
+
<pre>
|
311
|
+
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 89</span>
|
312
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert_new_request_handler</span>(<span class="ruby-identifier">request_handler</span>)
|
313
|
+
<span class="ruby-ivar">@mutex</span>.<span class="ruby-identifier">synchronize</span> {
|
314
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@max_request_handlers</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@request_handlers</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@max_request_handlers</span>
|
315
|
+
<span class="ruby-comment cmt"># limit reached -> remove non-alive handlers...</span>
|
316
|
+
<span class="ruby-identifier">garbage_collect_handlers</span>()
|
317
|
+
|
318
|
+
<span class="ruby-comment cmt"># ...and test again</span>
|
319
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@request_handlers</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@max_request_handlers</span>
|
320
|
+
<span class="ruby-comment cmt"># TODO: show a custom error message</span>
|
321
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"maximum number of request-handlers reached"</span>
|
322
|
+
<span class="ruby-keyword kw">end</span>
|
323
|
+
<span class="ruby-keyword kw">end</span>
|
324
|
+
|
325
|
+
<span class="ruby-identifier">request_handler</span>.<span class="ruby-identifier">id</span> = <span class="ruby-identifier">unique_request_handler_id</span>()
|
326
|
+
<span class="ruby-identifier">request_handler</span>.<span class="ruby-identifier">application</span> = <span class="ruby-keyword kw">self</span>
|
327
|
+
<span class="ruby-ivar">@request_handlers</span>[<span class="ruby-identifier">request_handler</span>.<span class="ruby-identifier">id</span>] = <span class="ruby-identifier">request_handler</span>
|
328
|
+
}
|
329
|
+
<span class="ruby-keyword kw">end</span>
|
330
|
+
</pre>
|
331
|
+
</div>
|
332
|
+
</div>
|
333
|
+
</div>
|
334
|
+
|
311
335
|
|
312
336
|
</div>
|
313
337
|
<div id="section">
|
314
|
-
<h2 class="section-title"><a name="
|
338
|
+
<h2 class="section-title"><a name="SEC00022">Properties</a></h2>
|
315
339
|
<div class="section-comment">
|
316
340
|
|
317
341
|
</div>
|
@@ -320,19 +344,6 @@ if no request handler id is given in a request.
|
|
320
344
|
|
321
345
|
|
322
346
|
|
323
|
-
<div id="attribute-list">
|
324
|
-
<h3 class="section-bar">Attributes</h3>
|
325
|
-
|
326
|
-
<div class="name-list">
|
327
|
-
<table>
|
328
|
-
<tr class="top-aligned-row context-row">
|
329
|
-
<td class="context-item-name">properties</td>
|
330
|
-
<td class="context-item-value"> [RW] </td>
|
331
|
-
<td class="context-item-desc"></td>
|
332
|
-
</tr>
|
333
|
-
</table>
|
334
|
-
</div>
|
335
|
-
</div>
|
336
347
|
|
337
348
|
|
338
349
|
|
@@ -340,11 +351,11 @@ if no request handler id is given in a request.
|
|
340
351
|
<div id="methods">
|
341
352
|
<h3 class="section-bar">Public Instance methods</h3>
|
342
353
|
|
343
|
-
<div id="method-
|
344
|
-
<a name="
|
354
|
+
<div id="method-M000299" class="method-detail">
|
355
|
+
<a name="M000299"></a>
|
345
356
|
|
346
357
|
<div class="method-heading">
|
347
|
-
<a href="#
|
358
|
+
<a href="#M000299" class="method-signature">
|
348
359
|
<span class="method-name">get_property</span><span class="method-args">(prop, klass)</span>
|
349
360
|
</a>
|
350
361
|
</div>
|
@@ -354,13 +365,13 @@ if no request handler id is given in a request.
|
|
354
365
|
Returns an "owned" property for the given <tt>klass</tt>.
|
355
366
|
</p>
|
356
367
|
<p><a class="source-toggle" href="#"
|
357
|
-
onclick="toggleCode('
|
358
|
-
<div class="method-source-code" id="
|
368
|
+
onclick="toggleCode('M000299-source');return false;">[Source]</a></p>
|
369
|
+
<div class="method-source-code" id="M000299-source">
|
359
370
|
<pre>
|
360
|
-
<span class="ruby-comment cmt"># File lib/wee/application.rb, line
|
371
|
+
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 117</span>
|
361
372
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_property</span>(<span class="ruby-identifier">prop</span>, <span class="ruby-identifier">klass</span>)
|
362
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-
|
363
|
-
<span class="ruby-
|
373
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">properties</span>
|
374
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">properties</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">klass</span>, {})[<span class="ruby-identifier">prop</span>]
|
364
375
|
<span class="ruby-keyword kw">else</span>
|
365
376
|
<span class="ruby-keyword kw">nil</span>
|
366
377
|
<span class="ruby-keyword kw">end</span>
|
@@ -370,13 +381,55 @@ Returns an "owned" property for the given <tt>klass</tt>.
|
|
370
381
|
</div>
|
371
382
|
</div>
|
372
383
|
|
384
|
+
<div id="method-M000297" class="method-detail">
|
385
|
+
<a name="M000297"></a>
|
386
|
+
|
387
|
+
<div class="method-heading">
|
388
|
+
<a href="#M000297" class="method-signature">
|
389
|
+
<span class="method-name">properties</span><span class="method-args">()</span>
|
390
|
+
</a>
|
391
|
+
</div>
|
392
|
+
|
393
|
+
<div class="method-description">
|
394
|
+
<p><a class="source-toggle" href="#"
|
395
|
+
onclick="toggleCode('M000297-source');return false;">[Source]</a></p>
|
396
|
+
<div class="method-source-code" id="M000297-source">
|
397
|
+
<pre>
|
398
|
+
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 112</span>
|
399
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">properties</span>() <span class="ruby-ivar">@__properties</span> <span class="ruby-keyword kw">end</span>
|
400
|
+
</pre>
|
401
|
+
</div>
|
402
|
+
</div>
|
403
|
+
</div>
|
404
|
+
|
405
|
+
<div id="method-M000298" class="method-detail">
|
406
|
+
<a name="M000298"></a>
|
407
|
+
|
408
|
+
<div class="method-heading">
|
409
|
+
<a href="#M000298" class="method-signature">
|
410
|
+
<span class="method-name">properties=</span><span class="method-args">(props)</span>
|
411
|
+
</a>
|
412
|
+
</div>
|
413
|
+
|
414
|
+
<div class="method-description">
|
415
|
+
<p><a class="source-toggle" href="#"
|
416
|
+
onclick="toggleCode('M000298-source');return false;">[Source]</a></p>
|
417
|
+
<div class="method-source-code" id="M000298-source">
|
418
|
+
<pre>
|
419
|
+
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 113</span>
|
420
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">properties=</span>(<span class="ruby-identifier">props</span>) <span class="ruby-ivar">@__properties</span> = <span class="ruby-identifier">props</span> <span class="ruby-keyword kw">end</span>
|
421
|
+
</pre>
|
422
|
+
</div>
|
423
|
+
</div>
|
424
|
+
</div>
|
425
|
+
|
373
426
|
<h3 class="section-bar">Private Instance methods</h3>
|
374
427
|
|
375
|
-
<div id="method-
|
376
|
-
<a name="
|
428
|
+
<div id="method-M000301" class="method-detail">
|
429
|
+
<a name="M000301"></a>
|
377
430
|
|
378
431
|
<div class="method-heading">
|
379
|
-
<a href="#
|
432
|
+
<a href="#M000301" class="method-signature">
|
380
433
|
<span class="method-name">garbage_collect_handlers</span><span class="method-args">()</span>
|
381
434
|
</a>
|
382
435
|
</div>
|
@@ -386,10 +439,10 @@ Returns an "owned" property for the given <tt>klass</tt>.
|
|
386
439
|
MUST be called while holding @mutex
|
387
440
|
</p>
|
388
441
|
<p><a class="source-toggle" href="#"
|
389
|
-
onclick="toggleCode('
|
390
|
-
<div class="method-source-code" id="
|
442
|
+
onclick="toggleCode('M000301-source');return false;">[Source]</a></p>
|
443
|
+
<div class="method-source-code" id="M000301-source">
|
391
444
|
<pre>
|
392
|
-
<span class="ruby-comment cmt"># File lib/wee/application.rb, line
|
445
|
+
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 137</span>
|
393
446
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">garbage_collect_handlers</span>
|
394
447
|
<span class="ruby-ivar">@request_handlers</span>.<span class="ruby-identifier">delete_if</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">id</span>,<span class="ruby-identifier">rh</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span><span class="ruby-identifier">rh</span>.<span class="ruby-identifier">alive?</span> }
|
395
448
|
<span class="ruby-keyword kw">end</span>
|
@@ -398,34 +451,36 @@ MUST be called while holding @mutex
|
|
398
451
|
</div>
|
399
452
|
</div>
|
400
453
|
|
401
|
-
<div id="method-
|
402
|
-
<a name="
|
454
|
+
<div id="method-M000302" class="method-detail">
|
455
|
+
<a name="M000302"></a>
|
403
456
|
|
404
457
|
<div class="method-heading">
|
405
|
-
<a href="#
|
458
|
+
<a href="#M000302" class="method-signature">
|
406
459
|
<span class="method-name">request_handler_expired</span><span class="method-args">(context)</span>
|
407
460
|
</a>
|
408
461
|
</div>
|
409
462
|
|
410
463
|
<div class="method-description">
|
411
464
|
<p><a class="source-toggle" href="#"
|
412
|
-
onclick="toggleCode('
|
413
|
-
<div class="method-source-code" id="
|
465
|
+
onclick="toggleCode('M000302-source');return false;">[Source]</a></p>
|
466
|
+
<div class="method-source-code" id="M000302-source">
|
414
467
|
<pre>
|
415
|
-
<span class="ruby-comment cmt"># File lib/wee/application.rb, line
|
468
|
+
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 141</span>
|
416
469
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request_handler_expired</span>(<span class="ruby-identifier">context</span>)
|
417
|
-
<span class="ruby-identifier">context</span>.<span class="ruby-identifier">response</span> = <span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">RefreshResponse</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"Invalid or expired request handler!"</span>,
|
470
|
+
<span class="ruby-identifier">context</span>.<span class="ruby-identifier">response</span> = <span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">RefreshResponse</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"Invalid or expired request handler!"</span>,
|
471
|
+
<span class="ruby-identifier">context</span>.<span class="ruby-identifier">request</span>.<span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">:request_handler_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">nil</span>,
|
472
|
+
<span class="ruby-identifier">:page_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">nil</span>))
|
418
473
|
<span class="ruby-keyword kw">end</span>
|
419
474
|
</pre>
|
420
475
|
</div>
|
421
476
|
</div>
|
422
477
|
</div>
|
423
478
|
|
424
|
-
<div id="method-
|
425
|
-
<a name="
|
479
|
+
<div id="method-M000300" class="method-detail">
|
480
|
+
<a name="M000300"></a>
|
426
481
|
|
427
482
|
<div class="method-heading">
|
428
|
-
<a href="#
|
483
|
+
<a href="#M000300" class="method-signature">
|
429
484
|
<span class="method-name">unique_request_handler_id</span><span class="method-args">()</span>
|
430
485
|
</a>
|
431
486
|
</div>
|
@@ -435,10 +490,10 @@ MUST be called while holding @mutex
|
|
435
490
|
MUST be called while holding @mutex
|
436
491
|
</p>
|
437
492
|
<p><a class="source-toggle" href="#"
|
438
|
-
onclick="toggleCode('
|
439
|
-
<div class="method-source-code" id="
|
493
|
+
onclick="toggleCode('M000300-source');return false;">[Source]</a></p>
|
494
|
+
<div class="method-source-code" id="M000300-source">
|
440
495
|
<pre>
|
441
|
-
<span class="ruby-comment cmt"># File lib/wee/application.rb, line
|
496
|
+
<span class="ruby-comment cmt"># File lib/wee/application.rb, line 129</span>
|
442
497
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unique_request_handler_id</span>
|
443
498
|
<span class="ruby-identifier">id</span> = <span class="ruby-ivar">@id_generator</span>.<span class="ruby-identifier">next</span>.<span class="ruby-identifier">to_s</span>
|
444
499
|
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"failed to create unique request handler id"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@request_handlers</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">id</span>)
|
@@ -88,9 +88,9 @@
|
|
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="#
|
91
|
+
<a href="#M000186">close</a>
|
92
|
+
<a href="#M000184">new</a>
|
93
|
+
<a href="#M000185">with</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -105,17 +105,20 @@
|
|
105
105
|
<h3 class="section-bar">Classes and Modules</h3>
|
106
106
|
|
107
107
|
Class <a href="Brush/AnchorTag.html" class="link">Wee::Brush::AnchorTag</a><br />
|
108
|
+
Class <a href="Brush/CheckboxTag.html" class="link">Wee::Brush::CheckboxTag</a><br />
|
108
109
|
Class <a href="Brush/FileUploadTag.html" class="link">Wee::Brush::FileUploadTag</a><br />
|
109
110
|
Class <a href="Brush/FormTag.html" class="link">Wee::Brush::FormTag</a><br />
|
110
111
|
Class <a href="Brush/GenericEncodedTextBrush.html" class="link">Wee::Brush::GenericEncodedTextBrush</a><br />
|
111
112
|
Class <a href="Brush/GenericSingleTagBrush.html" class="link">Wee::Brush::GenericSingleTagBrush</a><br />
|
112
113
|
Class <a href="Brush/GenericTagBrush.html" class="link">Wee::Brush::GenericTagBrush</a><br />
|
113
114
|
Class <a href="Brush/GenericTextBrush.html" class="link">Wee::Brush::GenericTextBrush</a><br />
|
115
|
+
Class <a href="Brush/HiddenInputTag.html" class="link">Wee::Brush::HiddenInputTag</a><br />
|
114
116
|
Class <a href="Brush/ImageButtonTag.html" class="link">Wee::Brush::ImageButtonTag</a><br />
|
115
117
|
Class <a href="Brush/ImageTag.html" class="link">Wee::Brush::ImageTag</a><br />
|
116
118
|
Class <a href="Brush/InputTag.html" class="link">Wee::Brush::InputTag</a><br />
|
117
119
|
Class <a href="Brush/JavascriptTag.html" class="link">Wee::Brush::JavascriptTag</a><br />
|
118
120
|
Class <a href="Brush/Page.html" class="link">Wee::Brush::Page</a><br />
|
121
|
+
Class <a href="Brush/RadioButtonTag.html" class="link">Wee::Brush::RadioButtonTag</a><br />
|
119
122
|
Class <a href="Brush/SelectListTag.html" class="link">Wee::Brush::SelectListTag</a><br />
|
120
123
|
Class <a href="Brush/SelectOptionTag.html" class="link">Wee::Brush::SelectOptionTag</a><br />
|
121
124
|
Class <a href="Brush/SubmitButtonTag.html" class="link">Wee::Brush::SubmitButtonTag</a><br />
|
@@ -156,19 +159,19 @@ Class <a href="Brush/TextInputTag.html" class="link">Wee::Brush::TextInputTag</a
|
|
156
159
|
<div id="methods">
|
157
160
|
<h3 class="section-bar">Public Class methods</h3>
|
158
161
|
|
159
|
-
<div id="method-
|
160
|
-
<a name="
|
162
|
+
<div id="method-M000184" class="method-detail">
|
163
|
+
<a name="M000184"></a>
|
161
164
|
|
162
165
|
<div class="method-heading">
|
163
|
-
<a href="#
|
166
|
+
<a href="#M000184" class="method-signature">
|
164
167
|
<span class="method-name">new</span><span class="method-args">()</span>
|
165
168
|
</a>
|
166
169
|
</div>
|
167
170
|
|
168
171
|
<div class="method-description">
|
169
172
|
<p><a class="source-toggle" href="#"
|
170
|
-
onclick="toggleCode('
|
171
|
-
<div class="method-source-code" id="
|
173
|
+
onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
|
174
|
+
<div class="method-source-code" id="M000184-source">
|
172
175
|
<pre>
|
173
176
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 6</span>
|
174
177
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -181,19 +184,19 @@ Class <a href="Brush/TextInputTag.html" class="link">Wee::Brush::TextInputTag</a
|
|
181
184
|
|
182
185
|
<h3 class="section-bar">Public Instance methods</h3>
|
183
186
|
|
184
|
-
<div id="method-
|
185
|
-
<a name="
|
187
|
+
<div id="method-M000186" class="method-detail">
|
188
|
+
<a name="M000186"></a>
|
186
189
|
|
187
190
|
<div class="method-heading">
|
188
|
-
<a href="#
|
191
|
+
<a href="#M000186" class="method-signature">
|
189
192
|
<span class="method-name">close</span><span class="method-args">()</span>
|
190
193
|
</a>
|
191
194
|
</div>
|
192
195
|
|
193
196
|
<div class="method-description">
|
194
197
|
<p><a class="source-toggle" href="#"
|
195
|
-
onclick="toggleCode('
|
196
|
-
<div class="method-source-code" id="
|
198
|
+
onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
|
199
|
+
<div class="method-source-code" id="M000186-source">
|
197
200
|
<pre>
|
198
201
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 17</span>
|
199
202
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -204,19 +207,19 @@ Class <a href="Brush/TextInputTag.html" class="link">Wee::Brush::TextInputTag</a
|
|
204
207
|
</div>
|
205
208
|
</div>
|
206
209
|
|
207
|
-
<div id="method-
|
208
|
-
<a name="
|
210
|
+
<div id="method-M000185" class="method-detail">
|
211
|
+
<a name="M000185"></a>
|
209
212
|
|
210
213
|
<div class="method-heading">
|
211
|
-
<a href="#
|
214
|
+
<a href="#M000185" class="method-signature">
|
212
215
|
<span class="method-name">with</span><span class="method-args">(*args, &block)</span>
|
213
216
|
</a>
|
214
217
|
</div>
|
215
218
|
|
216
219
|
<div class="method-description">
|
217
220
|
<p><a class="source-toggle" href="#"
|
218
|
-
onclick="toggleCode('
|
219
|
-
<div class="method-source-code" id="
|
221
|
+
onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
|
222
|
+
<div class="method-source-code" id="M000185-source">
|
220
223
|
<pre>
|
221
224
|
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 10</span>
|
222
225
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|