ovto 0.6.0.rc1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -2
  3. data/Gemfile.lock +1 -1
  4. data/book/SUMMARY.md +1 -0
  5. data/book/api/actions.md +1 -1
  6. data/book/api/middleware.md +93 -0
  7. data/docs/api/Ovto.html +222 -25
  8. data/docs/api/Ovto/Actions.html +132 -40
  9. data/docs/api/Ovto/App.html +254 -40
  10. data/docs/api/Ovto/Component.html +96 -29
  11. data/docs/api/Ovto/Component/MoreThanOneNode.html +6 -6
  12. data/docs/api/Ovto/PureComponent.html +11 -11
  13. data/docs/api/Ovto/PureComponent/StateIsNotAvailable.html +6 -6
  14. data/docs/api/Ovto/Runtime.html +7 -7
  15. data/docs/api/Ovto/State.html +58 -42
  16. data/docs/api/Ovto/State/MissingValue.html +6 -6
  17. data/docs/api/Ovto/WiredActions.html +78 -35
  18. data/docs/api/_index.html +54 -11
  19. data/docs/api/actions.html +1 -1
  20. data/docs/api/app.html +1 -1
  21. data/docs/api/class_list.html +3 -3
  22. data/docs/api/component.html +1 -1
  23. data/docs/api/css/style.css +2 -2
  24. data/docs/api/fetch.html +1 -1
  25. data/docs/api/file.README.html +6 -6
  26. data/docs/api/file_list.html +2 -2
  27. data/docs/api/frames.html +2 -2
  28. data/docs/api/index.html +6 -6
  29. data/docs/api/js/app.js +14 -3
  30. data/docs/api/method_list.html +270 -30
  31. data/docs/api/pure_component.html +1 -1
  32. data/docs/api/state.html +1 -1
  33. data/docs/api/top-level-namespace.html +6 -6
  34. data/docs/guides/debugging.html +1 -1
  35. data/docs/guides/development.html +1 -1
  36. data/docs/guides/install.html +1 -1
  37. data/docs/guides/tutorial.html +1 -1
  38. data/docs/index.html +1 -1
  39. data/examples/static/Gemfile.lock +1 -1
  40. data/lib/ovto/version.rb +1 -1
  41. metadata +5 -5
  42. data/docs/api/Ovto/State/UnknownKey.html +0 -135
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Class: Ovto::Component
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.24
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Ovto::Component";
19
19
  relpath = '../';
20
20
  </script>
@@ -101,7 +101,7 @@
101
101
 
102
102
  <div id="subclasses">
103
103
  <h2>Direct Known Subclasses</h2>
104
- <p class="children"><span class='object_link'><a href="PureComponent.html" title="Ovto::PureComponent (class)">PureComponent</a></span></p>
104
+ <p class="children"><span class='object_link'><a href="Middleware/Component.html" title="Ovto::Middleware::Component (class)">Middleware::Component</a></span>, <span class='object_link'><a href="PureComponent.html" title="Ovto::PureComponent (class)">PureComponent</a></span></p>
105
105
  </div>
106
106
  <h2>Defined Under Namespace</h2>
107
107
  <p class="children">
@@ -147,6 +147,30 @@
147
147
 
148
148
  <span class="summary_desc"><div class='inline'></div></span>
149
149
 
150
+ </li>
151
+
152
+
153
+ <li class="public ">
154
+ <span class="summary_signature">
155
+
156
+ <a href="#middleware_name-class_method" title="middleware_name (class method)">.<strong>middleware_name</strong> &#x21d2; Object </a>
157
+
158
+
159
+
160
+ </span>
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+ <span class="summary_desc"><div class='inline'>
171
+ <p>(internal) Defined for convenience.</p>
172
+ </div></span>
173
+
150
174
  </li>
151
175
 
152
176
 
@@ -162,7 +186,7 @@
162
186
  <li class="public ">
163
187
  <span class="summary_signature">
164
188
 
165
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(wired_actions) &#x21d2; Component </a>
189
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(wired_action_set, middleware_path = []) &#x21d2; Component </a>
166
190
 
167
191
 
168
192
 
@@ -238,7 +262,7 @@
238
262
  <div class="method_details first">
239
263
  <h3 class="signature first" id="initialize-instance_method">
240
264
 
241
- #<strong>initialize</strong>(wired_actions) &#x21d2; <tt><span class='object_link'><a href="" title="Ovto::Component (class)">Component</a></span></tt>
265
+ #<strong>initialize</strong>(wired_action_set, middleware_path = []) &#x21d2; <tt><span class='object_link'><a href="" title="Ovto::Component (class)">Component</a></span></tt>
242
266
 
