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
@@ -65,8 +65,8 @@
|
|
65
65
|
<tr class="top-aligned-row">
|
66
66
|
<td><strong>Parent:</strong></td>
|
67
67
|
<td>
|
68
|
-
<a href="
|
69
|
-
|
68
|
+
<a href="IdGenerator.html">
|
69
|
+
Wee::IdGenerator
|
70
70
|
</a>
|
71
71
|
</td>
|
72
72
|
</tr>
|
@@ -94,8 +94,8 @@ Returned ids are guaranteed to be unique, but they are easily guessable.
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
97
|
+
<a href="#M000310">new</a>
|
98
|
+
<a href="#M000311">next</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -117,19 +117,19 @@ Returned ids are guaranteed to be unique, but they are easily guessable.
|
|
117
117
|
<div id="methods">
|
118
118
|
<h3 class="section-bar">Public Class methods</h3>
|
119
119
|
|
120
|
-
<div id="method-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000310" class="method-detail">
|
121
|
+
<a name="M000310"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000310" class="method-signature">
|
125
125
|
<span class="method-name">new</span><span class="method-args">(initial_value=0)</span>
|
126
126
|
</a>
|
127
127
|
</div>
|
128
128
|
|
129
129
|
<div class="method-description">
|
130
130
|
<p><a class="source-toggle" href="#"
|
131
|
-
onclick="toggleCode('
|
132
|
-
<div class="method-source-code" id="
|
131
|
+
onclick="toggleCode('M000310-source');return false;">[Source]</a></p>
|
132
|
+
<div class="method-source-code" id="M000310-source">
|
133
133
|
<pre>
|
134
134
|
<span class="ruby-comment cmt"># File lib/wee/idgen/simple.rb, line 4</span>
|
135
135
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">initial_value</span>=<span class="ruby-value">0</span>)
|
@@ -142,19 +142,19 @@ Returned ids are guaranteed to be unique, but they are easily guessable.
|
|
142
142
|
|
143
143
|
<h3 class="section-bar">Public Instance methods</h3>
|
144
144
|
|
145
|
-
<div id="method-
|
146
|
-
<a name="
|
145
|
+
<div id="method-M000311" class="method-detail">
|
146
|
+
<a name="M000311"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="#
|
149
|
+
<a href="#M000311" class="method-signature">
|
150
150
|
<span class="method-name">next</span><span class="method-args">()</span>
|
151
151
|
</a>
|
152
152
|
</div>
|
153
153
|
|
154
154
|
<div class="method-description">
|
155
155
|
<p><a class="source-toggle" href="#"
|
156
|
-
onclick="toggleCode('
|
157
|
-
<div class="method-source-code" id="
|
156
|
+
onclick="toggleCode('M000311-source');return false;">[Source]</a></p>
|
157
|
+
<div class="method-source-code" id="M000311-source">
|
158
158
|
<pre>
|
159
159
|
<span class="ruby-comment cmt"># File lib/wee/idgen/simple.rb, line 8</span>
|
160
160
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">next</span>
|
@@ -86,7 +86,7 @@ This class is for backtracking the state of components (or
|
|
86
86
|
decorations/presenters). Components that want an undo-facility to be
|
87
87
|
implemented (triggered for example by a browsers back-button), have to
|
88
88
|
overwrite the <a
|
89
|
-
href="Component.html#
|
89
|
+
href="Component.html#M000339">Component#backtrack_state</a> method. Class
|
90
90
|
<a href="Snapshot.html">Wee::Snapshot</a> simply represents a collection of
|
91
91
|
objects from which snapshots were taken via methods take_snapshot.
|
92
92
|
</p>
|
@@ -100,9 +100,9 @@ objects from which snapshots were taken via methods take_snapshot.
|
|
100
100
|
<h3 class="section-bar">Methods</h3>
|
101
101
|
|
102
102
|
<div class="name-list">
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
103
|
+
<a href="#M000259">add</a>
|
104
|
+
<a href="#M000258">new</a>
|
105
|
+
<a href="#M000260">restore</a>
|
106
106
|
</div>
|
107
107
|
</div>
|
108
108
|
|
@@ -124,19 +124,19 @@ objects from which snapshots were taken via methods take_snapshot.
|
|
124
124
|
<div id="methods">
|
125
125
|
<h3 class="section-bar">Public Class methods</h3>
|
126
126
|
|
127
|
-
<div id="method-
|
128
|
-
<a name="
|
127
|
+
<div id="method-M000258" class="method-detail">
|
128
|
+
<a name="M000258"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="#
|
131
|
+
<a href="#M000258" class="method-signature">
|
132
132
|
<span class="method-name">new</span><span class="method-args">()</span>
|
133
133
|
</a>
|
134
134
|
</div>
|
135
135
|
|
136
136
|
<div class="method-description">
|
137
137
|
<p><a class="source-toggle" href="#"
|
138
|
-
onclick="toggleCode('
|
139
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000258-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000258-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File lib/wee/core/snapshot.rb, line 9</span>
|
142
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -149,19 +149,19 @@ objects from which snapshots were taken via methods take_snapshot.
|
|
149
149
|
|
150
150
|
<h3 class="section-bar">Public Instance methods</h3>
|
151
151
|
|
152
|
-
<div id="method-
|
153
|
-
<a name="
|
152
|
+
<div id="method-M000259" class="method-detail">
|
153
|
+
<a name="M000259"></a>
|
154
154
|
|
155
155
|
<div class="method-heading">
|
156
|
-
<a href="#
|
156
|
+
<a href="#M000259" class="method-signature">
|
157
157
|
<span class="method-name">add</span><span class="method-args">(object)</span>
|
158
158
|
</a>
|
159
159
|
</div>
|
160
160
|
|
161
161
|
<div class="method-description">
|
162
162
|
<p><a class="source-toggle" href="#"
|
163
|
-
onclick="toggleCode('
|
164
|
-
<div class="method-source-code" id="
|
163
|
+
onclick="toggleCode('M000259-source');return false;">[Source]</a></p>
|
164
|
+
<div class="method-source-code" id="M000259-source">
|
165
165
|
<pre>
|
166
166
|
<span class="ruby-comment cmt"># File lib/wee/core/snapshot.rb, line 13</span>
|
167
167
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">object</span>)
|
@@ -173,19 +173,19 @@ objects from which snapshots were taken via methods take_snapshot.
|
|
173
173
|
</div>
|
174
174
|
</div>
|
175
175
|
|
176
|
-
<div id="method-
|
177
|
-
<a name="
|
176
|
+
<div id="method-M000260" class="method-detail">
|
177
|
+
<a name="M000260"></a>
|
178
178
|
|
179
179
|
<div class="method-heading">
|
180
|
-
<a href="#
|
180
|
+
<a href="#M000260" class="method-signature">
|
181
181
|
<span class="method-name">restore</span><span class="method-args">()</span>
|
182
182
|
</a>
|
183
183
|
</div>
|
184
184
|
|
185
185
|
<div class="method-description">
|
186
186
|
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('
|
188
|
-
<div class="method-source-code" id="
|
187
|
+
onclick="toggleCode('M000260-source');return false;">[Source]</a></p>
|
188
|
+
<div class="method-source-code" id="M000260-source">
|
189
189
|
<pre>
|
190
190
|
<span class="ruby-comment cmt"># File lib/wee/core/snapshot.rb, line 18</span>
|
191
191
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore</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="#M000137">app_for</a>
|
92
|
+
<a href="#M000135">autoreload</a>
|
93
|
+
<a href="#M000136">autoreload_glob</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -118,11 +118,11 @@
|
|
118
118
|
<div id="methods">
|
119
119
|
<h3 class="section-bar">Public Class methods</h3>
|
120
120
|
|
121
|
-
<div id="method-
|
122
|
-
<a name="
|
121
|
+
<div id="method-M000137" class="method-detail">
|
122
|
+
<a name="M000137"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="#
|
125
|
+
<a href="#M000137" class="method-signature">
|
126
126
|
<span class="method-name">app_for</span><span class="method-args">(component=nil, options={}, &block)</span>
|
127
127
|
</a>
|
128
128
|
</div>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
is given, this will be invoked to create a new component object.
|
134
134
|
|
135
135
|
</dd>
|
136
|
-
<dt><tt>options</tt></dt><dd>A Hash. Following keys are accepted:
|
136
|
+
<dt><tt>options</tt></dt><dd>A <a href="../Hash.html">Hash</a>. Following keys are accepted:
|
137
137
|
|
138
138
|
<dl>
|
139
139
|
<dt>:application</dt><dd>The application class to use (default: <a
|
@@ -147,15 +147,15 @@ href="Application.html">Wee::Application</a>)
|
|
147
147
|
|
148
148
|
</dd>
|
149
149
|
<dt>:id_gen</dt><dd>The id generator to use for session-ids (default: <a
|
150
|
-
href="Md5IdGenerator.html#
|
150
|
+
href="Md5IdGenerator.html#M000261">Md5IdGenerator.new</a>)
|
151
151
|
|
152
152
|
</dd>
|
153
153
|
</dl>
|
154
154
|
</dd>
|
155
155
|
</dl>
|
156
156
|
<p><a class="source-toggle" href="#"
|
157
|
-
onclick="toggleCode('
|
158
|
-
<div class="method-source-code" id="
|
157
|
+
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
158
|
+
<div class="method-source-code" id="M000137-source">
|
159
159
|
<pre>
|
160
160
|
<span class="ruby-comment cmt"># File lib/wee/utils/helper.rb, line 22</span>
|
161
161
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">app_for</span>(<span class="ruby-identifier">component</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={}, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -173,9 +173,9 @@ href="Md5IdGenerator.html#M000137">Md5IdGenerator.new</a>)
|
|
173
173
|
<span class="ruby-identifier">app</span>.<span class="ruby-identifier">default_request_handler</span> {
|
174
174
|
<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:session</span>].<span class="ruby-identifier">new</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">sess</span><span class="ruby-operator">|</span>
|
175
175
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">component</span>
|
176
|
-
<span class="ruby-identifier">sess</span>.<span class="ruby-identifier">
|
176
|
+
<span class="ruby-identifier">sess</span>.<span class="ruby-identifier">component_runner</span> = <span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">ComponentRunner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">component</span>.<span class="ruby-identifier">new</span>)
|
177
177
|
<span class="ruby-keyword kw">else</span>
|
178
|
-
<span class="ruby-identifier">sess</span>.<span class="ruby-identifier">
|
178
|
+
<span class="ruby-identifier">sess</span>.<span class="ruby-identifier">component_runner</span> = <span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">ComponentRunner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>)
|
179
179
|
<span class="ruby-keyword kw">end</span>
|
180
180
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sess</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:page_store=</span>)
|
181
181
|
<span class="ruby-comment cmt"># This is so that you can use a Pageless session, which does not have</span>
|
@@ -194,19 +194,19 @@ href="Md5IdGenerator.html#M000137">Md5IdGenerator.new</a>)
|
|
194
194
|
|
195
195
|
<h3 class="section-bar">Public Instance methods</h3>
|
196
196
|
|
197
|
-
<div id="method-
|
198
|
-
<a name="
|
197
|
+
<div id="method-M000135" class="method-detail">
|
198
|
+
<a name="M000135"></a>
|
199
199
|
|
200
200
|
<div class="method-heading">
|
201
|
-
<a href="#
|
201
|
+
<a href="#M000135" class="method-signature">
|
202
202
|
<span class="method-name">autoreload</span><span class="method-args">(check_interval=10)</span>
|
203
203
|
</a>
|
204
204
|
</div>
|
205
205
|
|
206
206
|
<div class="method-description">
|
207
207
|
<p><a class="source-toggle" href="#"
|
208
|
-
onclick="toggleCode('
|
209
|
-
<div class="method-source-code" id="
|
208
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
209
|
+
<div class="method-source-code" id="M000135-source">
|
210
210
|
<pre>
|
211
211
|
<span class="ruby-comment cmt"># File lib/wee/utils/autoreload.rb, line 4</span>
|
212
212
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">autoreload</span>(<span class="ruby-identifier">check_interval</span>=<span class="ruby-value">10</span>)
|
@@ -237,11 +237,11 @@ href="Md5IdGenerator.html#M000137">Md5IdGenerator.new</a>)
|
|
237
237
|
</div>
|
238
238
|
</div>
|
239
239
|
|
240
|
-
<div id="method-
|
241
|
-
<a name="
|
240
|
+
<div id="method-M000136" class="method-detail">
|
241
|
+
<a name="M000136"></a>
|
242
242
|
|
243
243
|
<div class="method-heading">
|
244
|
-
<a href="#
|
244
|
+
<a href="#M000136" class="method-signature">
|
245
245
|
<span class="method-name">autoreload_glob</span><span class="method-args">(glob, check_interval=1)</span>
|
246
246
|
</a>
|
247
247
|
</div>
|
@@ -254,8 +254,8 @@ current application or not. The glob is expanded only once at the initial
|
|
254
254
|
method call.
|
255
255
|
</p>
|
256
256
|
<p><a class="source-toggle" href="#"
|
257
|
-
onclick="toggleCode('
|
258
|
-
<div class="method-source-code" id="
|
257
|
+
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
258
|
+
<div class="method-source-code" id="M000136-source">
|
259
259
|
<pre>
|
260
260
|
<span class="ruby-comment cmt"># File lib/wee/utils/autoreload.rb, line 33</span>
|
261
261
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">autoreload_glob</span>(<span class="ruby-identifier">glob</span>, <span class="ruby-identifier">check_interval</span>=<span class="ruby-value">1</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="#M000138">new</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -110,19 +110,19 @@
|
|
110
110
|
<div id="methods">
|
111
111
|
<h3 class="section-bar">Public Class methods</h3>
|
112
112
|
|
113
|
-
<div id="method-
|
114
|
-
<a name="
|
113
|
+
<div id="method-M000138" class="method-detail">
|
114
|
+
<a name="M000138"></a>
|
115
115
|
|
116
116
|
<div class="method-heading">
|
117
|
-
<a href="#
|
117
|
+
<a href="#M000138" class="method-signature">
|
118
118
|
<span class="method-name">new</span><span class="method-args">(capacity=20)</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('M000138-source');return false;">[Source]</a></p>
|
125
|
+
<div class="method-source-code" id="M000138-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/wee/utils/cache.rb, line 4</span>
|
128
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">capacity</span>=<span class="ruby-value">20</span>)
|
@@ -84,7 +84,7 @@
|
|
84
84
|
<p>
|
85
85
|
Implements a value holder. Useful for backtracking the reference assigned
|
86
86
|
to an instance variable (not the object itself!). An example where this is
|
87
|
-
used is the <tt>@
|
87
|
+
used is the <tt>@__decoration</tt> attribute of class <a
|
88
88
|
href="Component.html">Wee::Component</a>.
|
89
89
|
</p>
|
90
90
|
|
@@ -97,9 +97,9 @@ href="Component.html">Wee::Component</a>.
|
|
97
97
|
<h3 class="section-bar">Methods</h3>
|
98
98
|
|
99
99
|
<div class="name-list">
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
100
|
+
<a href="#M000322">new</a>
|
101
|
+
<a href="#M000324">restore_snapshot</a>
|
102
|
+
<a href="#M000323">take_snapshot</a>
|
103
103
|
</div>
|
104
104
|
</div>
|
105
105
|
|
@@ -134,19 +134,19 @@ href="Component.html">Wee::Component</a>.
|
|
134
134
|
<div id="methods">
|
135
135
|
<h3 class="section-bar">Public Class methods</h3>
|
136
136
|
|
137
|
-
<div id="method-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000322" class="method-detail">
|
138
|
+
<a name="M000322"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
141
|
+
<a href="#M000322" class="method-signature">
|
142
142
|
<span class="method-name">new</span><span class="method-args">(value=nil)</span>
|
143
143
|
</a>
|
144
144
|
</div>
|
145
145
|
|
146
146
|
<div class="method-description">
|
147
147
|
<p><a class="source-toggle" href="#"
|
148
|
-
onclick="toggleCode('
|
149
|
-
<div class="method-source-code" id="
|
148
|
+
onclick="toggleCode('M000322-source');return false;">[Source]</a></p>
|
149
|
+
<div class="method-source-code" id="M000322-source">
|
150
150
|
<pre>
|
151
151
|
<span class="ruby-comment cmt"># File lib/wee/core/valueholder.rb, line 8</span>
|
152
152
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -159,19 +159,19 @@ href="Component.html">Wee::Component</a>.
|
|
159
159
|
|
160
160
|
<h3 class="section-bar">Public Instance methods</h3>
|
161
161
|
|
162
|
-
<div id="method-
|
163
|
-
<a name="
|
162
|
+
<div id="method-M000324" class="method-detail">
|
163
|
+
<a name="M000324"></a>
|
164
164
|
|
165
165
|
<div class="method-heading">
|
166
|
-
<a href="#
|
166
|
+
<a href="#M000324" class="method-signature">
|
167
167
|
<span class="method-name">restore_snapshot</span><span class="method-args">(value)</span>
|
168
168
|
</a>
|
169
169
|
</div>
|
170
170
|
|
171
171
|
<div class="method-description">
|
172
172
|
<p><a class="source-toggle" href="#"
|
173
|
-
onclick="toggleCode('
|
174
|
-
<div class="method-source-code" id="
|
173
|
+
onclick="toggleCode('M000324-source');return false;">[Source]</a></p>
|
174
|
+
<div class="method-source-code" id="M000324-source">
|
175
175
|
<pre>
|
176
176
|
<span class="ruby-comment cmt"># File lib/wee/core/valueholder.rb, line 16</span>
|
177
177
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">value</span>)
|
@@ -182,19 +182,19 @@ href="Component.html">Wee::Component</a>.
|
|
182
182
|
</div>
|
183
183
|
</div>
|
184
184
|
|
185
|
-
<div id="method-
|
186
|
-
<a name="
|
185
|
+
<div id="method-M000323" class="method-detail">
|
186
|
+
<a name="M000323"></a>
|
187
187
|
|
188
188
|
<div class="method-heading">
|
189
|
-
<a href="#
|
189
|
+
<a href="#M000323" class="method-signature">
|
190
190
|
<span class="method-name">take_snapshot</span><span class="method-args">()</span>
|
191
191
|
</a>
|
192
192
|
</div>
|
193
193
|
|
194
194
|
<div class="method-description">
|
195
195
|
<p><a class="source-toggle" href="#"
|
196
|
-
onclick="toggleCode('
|
197
|
-
<div class="method-source-code" id="
|
196
|
+
onclick="toggleCode('M000323-source');return false;">[Source]</a></p>
|
197
|
+
<div class="method-source-code" id="M000323-source">
|
198
198
|
<pre>
|
199
199
|
<span class="ruby-comment cmt"># File lib/wee/core/valueholder.rb, line 12</span>
|
200
200
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
|
@@ -78,6 +78,32 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
Example of usage:
|
84
|
+
</p>
|
85
|
+
<pre>
|
86
|
+
require 'wee/adaptors/webrick'
|
87
|
+
s = WEBrick::HTTPServer.new(:Port => 2000)
|
88
|
+
s.mount '/app', Wee::WEBrickAdaptor, '/app', application
|
89
|
+
|
90
|
+
trap("INT") { s.shutdown; exit }
|
91
|
+
s.start
|
92
|
+
</pre>
|
93
|
+
<p>
|
94
|
+
Or when using the convenience methods:
|
95
|
+
</p>
|
96
|
+
<pre>
|
97
|
+
require 'wee/adaptors/webrick'
|
98
|
+
Wee::WEBrickAdaptor.
|
99
|
+
request_class(Wee::Request). # this is the default!
|
100
|
+
register('/app' => application).
|
101
|
+
register('/cnt' => application2).
|
102
|
+
mount('/', WEBrick::HTTPServlet::FileHandler, '.').
|
103
|
+
start(:Port => 2000)
|
104
|
+
</pre>
|
105
|
+
|
106
|
+
</div>
|
81
107
|
|
82
108
|
|
83
109
|
</div>
|
@@ -86,14 +112,14 @@
|
|
86
112
|
<h3 class="section-bar">Methods</h3>
|
87
113
|
|
88
114
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
115
|
+
<a href="#M000145">do_GET</a>
|
116
|
+
<a href="#M000146">do_POST</a>
|
117
|
+
<a href="#M000144">handle_request</a>
|
118
|
+
<a href="#M000142">mount</a>
|
119
|
+
<a href="#M000143">new</a>
|
120
|
+
<a href="#M000141">register</a>
|
121
|
+
<a href="#M000140">request_class</a>
|
122
|
+
<a href="#M000139">start</a>
|
97
123
|
</div>
|
98
124
|
</div>
|
99
125
|
|
@@ -115,11 +141,11 @@
|
|
115
141
|
<div id="methods">
|
116
142
|
<h3 class="section-bar">Public Class methods</h3>
|
117
143
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
144
|
+
<div id="method-M000142" class="method-detail">
|
145
|
+
<a name="M000142"></a>
|
120
146
|
|
121
147
|
<div class="method-heading">
|
122
|
-
<a href="#
|
148
|
+
<a href="#M000142" class="method-signature">
|
123
149
|
<span class="method-name">mount</span><span class="method-args">(*args, &block)</span>
|
124
150
|
</a>
|
125
151
|
</div>
|
@@ -129,8 +155,8 @@
|
|
129
155
|
Convenience method
|
130
156
|
</p>
|
131
157
|
<p><a class="source-toggle" href="#"
|
132
|
-
onclick="toggleCode('
|
133
|
-
<div class="method-source-code" id="
|
158
|
+
onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
|
159
|
+
<div class="method-source-code" id="M000142-source">
|
134
160
|
<pre>
|
135
161
|
<span class="ruby-comment cmt"># File lib/wee/adaptors/webrick.rb, line 63</span>
|
136
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">mount</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -143,19 +169,19 @@ Convenience method
|
|
143
169
|
</div>
|
144
170
|
</div>
|
145
171
|
|
146
|
-
<div id="method-
|
147
|
-
<a name="
|
172
|
+
<div id="method-M000143" class="method-detail">
|
173
|
+
<a name="M000143"></a>
|
148
174
|
|
149
175
|
<div class="method-heading">
|
150
|
-
<a href="#
|
176
|
+
<a href="#M000143" class="method-signature">
|
151
177
|
<span class="method-name">new</span><span class="method-args">(server, mount_path, application, request_class=Wee::Request)</span>
|
152
178
|
</a>
|
153
179
|
</div>
|
154
180
|
|
155
181
|
<div class="method-description">
|
156
182
|
<p><a class="source-toggle" href="#"
|
157
|
-
onclick="toggleCode('
|
158
|
-
<div class="method-source-code" id="
|
183
|
+
onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
|
184
|
+
<div class="method-source-code" id="M000143-source">
|
159
185
|
<pre>
|
160
186
|
<span class="ruby-comment cmt"># File lib/wee/adaptors/webrick.rb, line 69</span>
|
161
187
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">mount_path</span>, <span class="ruby-identifier">application</span>, <span class="ruby-identifier">request_class</span>=<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>)
|
@@ -169,11 +195,11 @@ Convenience method
|
|
169
195
|
</div>
|
170
196
|
</div>
|
171
197
|
|
172
|
-
<div id="method-
|
173
|
-
<a name="
|
198
|
+
<div id="method-M000141" class="method-detail">
|
199
|
+
<a name="M000141"></a>
|
174
200
|
|
175
201
|
<div class="method-heading">
|
176
|
-
<a href="#
|
202
|
+
<a href="#M000141" class="method-signature">
|
177
203
|
<span class="method-name">register</span><span class="method-args">(hash)</span>
|
178
204
|
</a>
|
179
205
|
</div>
|
@@ -183,8 +209,8 @@ Convenience method
|
|
183
209
|
Convenience method
|
184
210
|
</p>
|
185
211
|
<p><a class="source-toggle" href="#"
|
186
|
-
onclick="toggleCode('
|
187
|
-
<div class="method-source-code" id="
|
212
|
+
onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
|
213
|
+
<div class="method-source-code" id="M000141-source">
|
188
214
|
<pre>
|
189
215
|
<span class="ruby-comment cmt"># File lib/wee/adaptors/webrick.rb, line 54</span>
|
190
216
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">register</span>(<span class="ruby-identifier">hash</span>)
|
@@ -199,23 +225,23 @@ Convenience method
|
|
199
225
|
</div>
|
200
226
|
</div>
|
201
227
|
|
202
|
-
<div id="method-
|
203
|
-
<a name="
|
228
|
+
<div id="method-M000140" class="method-detail">
|
229
|
+
<a name="M000140"></a>
|
204
230
|
|
205
231
|
<div class="method-heading">
|
206
|
-
<a href="#
|
232
|
+
<a href="#M000140" class="method-signature">
|
207
233
|
<span class="method-name">request_class</span><span class="method-args">(request_class)</span>
|
208
234
|
</a>
|
209
235
|
</div>
|
210
236
|
|
211
237
|
<div class="method-description">
|
212
238
|
<p>
|
213
|
-
Sets the used <a href="WEBrickAdaptor.html#
|
214
|
-
all following calls to <a href="WEBrickAdaptor.html#
|
239
|
+
Sets the used <a href="WEBrickAdaptor.html#M000140">request_class</a> for
|
240
|
+
all following calls to <a href="WEBrickAdaptor.html#M000141">register</a>
|
215
241
|
</p>
|
216
242
|
<p><a class="source-toggle" href="#"
|
217
|
-
onclick="toggleCode('
|
218
|
-
<div class="method-source-code" id="
|
243
|
+
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000140-source">
|
219
245
|
<pre>
|
220
246
|
<span class="ruby-comment cmt"># File lib/wee/adaptors/webrick.rb, line 48</span>
|
221
247
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">request_class</span>(<span class="ruby-identifier">request_class</span>)
|
@@ -227,11 +253,11 @@ all following calls to <a href="WEBrickAdaptor.html#M000087">register</a>
|
|
227
253
|
</div>
|
228
254
|
</div>
|
229
255
|
|
230
|
-
<div id="method-
|
231
|
-
<a name="
|
256
|
+
<div id="method-M000139" class="method-detail">
|
257
|
+
<a name="M000139"></a>
|
232
258
|
|
233
259
|
<div class="method-heading">
|
234
|
-
<a href="#
|
260
|
+
<a href="#M000139" class="method-signature">
|
235
261
|
<span class="method-name">start</span><span class="method-args">(options={}) {|server if block_given?| ...}</span>
|
236
262
|
</a>
|
237
263
|
</div>
|
@@ -241,8 +267,8 @@ all following calls to <a href="WEBrickAdaptor.html#M000087">register</a>
|
|
241
267
|
Convenience method
|
242
268
|
</p>
|
243
269
|
<p><a class="source-toggle" href="#"
|
244
|
-
onclick="toggleCode('
|
245
|
-
<div class="method-source-code" id="
|
270
|
+
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
271
|
+
<div class="method-source-code" id="M000139-source">
|
246
272
|
<pre>
|
247
273
|
<span class="ruby-comment cmt"># File lib/wee/adaptors/webrick.rb, line 28</span>
|
248
274
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">start</span>(<span class="ruby-identifier">options</span>={})
|
@@ -269,8 +295,8 @@ Convenience method
|
|
269
295
|
|
270
296
|
<h3 class="section-bar">Public Instance methods</h3>
|
271
297
|
|
272
|
-
<div id="method-
|
273
|
-
<a name="
|
298
|
+
<div id="method-M000145" class="method-detail">
|
299
|
+
<a name="M000145"></a>
|
274
300
|
|
275
301
|
<div class="method-heading">
|
276
302
|
<span class="method-name">do_GET</span><span class="method-args">(req, res)</span>
|
@@ -278,13 +304,13 @@ Convenience method
|
|
278
304
|
|
279
305
|
<div class="method-description">
|
280
306
|
<p>
|
281
|
-
Alias for <a href="WEBrickAdaptor.html#
|
307
|
+
Alias for <a href="WEBrickAdaptor.html#M000144">handle_request</a>
|
282
308
|
</p>
|
283
309
|
</div>
|
284
310
|
</div>
|
285
311
|
|
286
|
-
<div id="method-
|
287
|
-
<a name="
|
312
|
+
<div id="method-M000146" class="method-detail">
|
313
|
+
<a name="M000146"></a>
|
288
314
|
|
289
315
|
<div class="method-heading">
|
290
316
|
<span class="method-name">do_POST</span><span class="method-args">(req, res)</span>
|
@@ -292,24 +318,24 @@ Alias for <a href="WEBrickAdaptor.html#M000090">handle_request</a>
|
|
292
318
|
|
293
319
|
<div class="method-description">
|
294
320
|
<p>
|
295
|
-
Alias for <a href="WEBrickAdaptor.html#
|
321
|
+
Alias for <a href="WEBrickAdaptor.html#M000144">handle_request</a>
|
296
322
|
</p>
|
297
323
|
</div>
|
298
324
|
</div>
|
299
325
|
|
300
|
-
<div id="method-
|
301
|
-
<a name="
|
326
|
+
<div id="method-M000144" class="method-detail">
|
327
|
+
<a name="M000144"></a>
|
302
328
|
|
303
329
|
<div class="method-heading">
|
304
|
-
<a href="#
|
330
|
+
<a href="#M000144" class="method-signature">
|
305
331
|
<span class="method-name">handle_request</span><span class="method-args">(req, res)</span>
|
306
332
|
</a>
|
307
333
|
</div>
|
308
334
|
|
309
335
|
<div class="method-description">
|
310
336
|
<p><a class="source-toggle" href="#"
|
311
|
-
onclick="toggleCode('
|
312
|
-
<div class="method-source-code" id="
|
337
|
+
onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
|
338
|
+
<div class="method-source-code" id="M000144-source">
|
313
339
|
<pre>
|
314
340
|
<span class="ruby-comment cmt"># File lib/wee/adaptors/webrick.rb, line 76</span>
|
315
341
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">handle_request</span>(<span class="ruby-identifier">req</span>, <span class="ruby-identifier">res</span>)
|