ovto 0.6.0.rc1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/Gemfile.lock +1 -1
- data/book/SUMMARY.md +1 -0
- data/book/api/actions.md +1 -1
- data/book/api/middleware.md +93 -0
- data/docs/api/Ovto.html +222 -25
- data/docs/api/Ovto/Actions.html +132 -40
- data/docs/api/Ovto/App.html +254 -40
- data/docs/api/Ovto/Component.html +96 -29
- data/docs/api/Ovto/Component/MoreThanOneNode.html +6 -6
- data/docs/api/Ovto/PureComponent.html +11 -11
- data/docs/api/Ovto/PureComponent/StateIsNotAvailable.html +6 -6
- data/docs/api/Ovto/Runtime.html +7 -7
- data/docs/api/Ovto/State.html +58 -42
- data/docs/api/Ovto/State/MissingValue.html +6 -6
- data/docs/api/Ovto/WiredActions.html +78 -35
- data/docs/api/_index.html +54 -11
- data/docs/api/actions.html +1 -1
- data/docs/api/app.html +1 -1
- data/docs/api/class_list.html +3 -3
- data/docs/api/component.html +1 -1
- data/docs/api/css/style.css +2 -2
- data/docs/api/fetch.html +1 -1
- data/docs/api/file.README.html +6 -6
- data/docs/api/file_list.html +2 -2
- data/docs/api/frames.html +2 -2
- data/docs/api/index.html +6 -6
- data/docs/api/js/app.js +14 -3
- data/docs/api/method_list.html +270 -30
- data/docs/api/pure_component.html +1 -1
- data/docs/api/state.html +1 -1
- data/docs/api/top-level-namespace.html +6 -6
- data/docs/guides/debugging.html +1 -1
- data/docs/guides/development.html +1 -1
- data/docs/guides/install.html +1 -1
- data/docs/guides/tutorial.html +1 -1
- data/docs/index.html +1 -1
- data/examples/static/Gemfile.lock +1 -1
- data/lib/ovto/version.rb +1 -1
- metadata +5 -5
- data/docs/api/Ovto/State/UnknownKey.html +0 -135
data/docs/api/Ovto/Actions.html
CHANGED
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ovto::Actions
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.24
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Ovto::Actions";
|
19
19
|
relpath = '../';
|
20
20
|
</script>
|
@@ -110,10 +110,14 @@
|
|
110
110
|
<div class="tags">
|
111
111
|
|
112
112
|
|
113
|
+
</div><div id="subclasses">
|
114
|
+
<h2>Direct Known Subclasses</h2>
|
115
|
+
<p class="children"><span class='object_link'><a href="Middleware/Actions.html" title="Ovto::Middleware::Actions (class)">Middleware::Actions</a></span></p>
|
113
116
|
</div>
|
114
117
|
|
115
118
|
|
116
119
|
|
120
|
+
|
117
121
|
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
118
122
|
<ul class="summary">
|
119
123
|
|
@@ -140,7 +144,9 @@
|
|
140
144
|
|
141
145
|
|
142
146
|
<span class="summary_desc"><div class='inline'>
|
143
|
-
<p>
|
147
|
+
<p>WiredActions must be set after initialization (this cannot be an argument
|
148
|
+
of #initialize because Actions and WiredActions have references to each
|
149
|
+
other).</p>
|
144
150
|
</div></span>
|
145
151
|
|
146
152
|
</li>
|
@@ -176,6 +182,50 @@
|
|
176
182
|
|
177
183
|
|
178
184
|
|
185
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
186
|
+
|
187
|
+
</li>
|
188
|
+
|
189
|
+
|
190
|
+
<li class="public ">
|
191
|
+
<span class="summary_signature">
|
192
|
+
|
193
|
+
<a href="#middleware_name-instance_method" title="#middleware_name (instance method)">#<strong>middleware_name</strong> ⇒ Object </a>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</span>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
208
|
+
|
209
|
+
</li>
|
210
|
+
|
211
|
+
|
212
|
+
<li class="public ">
|
213
|
+
<span class="summary_signature">
|
214
|
+
|
215
|
+
<a href="#middleware_path-instance_method" title="#middleware_path (instance method)">#<strong>middleware_path</strong> ⇒ Object </a>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</span>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
179
229
|
<span class="summary_desc"><div class='inline'></div></span>
|
180
230
|
|
181
231
|
</li>
|
@@ -224,33 +274,15 @@
|
|
224
274
|
</h3><div class="docstring">
|
225
275
|
<div class="discussion">
|
226
276
|
|
227
|
-
<p>
|
277
|
+
<p>WiredActions must be set after initialization (this cannot be an argument
|
278
|
+
of #initialize because Actions and WiredActions have references to each
|
279
|
+
other)</p>
|
228
280
|
|
229
281
|
|
230
282
|
</div>
|
231
283
|
</div>
|
232
284
|
<div class="tags">
|
233
|
-
<p class="tag_title">Parameters:</p>
|
234
|
-
<ul class="param">
|
235
285
|
|
236
|
-
<li>
|
237
|
-
|
238
|
-
<span class='name'>value</span>
|
239
|
-
|
240
|
-
|
241
|
-
<span class='type'></span>
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
—
|
246
|
-
<div class='inline'>
|
247
|
-
<p>the value to set the attribute wired_actions to.</p>
|
248
|
-
</div>
|
249
|
-
|
250
|
-
</li>
|
251
|
-
|
252
|
-
</ul>
|
253
|
-
|
254
286
|
|
255
287
|
</div><table class="source_code">
|
256
288
|
<tr>
|
@@ -258,12 +290,12 @@
|
|
258
290
|
<pre class="lines">
|
259
291
|
|
260
292
|
|
261
|
-
|
262
|
-
|
263
|
-
|
293
|
+
7
|
294
|
+
8
|
295
|
+
9</pre>
|
264
296
|
</td>
|
265
297
|
<td>
|
266
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/actions.rb', line
|
298
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/actions.rb', line 7</span>
|
267
299
|
|
268
300
|
<span class='kw'>def</span> <span class='id identifier rubyid_wired_actions='>wired_actions=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
269
301
|
<span class='ivar'>@wired_actions</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
@@ -295,12 +327,12 @@
|
|
295
327
|
<pre class="lines">
|
296
328
|
|
297
329
|
|
298
|
-
|
299
|
-
|
300
|
-
|
330
|
+
9
|
331
|
+
10
|
332
|
+
11</pre>
|
301
333
|
</td>
|
302
334
|
<td>
|
303
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/actions.rb', line
|
335
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/actions.rb', line 9</span>
|
304
336
|
|
305
337
|
<span class='kw'>def</span> <span class='id identifier rubyid_actions'>actions</span>
|
306
338
|
<span class='ivar'>@wired_actions</span>
|
@@ -308,6 +340,66 @@
|
|
308
340
|
</td>
|
309
341
|
</tr>
|
310
342
|
</table>
|
343
|
+
</div>
|
344
|
+
|
345
|
+
<div class="method_details ">
|
346
|
+
<h3 class="signature " id="middleware_name-instance_method">
|
347
|
+
|
348
|
+
#<strong>middleware_name</strong> ⇒ <tt>Object</tt>
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
</h3><table class="source_code">
|
355
|
+
<tr>
|
356
|
+
<td>
|
357
|
+
<pre class="lines">
|
358
|
+
|
359
|
+
|
360
|
+
17
|
361
|
+
18
|
362
|
+
19</pre>
|
363
|
+
</td>
|
364
|
+
<td>
|
365
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/actions.rb', line 17</span>
|
366
|
+
|
367
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_middleware_name'>middleware_name</span>
|
368
|
+
<span class='const'><span class='object_link'><a href="WiredActionSet.html" title="Ovto::WiredActionSet (class)">WiredActionSet</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="WiredActionSet.html#I_AM_APP_NOT_A_MIDDLEWARE-constant" title="Ovto::WiredActionSet::I_AM_APP_NOT_A_MIDDLEWARE (constant)">I_AM_APP_NOT_A_MIDDLEWARE</a></span></span>
|
369
|
+
<span class='kw'>end</span></pre>
|
370
|
+
</td>
|
371
|
+
</tr>
|
372
|
+
</table>
|
373
|
+
</div>
|
374
|
+
|
375
|
+
<div class="method_details ">
|
376
|
+
<h3 class="signature " id="middleware_path-instance_method">
|
377
|
+
|
378
|
+
#<strong>middleware_path</strong> ⇒ <tt>Object</tt>
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
</h3><table class="source_code">
|
385
|
+
<tr>
|
386
|
+
<td>
|
387
|
+
<pre class="lines">
|
388
|
+
|
389
|
+
|
390
|
+
21
|
391
|
+
22
|
392
|
+
23</pre>
|
393
|
+
</td>
|
394
|
+
<td>
|
395
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/actions.rb', line 21</span>
|
396
|
+
|
397
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_middleware_path'>middleware_path</span>
|
398
|
+
<span class='lbracket'>[</span><span class='rbracket'>]</span>
|
399
|
+
<span class='kw'>end</span></pre>
|
400
|
+
</td>
|
401
|
+
</tr>
|
402
|
+
</table>
|
311
403
|
</div>
|
312
404
|
|
313
405
|
<div class="method_details ">
|
@@ -325,12 +417,12 @@
|
|
325
417
|
<pre class="lines">
|
326
418
|
|
327
419
|
|
328
|
-
|
329
|
-
|
330
|
-
|
420
|
+
13
|
421
|
+
14
|
422
|
+
15</pre>
|
331
423
|
</td>
|
332
424
|
<td>
|
333
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/actions.rb', line
|
425
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/actions.rb', line 13</span>
|
334
426
|
|
335
427
|
<span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
|
336
428
|
<span class='ivar'>@wired_actions</span><span class='period'>.</span><span class='id identifier rubyid__app'>_app</span><span class='period'>.</span><span class='id identifier rubyid_state'>state</span>
|
@@ -345,9 +437,9 @@
|
|
345
437
|
</div>
|
346
438
|
|
347
439
|
<div id="footer">
|
348
|
-
Generated on
|
440
|
+
Generated on Fri Feb 28 23:42:46 2020 by
|
349
441
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
350
|
-
0.9.
|
442
|
+
0.9.24 (ruby-2.5.5).
|
351
443
|
</div>
|
352
444
|
|
353
445
|
</div>
|
data/docs/api/Ovto/App.html
CHANGED
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ovto::App
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.24
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Ovto::App";
|
19
19
|
relpath = '../';
|
20
20
|
</script>
|
@@ -106,6 +106,35 @@
|
|
106
106
|
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
107
107
|
<ul class="summary">
|
108
108
|
|
109
|
+
<li class="public ">
|
110
|
+
<span class="summary_signature">
|
111
|
+
|
112
|
+
<a href="#main_component-instance_method" title="#main_component (instance method)">#<strong>main_component</strong> ⇒ Object </a>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
</span>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<span class="note title readonly">readonly</span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<span class="summary_desc"><div class='inline'>
|
132
|
+
<p>An instance of YourApp::MainComponent (mainly for testing).</p>
|
133
|
+
</div></span>
|
134
|
+
|
135
|
+
</li>
|
136
|
+
|
137
|
+
|
109
138
|
<li class="public ">
|
110
139
|
<span class="summary_signature">
|
111
140
|
|
@@ -151,6 +180,30 @@
|
|
151
180
|
<li class="public ">
|
152
181
|
<span class="summary_signature">
|
153
182
|
|
183
|
+
<a href="#middlewares-class_method" title="middlewares (class method)">.<strong>middlewares</strong> ⇒ Object </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<span class="summary_desc"><div class='inline'>
|
198
|
+
<p>List of installed middleware classes.</p>
|
199
|
+
</div></span>
|
200
|
+
|
201
|
+
</li>
|
202
|
+
|
203
|
+
|
204
|
+
<li class="public ">
|
205
|
+
<span class="summary_signature">
|
206
|
+
|
154
207
|
<a href="#run-class_method" title="run (class method)">.<strong>run</strong>(*args) ⇒ Object </a>
|
155
208
|
|
156
209
|
|
@@ -169,6 +222,30 @@
|
|
169
222
|
<p>Create an App and start it.</p>
|
170
223
|
</div></span>
|
171
224
|
|
225
|
+
</li>
|
226
|
+
|
227
|
+
|
228
|
+
<li class="public ">
|
229
|
+
<span class="summary_signature">
|
230
|
+
|
231
|
+
<a href="#use-class_method" title="use (class method)">.<strong>use</strong>(middleware_class) ⇒ Object </a>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
</span>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
<span class="summary_desc"><div class='inline'>
|
246
|
+
<p>Install a middleware.</p>
|
247
|
+
</div></span>
|
248
|
+
|
172
249
|
</li>
|
173
250
|
|
174
251
|
|
@@ -319,7 +396,7 @@
|
|
319
396
|
</h3><div class="docstring">
|
320
397
|
<div class="discussion">
|
321
398
|
|
322
|
-
<p>Returns a new instance of App
|
399
|
+
<p>Returns a new instance of App.</p>
|
323
400
|
|
324
401
|
|
325
402
|
</div>
|
@@ -333,17 +410,29 @@
|
|
333
410
|
<pre class="lines">
|
334
411
|
|
335
412
|
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
413
|
+
18
|
414
|
+
19
|
415
|
+
20
|
416
|
+
21
|
417
|
+
22
|
418
|
+
23
|
419
|
+
24
|
420
|
+
25
|
421
|
+
26
|
422
|
+
27</pre>
|
340
423
|
</td>
|
341
424
|
<td>
|
342
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line
|
425
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 18</span>
|
343
426
|
|
344
427
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
345
|
-
<span class='
|
346
|
-
<span class='
|
428
|
+
<span class='id identifier rubyid_app_state_class'>app_state_class</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_const_get'>const_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>State</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
429
|
+
<span class='comment'># Inject middleware states
|
430
|
+
</span> <span class='id identifier rubyid_app_state_class'>app_state_class</span><span class='period'>.</span><span class='id identifier rubyid_item'>item</span> <span class='symbol'>:_middlewares</span><span class='comma'>,</span> <span class='label'>default_proc:</span> <span class='tlambda'>-></span><span class='tlambeg'>{</span>
|
431
|
+
<span class='const'><span class='object_link'><a href="../Ovto.html" title="Ovto (module)">Ovto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Middleware.html" title="Ovto::Middleware (module)">Middleware</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create_middleware_states_class'><span class='object_link'><a href="Middleware.html#create_middleware_states_class-class_method" title="Ovto::Middleware.create_middleware_states_class (method)">create_middleware_states_class</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_middlewares'>middlewares</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
432
|
+
<span class='rbrace'>}</span>
|
433
|
+
<span class='ivar'>@state</span> <span class='op'>=</span> <span class='id identifier rubyid_app_state_class'>app_state_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
434
|
+
<span class='ivar'>@wired_action_set</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
435
|
+
<span class='ivar'>@main_component</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
347
436
|
<span class='kw'>end</span></pre>
|
348
437
|
</td>
|
349
438
|
</tr>
|
@@ -358,7 +447,50 @@
|
|
358
447
|
|
359
448
|
<span id=""></span>
|
360
449
|
<div class="method_details first">
|
361
|
-
<h3 class="signature first" id="
|
450
|
+
<h3 class="signature first" id="main_component-instance_method">
|
451
|
+
|
452
|
+
#<strong>main_component</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
</h3><div class="docstring">
|
459
|
+
<div class="discussion">
|
460
|
+
|
461
|
+
<p>An instance of YourApp::MainComponent (mainly for testing)</p>
|
462
|
+
|
463
|
+
|
464
|
+
</div>
|
465
|
+
</div>
|
466
|
+
<div class="tags">
|
467
|
+
|
468
|
+
|
469
|
+
</div><table class="source_code">
|
470
|
+
<tr>
|
471
|
+
<td>
|
472
|
+
<pre class="lines">
|
473
|
+
|
474
|
+
|
475
|
+
31
|
476
|
+
32
|
477
|
+
33</pre>
|
478
|
+
</td>
|
479
|
+
<td>
|
480
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 31</span>
|
481
|
+
|
482
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_main_component'>main_component</span>
|
483
|
+
<span class='ivar'>@main_component</span>
|
484
|
+
<span class='kw'>end</span></pre>
|
485
|
+
</td>
|
486
|
+
</tr>
|
487
|
+
</table>
|
488
|
+
</div>
|
489
|
+
|
490
|
+
|
491
|
+
<span id=""></span>
|
492
|
+
<div class="method_details ">
|
493
|
+
<h3 class="signature " id="state-instance_method">
|
362
494
|
|
363
495
|
#<strong>state</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
364
496
|
|
@@ -369,7 +501,7 @@
|
|
369
501
|
</h3><div class="docstring">
|
370
502
|
<div class="discussion">
|
371
503
|
|
372
|
-
<p>Returns the value of attribute state
|
504
|
+
<p>Returns the value of attribute state.</p>
|
373
505
|
|
374
506
|
|
375
507
|
</div>
|
@@ -383,12 +515,12 @@
|
|
383
515
|
<pre class="lines">
|
384
516
|
|
385
517
|
|
386
|
-
|
387
|
-
|
388
|
-
|
518
|
+
28
|
519
|
+
29
|
520
|
+
30</pre>
|
389
521
|
</td>
|
390
522
|
<td>
|
391
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line
|
523
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 28</span>
|
392
524
|
|
393
525
|
<span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
|
394
526
|
<span class='ivar'>@state</span>
|
@@ -406,9 +538,9 @@
|
|
406
538
|
|
407
539
|
|
408
540
|
<div class="method_details first">
|
409
|
-
<h3 class="signature first" id="
|
541
|
+
<h3 class="signature first" id="middlewares-class_method">
|
410
542
|
|
411
|
-
.<strong>
|
543
|
+
.<strong>middlewares</strong> ⇒ <tt>Object</tt>
|
412
544
|
|
413
545
|
|
414
546
|
|
@@ -417,7 +549,7 @@
|
|
417
549
|
</h3><div class="docstring">
|
418
550
|
<div class="discussion">
|
419
551
|
|
420
|
-
<p>
|
552
|
+
<p>List of installed middleware classes</p>
|
421
553
|
|
422
554
|
|
423
555
|
</div>
|
@@ -438,12 +570,94 @@
|
|
438
570
|
<td>
|
439
571
|
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 4</span>
|
440
572
|
|
573
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_middlewares'>middlewares</span>
|
574
|
+
<span class='ivar'>@middlewares</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
575
|
+
<span class='kw'>end</span></pre>
|
576
|
+
</td>
|
577
|
+
</tr>
|
578
|
+
</table>
|
579
|
+
</div>
|
580
|
+
|
581
|
+
<div class="method_details ">
|
582
|
+
<h3 class="signature " id="run-class_method">
|
583
|
+
|
584
|
+
.<strong>run</strong>(*args) ⇒ <tt>Object</tt>
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
</h3><div class="docstring">
|
591
|
+
<div class="discussion">
|
592
|
+
|
593
|
+
<p>Create an App and start it</p>
|
594
|
+
|
595
|
+
|
596
|
+
</div>
|
597
|
+
</div>
|
598
|
+
<div class="tags">
|
599
|
+
|
600
|
+
|
601
|
+
</div><table class="source_code">
|
602
|
+
<tr>
|
603
|
+
<td>
|
604
|
+
<pre class="lines">
|
605
|
+
|
606
|
+
|
607
|
+
9
|
608
|
+
10
|
609
|
+
11</pre>
|
610
|
+
</td>
|
611
|
+
<td>
|
612
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 9</span>
|
613
|
+
|
441
614
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
442
615
|
<span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
443
616
|
<span class='kw'>end</span></pre>
|
444
617
|
</td>
|
445
618
|
</tr>
|
446
619
|
</table>
|
620
|
+
</div>
|
621
|
+
|
622
|
+
<div class="method_details ">
|
623
|
+
<h3 class="signature " id="use-class_method">
|
624
|
+
|
625
|
+
.<strong>use</strong>(middleware_class) ⇒ <tt>Object</tt>
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
</h3><div class="docstring">
|
632
|
+
<div class="discussion">
|
633
|
+
|
634
|
+
<p>Install a middleware</p>
|
635
|
+
|
636
|
+
|
637
|
+
</div>
|
638
|
+
</div>
|
639
|
+
<div class="tags">
|
640
|
+
|
641
|
+
|
642
|
+
</div><table class="source_code">
|
643
|
+
<tr>
|
644
|
+
<td>
|
645
|
+
<pre class="lines">
|
646
|
+
|
647
|
+
|
648
|
+
14
|
649
|
+
15
|
650
|
+
16</pre>
|
651
|
+
</td>
|
652
|
+
<td>
|
653
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 14</span>
|
654
|
+
|
655
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span><span class='lparen'>(</span><span class='id identifier rubyid_middleware_class'>middleware_class</span><span class='rparen'>)</span>
|
656
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_middlewares'>middlewares</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_middleware_class'>middleware_class</span><span class='rparen'>)</span>
|
657
|
+
<span class='kw'>end</span></pre>
|
658
|
+
</td>
|
659
|
+
</tr>
|
660
|
+
</table>
|
447
661
|
</div>
|
448
662
|
|
449
663
|
</div>
|
@@ -478,12 +692,12 @@
|
|
478
692
|
<pre class="lines">
|
479
693
|
|
480
694
|
|
481
|
-
|
482
|
-
|
483
|
-
|
695
|
+
38
|
696
|
+
39
|
697
|
+
40</pre>
|
484
698
|
</td>
|
485
699
|
<td>
|
486
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line
|
700
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 38</span>
|
487
701
|
|
488
702
|
<span class='kw'>def</span> <span class='id identifier rubyid__set_state'>_set_state</span><span class='lparen'>(</span><span class='id identifier rubyid_new_state'>new_state</span><span class='rparen'>)</span>
|
489
703
|
<span class='ivar'>@state</span> <span class='op'>=</span> <span class='id identifier rubyid_new_state'>new_state</span>
|
@@ -508,15 +722,15 @@
|
|
508
722
|
<pre class="lines">
|
509
723
|
|
510
724
|
|
511
|
-
|
512
|
-
|
513
|
-
|
725
|
+
33
|
726
|
+
34
|
727
|
+
35</pre>
|
514
728
|
</td>
|
515
729
|
<td>
|
516
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line
|
730
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 33</span>
|
517
731
|
|
518
732
|
<span class='kw'>def</span> <span class='id identifier rubyid_actions'>actions</span>
|
519
|
-
<span class='ivar'>@
|
733
|
+
<span class='ivar'>@wired_action_set</span><span class='period'>.</span><span class='id identifier rubyid_app_wired_actions'>app_wired_actions</span>
|
520
734
|
<span class='kw'>end</span></pre>
|
521
735
|
</td>
|
522
736
|
</tr>
|
@@ -549,12 +763,12 @@
|
|
549
763
|
<pre class="lines">
|
550
764
|
|
551
765
|
|
552
|
-
|
553
|
-
|
554
|
-
|
766
|
+
43
|
767
|
+
44
|
768
|
+
45</pre>
|
555
769
|
</td>
|
556
770
|
<td>
|
557
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line
|
771
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 43</span>
|
558
772
|
|
559
773
|
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
560
774
|
<span class='const'><span class='object_link'><a href="../Ovto.html" title="Ovto (module)">Ovto</a></span></span><span class='period'>.</span><span class='id identifier rubyid_log_error'><span class='object_link'><a href="../Ovto.html#log_error-class_method" title="Ovto.log_error (method)">log_error</a></span></span><span class='lbrace'>{</span> <span class='id identifier rubyid__run'>_run</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
@@ -590,12 +804,12 @@
|
|
590
804
|
<pre class="lines">
|
591
805
|
|
592
806
|
|
593
|
-
|
594
|
-
|
595
|
-
|
807
|
+
48
|
808
|
+
49
|
809
|
+
50</pre>
|
596
810
|
</td>
|
597
811
|
<td>
|
598
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line
|
812
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 48</span>
|
599
813
|
|
600
814
|
<span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span>
|
601
815
|
<span class='comment'># override this if needed
|
@@ -610,9 +824,9 @@
|
|
610
824
|
</div>
|
611
825
|
|
612
826
|
<div id="footer">
|
613
|
-
Generated on
|
827
|
+
Generated on Fri Feb 28 23:42:46 2020 by
|
614
828
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
615
|
-
0.9.
|
829
|
+
0.9.24 (ruby-2.5.5).
|
616
830
|
</div>
|
617
831
|
|
618
832
|
</div>
|