243
267
 
244
268
 
@@ -247,7 +271,7 @@
247
271
  </h3><div class="docstring">
248
272
  <div class="discussion">
249
273
 
250
- <p>Returns a new instance of Component</p>
274
+ <p>Returns a new instance of Component.</p>
251
275
 
252
276
 
253
277
  </div>
@@ -261,21 +285,23 @@
261
285
  <pre class="lines">
262
286
 
263
287
 
264
- 16
265
- 17
266
- 18
267
- 19
268
- 20
269
288
  21
270
- 22</pre>
289
+ 22
290
+ 23
291
+ 24
292
+ 25
293
+ 26
294
+ 27
295
+ 28</pre>
271
296
  </td>
272
297
  <td>
273
- <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 16</span>
298
+ <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 21</span>
274
299
 
275
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_wired_actions'>wired_actions</span><span class='rparen'>)</span>
276
- <span class='ivar'>@wired_actions</span> <span class='op'>=</span> <span class='id identifier rubyid_wired_actions'>wired_actions</span>
300
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_wired_action_set'>wired_action_set</span><span class='comma'>,</span> <span class='id identifier rubyid_middleware_path'>middleware_path</span><span class='op'>=</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
301
+ <span class='ivar'>@wired_action_set</span> <span class='op'>=</span> <span class='id identifier rubyid_wired_action_set'>wired_action_set</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="WiredActionSet.html" title="Ovto::WiredActionSet (class)">WiredActionSet</a></span></span><span class='period'>.</span><span class='id identifier rubyid_dummy'><span class='object_link'><a href="WiredActionSet.html#dummy-class_method" title="Ovto::WiredActionSet.dummy (method)">dummy</a></span></span>
302
+ <span class='ivar'>@middleware_path</span> <span class='op'>=</span> <span class='id identifier rubyid_middleware_path'>middleware_path</span>
277
303
  <span class='comment'># Initialize here for the unit tests
278
- </span> <span class='ivar'>@vdom_tree</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
304
+ </span> <span class='ivar'>@vdom_stack</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
279
305
  <span class='ivar'>@components</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
280
306
  <span class='ivar'>@components_index</span> <span class='op'>=</span> <span class='int'>0</span>
281
307
  <span class='kw'>end</span></pre>
@@ -327,6 +353,47 @@
327
353
  </td>
328
354
  </tr>
329
355
  </table>
356
+ </div>
357
+
358
+ <div class="method_details ">
359
+ <h3 class="signature " id="middleware_name-class_method">
360
+
361
+ .<strong>middleware_name</strong> &#x21d2; <tt>Object</tt>
362
+
363
+
364
+
365
+
366
+
367
+ </h3><div class="docstring">
368
+ <div class="discussion">
369
+
370
+ <p>(internal) Defined for convenience</p>
371
+
372
+
373
+ </div>
374
+ </div>
375
+ <div class="tags">
376
+
377
+
378
+ </div><table class="source_code">
379
+ <tr>
380
+ <td>
381
+ <pre class="lines">
382
+
383
+
384
+ 17
385
+ 18
386
+ 19</pre>
387
+ </td>
388
+ <td>
389
+ <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 17</span>
390
+
391
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_middleware_name'>middleware_name</span>
392
+ <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>
393
+ <span class='kw'>end</span></pre>
394
+ </td>
395
+ </tr>
396
+ </table>
330
397
  </div>
331
398
 
332
399
  </div>
@@ -350,12 +417,12 @@
350
417
  <pre class="lines">
351
418
 
352
419
 
353
- 24
354
- 25
355
- 26</pre>
420
+ 30
421
+ 31
422
+ 32</pre>
356
423
  </td>
357
424
  <td>
358
- <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 24</span>
425
+ <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 30</span>
359
426
 
360
427
  <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
361
428
  <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
@@ -380,15 +447,15 @@
380
447
  <pre class="lines">
381
448
 
382
449
 
383
- 28
384
- 29
385
- 30</pre>
450
+ 34
451
+ 35
452
+ 36</pre>
386
453
  </td>
387
454
  <td>
388
- <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 28</span>
455
+ <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 34</span>
389
456
 
390
457
  <span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
391
- <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>
458
+ <span class='ivar'>@wired_action_set</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>
392
459
  <span class='kw'>end</span></pre>
393
460
  </td>
394
461
  </tr>
@@ -400,9 +467,9 @@
400
467
  </div>
401
468
 
402
469
  <div id="footer">
403
- Generated on Sun Dec 22 22:06:05 2019 by
470
+ Generated on Fri Feb 28 23:42:46 2020 by
404
471
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
405
- 0.9.20 (ruby-2.5.5).
472
+ 0.9.24 (ruby-2.5.5).
406
473
  </div>
407
474
 
408
475
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Exception: Ovto::Component::MoreThanOneNode
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.24
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Ovto::Component::MoreThanOneNode";
19
19
  relpath = '../../';
20
20
  </script>
@@ -125,9 +125,9 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Sun Dec 22 22:06:05 2019 by
128
+ Generated on Fri Feb 28 23:42:46 2020 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
- 0.9.20 (ruby-2.5.5).
130
+ 0.9.24 (ruby-2.5.5).
131
131
  </div>
132
132
 
133
133
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Class: Ovto::PureComponent
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.24
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Ovto::PureComponent";
19
19
  relpath = '../';
20
20
  </script>
@@ -151,7 +151,7 @@
151
151
  <li class="public ">
152
152
  <span class="summary_signature">
153
153
 
154
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(wired_actions) &#x21d2; PureComponent </a>
154
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(*args) &#x21d2; PureComponent </a>
155
155
 
156
156
 
157
157
 
@@ -209,14 +209,14 @@
209
209
 
210
210
 
211
211
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Component.html" title="Ovto::Component (class)">Component</a></span></h3>
212
- <p class="inherited"><span class='object_link'><a href="Component.html#hash_to_js_obj-class_method" title="Ovto::Component.hash_to_js_obj (method)">hash_to_js_obj</a></span>, <span class='object_link'><a href="Component.html#render-instance_method" title="Ovto::Component#render (method)">#render</a></span></p>
212
+ <p class="inherited"><span class='object_link'><a href="Component.html#hash_to_js_obj-class_method" title="Ovto::Component.hash_to_js_obj (method)">hash_to_js_obj</a></span>, <span class='object_link'><a href="Component.html#middleware_name-class_method" title="Ovto::Component.middleware_name (method)">middleware_name</a></span>, <span class='object_link'><a href="Component.html#render-instance_method" title="Ovto::Component#render (method)">#render</a></span></p>
213
213
  <div id="constructor_details" class="method_details_list">
214
214
  <h2>Constructor Details</h2>
215
215
 
216
216
  <div class="method_details first">
217
217
  <h3 class="signature first" id="initialize-instance_method">
218
218
 
219
- #<strong>initialize</strong>(wired_actions) &#x21d2; <tt><span class='object_link'><a href="" title="Ovto::PureComponent (class)">PureComponent</a></span></tt>
219
+ #<strong>initialize</strong>(*args) &#x21d2; <tt><span class='object_link'><a href="" title="Ovto::PureComponent (class)">PureComponent</a></span></tt>
220
220
 
221
221
 
222
222
 
@@ -225,7 +225,7 @@
225
225
  </h3><div class="docstring">
226
226
  <div class="discussion">
227
227
 
228
- <p>Returns a new instance of PureComponent</p>
228
+ <p>Returns a new instance of PureComponent.</p>
229
229
 
230
230
 
231
231
  </div>
@@ -248,7 +248,7 @@
248
248
  <td>
249
249
  <pre class="code"><span class="info file"># File 'lib/ovto/pure_component.rb', line 5</span>
250
250
 
251
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_wired_actions'>wired_actions</span><span class='rparen'>)</span>
251
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
252
252
  <span class='kw'>super</span>
253
253
  <span class='ivar'>@prev_props</span> <span class='op'>=</span> <span class='kw'>nil</span>
254
254
  <span class='ivar'>@cache</span> <span class='op'>=</span> <span class='kw'>nil</span>
@@ -358,9 +358,9 @@
358
358
  </div>
359
359
 
360
360
  <div id="footer">
361
- Generated on Sun Dec 22 22:06:05 2019 by
361
+ Generated on Fri Feb 28 23:42:46 2020 by
362
362
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
363
- 0.9.20 (ruby-2.5.5).
363
+ 0.9.24 (ruby-2.5.5).
364
364
  </div>
365
365
 
366
366
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Exception: Ovto::PureComponent::StateIsNotAvailable
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.24
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Ovto::PureComponent::StateIsNotAvailable";
19
19
  relpath = '../../';
20
20
  </script>
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sun Dec 22 22:06:05 2019 by
117
+ Generated on Fri Feb 28 23:42:46 2020 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.20 (ruby-2.5.5).
119
+ 0.9.24 (ruby-2.5.5).
120
120
  </div>
121
121
 
122
122
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Class: Ovto::Runtime
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.24
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Ovto::Runtime";
19
19
  relpath = '../';
20
20
  </script>
@@ -202,7 +202,7 @@
202
202
  </h3><div class="docstring">
203
203
  <div class="discussion">
204
204
 
205
- <p>Returns a new instance of Runtime</p>
205
+ <p>Returns a new instance of Runtime.</p>
206
206
 
207
207
 
208
208
  </div>
@@ -313,9 +313,9 @@
313
313
  </div>
314
314
 
315
315
  <div id="footer">
316
- Generated on Sun Dec 22 22:06:04 2019 by
316
+ Generated on Fri Feb 28 23:42:46 2020 by
317
317
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
318
- 0.9.20 (ruby-2.5.5).
318
+ 0.9.24 (ruby-2.5.5).
319
319
  </div>
320
320
 
321
321
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Class: Ovto::State
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.24
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Ovto::State";
19
19
  relpath = '../';
20
20
  </script>
@@ -105,7 +105,7 @@
105
105
 
106
106
 
107
107
 
108
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="State/MissingValue.html" title="Ovto::State::MissingValue (class)">MissingValue</a></span>, <span class='object_link'><a href="State/UnknownKey.html" title="Ovto::State::UnknownKey (class)">UnknownKey</a></span>
108
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="State/MissingValue.html" title="Ovto::State::MissingValue (class)">MissingValue</a></span>, <span class='object_link'><a href="State/UnknownStateKey.html" title="Ovto::State::UnknownStateKey (class)">UnknownStateKey</a></span>
109
109
 
110
110
 
111
111
  </p>
@@ -399,7 +399,7 @@
399
399
  </h3><div class="docstring">
400
400
  <div class="discussion">
401
401
 
402
- <p>Returns a new instance of State</p>
402
+ <p>Returns a new instance of State.</p>
403
403
 
404
404
 
405
405
  </div>
@@ -427,7 +427,15 @@
427
427
  39
428
428
  40
429
429
  41
430
- 42</pre>
430
+ 42
431
+ 43
432
+ 44
433
+ 45
434
+ 46
435
+ 47
436
+ 48
437
+ 49
438
+ 50</pre>
431
439
  </td>
432
440
  <td>
433
441
  <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 28</span>
@@ -435,15 +443,23 @@
435
443
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
436
444
  <span class='id identifier rubyid_unknown_keys'>unknown_keys</span> <span class='op'>=</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</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_item_specs'>item_specs</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:first</span><span class='rparen'>)</span>
437
445
  <span class='kw'>if</span> <span class='id identifier rubyid_unknown_keys'>unknown_keys</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span>
438
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="State/UnknownKey.html" title="Ovto::State::UnknownKey (class)">UnknownKey</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unknown key(s): </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_unknown_keys'>unknown_keys</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
446
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="State/UnknownStateKey.html" title="Ovto::State::UnknownStateKey (class)">UnknownStateKey</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unknown key(s): </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_unknown_keys'>unknown_keys</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
439
447
  <span class='kw'>end</span>
440
448
 
441
449
  <span class='ivar'>@values</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_item_specs'>item_specs</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>|</span>
442
- <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:default</span><span class='rparen'>)</span>
450
+ <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:default</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:default_proc</span><span class='rparen'>)</span>
443
451
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="State/MissingValue.html" title="Ovto::State::MissingValue (class)">MissingValue</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> is mandatory for </span><span class='embexpr_beg'>#{</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_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>.new</span><span class='tstring_end'>&quot;</span></span>
444
452
  <span class='kw'>end</span>
445
453
  <span class='comment'># Note that `hash[key]` may be false or nil
446
- </span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:default</span><span class='rbracket'>]</span>
454
+ </span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>if</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
455
+ <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span>
456
+ <span class='kw'>elsif</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:default</span><span class='rparen'>)</span>
457
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:default</span><span class='rbracket'>]</span>
458
+ <span class='kw'>elsif</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:default_proc</span><span class='rparen'>)</span>
459
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:default_proc</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
460
+ <span class='kw'>else</span>
461
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>must not happen</span><span class='tstring_end'>&quot;</span></span>
462
+ <span class='kw'>end</span>
447
463
  <span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rbracket'>]</span>
448
464
  <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
449
465
  <span class='kw'>end</span></pre>
@@ -471,7 +487,7 @@
471
487
  </h3><div class="docstring">
472
488
  <div class="discussion">
473
489
 
474
- <p>Returns the value of attribute values</p>
490
+ <p>Returns the value of attribute values.</p>
475
491
 
476
492
 
477
493
  </div>
@@ -485,12 +501,12 @@
485
501
  <pre class="lines">
486
502
 
487
503
 
488
- 43
489
- 44
490
- 45</pre>
504
+ 51
505
+ 52
506
+ 53</pre>
491
507
  </td>
492
508
  <td>
493
- <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 43</span>
509
+ <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 51</span>
494
510
 
495
511
  <span class='kw'>def</span> <span class='id identifier rubyid_values'>values</span>
496
512
  <span class='ivar'>@values</span>
@@ -672,12 +688,12 @@
672
688
  <pre class="lines">
673
689
 
674
690
 
675
- 60
676
- 61
677
- 62</pre>
691
+ 68
692
+ 69
693
+ 70</pre>
678
694
  </td>
679
695
  <td>
680
- <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 60</span>
696
+ <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 68</span>
681
697
 
682
698
  <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
683
699
  <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="" title="Ovto::State (class)">State</a></span></span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span>
@@ -713,12 +729,12 @@
713
729
  <pre class="lines">
714
730
 
715
731
 
716
- 55
717
- 56
718
- 57</pre>
732
+ 63
733
+ 64
734
+ 65</pre>
719
735
  </td>
720
736
  <td>
721
- <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 55</span>
737
+ <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 63</span>
722
738
 
723
739
  <span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
724
740
  <span class='ivar'>@values</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
@@ -743,12 +759,12 @@
743
759
  <pre class="lines">
744
760
 
745
761
 
746
- 68
747
- 69
748
- 70</pre>
762
+ 76
763
+ 77
764
+ 78</pre>
749
765
  </td>
750
766
  <td>
751
- <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 68</span>
767
+ <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 76</span>
752
768
 
753
769
  <span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
754
770
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>#&lt;</span><span class='embexpr_beg'>#{</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_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_object_id'>object_id</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@values</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>&gt;</span><span class='tstring_end'>&quot;</span></span>
@@ -784,21 +800,21 @@
784
800
  <pre class="lines">
785
801
 
786
802
 
787
- 46
788
- 47
789
- 48
790
- 49
791
- 50
792
- 51
793
- 52</pre>
803
+ 54
804
+ 55
805
+ 56
806
+ 57
807
+ 58
808
+ 59
809
+ 60</pre>
794
810
  </td>
795
811
  <td>
796
- <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 46</span>
812
+ <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 54</span>
797
813
 
798
814
  <span class='kw'>def</span> <span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
799
815
  <span class='id identifier rubyid_unknown_keys'>unknown_keys</span> <span class='op'>=</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</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_item_specs'>item_specs</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:first</span><span class='rparen'>)</span>
800
816
  <span class='kw'>if</span> <span class='id identifier rubyid_unknown_keys'>unknown_keys</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span>
801
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="State/UnknownKey.html" title="Ovto::State::UnknownKey (class)">UnknownKey</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unknown key(s): </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_unknown_keys'>unknown_keys</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
817
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="State/UnknownStateKey.html" title="Ovto::State::UnknownStateKey (class)">UnknownStateKey</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unknown key(s): </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_unknown_keys'>unknown_keys</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
802
818
  <span class='kw'>end</span>
803
819
  <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_new'>new</span><span class='lparen'>(</span><span class='ivar'>@values</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span><span class='rparen'>)</span>
804
820
  <span class='kw'>end</span></pre>
@@ -822,12 +838,12 @@
822
838
  <pre class="lines">
823
839
 
824
840
 
825
- 64
826
- 65
827
- 66</pre>
841
+ 72
842
+ 73
843
+ 74</pre>
828
844
  </td>
829
845
  <td>
830
- <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 64</span>
846
+ <pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 72</span>
831
847
 
832
848
  <span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
833
849
  <span class='ivar'>@values</span>
@@ -842,9 +858,9 @@
842
858
  </div>
843
859
 
844
860
  <div id="footer">
845
- Generated on Sun Dec 22 22:06:04 2019 by
861
+ Generated on Fri Feb 28 23:42:46 2020 by
846
862
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
847
- 0.9.20 (ruby-2.5.5).
863
+ 0.9.24 (ruby-2.5.5).
848
864
  </div>
849
865
 
850
866
  </div>