ovto 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +12 -22
- data/Rakefile +1 -0
- data/docs/api/Ovto.html +231 -24
- data/docs/api/Ovto/Actions.html +173 -5
- data/docs/api/Ovto/App.html +136 -47
- data/docs/api/Ovto/Component.html +3 -3
- data/docs/api/Ovto/Component/MoreThanOneNode.html +3 -3
- data/docs/api/Ovto/Runtime.html +3 -3
- data/docs/api/Ovto/State.html +165 -18
- data/docs/api/Ovto/State/MissingValue.html +3 -3
- data/docs/api/Ovto/State/UnknownKey.html +3 -3
- data/docs/api/Ovto/WiredActions.html +15 -15
- data/docs/api/_index.html +6 -4
- data/docs/api/actions.html +44 -9
- data/docs/api/app.html +34 -8
- data/docs/api/component.html +60 -35
- data/docs/api/css/style.css +4 -7
- data/docs/api/file.README.html +5 -6
- data/docs/api/frames.html +1 -1
- data/docs/api/index.html +5 -6
- data/docs/api/js/app.js +44 -0
- data/docs/api/method_list.html +77 -13
- data/docs/api/state.html +22 -9
- data/docs/api/top-level-namespace.html +68 -3
- data/docs/guides/debugging.html +28 -5
- data/docs/guides/development.html +18 -5
- data/docs/guides/tutorial.html +18 -5
- data/docs/index.html +19 -7
- data/docs/search_index.json +1 -1
- data/example/sinatra/Gemfile.lock +4 -4
- data/example/static/Gemfile.lock +3 -3
- data/lib/ovto/version.rb +1 -1
- metadata +2 -2
data/docs/api/Ovto/App.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ovto::App
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.16
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -166,7 +166,7 @@
|
|
166
166
|
|
167
167
|
|
168
168
|
<span class="summary_desc"><div class='inline'>
|
169
|
-
<p>
|
169
|
+
<p>Create an App and start it.</p>
|
170
170
|
</div></span>
|
171
171
|
|
172
172
|
</li>
|
@@ -202,6 +202,28 @@
|
|
202
202
|
<p>Internal use only.</p>
|
203
203
|
</div></span>
|
204
204
|
|
205
|
+
</li>
|
206
|
+
|
207
|
+
|
208
|
+
<li class="public ">
|
209
|
+
<span class="summary_signature">
|
210
|
+
|
211
|
+
<a href="#actions-instance_method" title="#actions (instance method)">#<strong>actions</strong> ⇒ Object </a>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
226
|
+
|
205
227
|
</li>
|
206
228
|
|
207
229
|
|
@@ -234,7 +256,7 @@
|
|
234
256
|
<li class="public ">
|
235
257
|
<span class="summary_signature">
|
236
258
|
|
237
|
-
<a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong>(
|
259
|
+
<a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong>(*args) ⇒ Object </a>
|
238
260
|
|
239
261
|
|
240
262
|
|
@@ -252,6 +274,30 @@
|
|
252
274
|
<p>Start this app.</p>
|
253
275
|
</div></span>
|
254
276
|
|
277
|
+
</li>
|
278
|
+
|
279
|
+
|
280
|
+
<li class="public ">
|
281
|
+
<span class="summary_signature">
|
282
|
+
|
283
|
+
<a href="#setup-instance_method" title="#setup (instance method)">#<strong>setup</strong> ⇒ Object </a>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</span>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<span class="summary_desc"><div class='inline'>
|
298
|
+
<p>Called when this app is started.</p>
|
299
|
+
</div></span>
|
300
|
+
|
255
301
|
</li>
|
256
302
|
|
257
303
|
|
@@ -289,13 +335,15 @@
|
|
289
335
|
|
290
336
|
8
|
291
337
|
9
|
292
|
-
10
|
338
|
+
10
|
339
|
+
11</pre>
|
293
340
|
</td>
|
294
341
|
<td>
|
295
342
|
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 8</span>
|
296
343
|
|
297
344
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
298
345
|
<span class='ivar'>@state</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><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
346
|
+
<span class='ivar'>@wired_actions</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
299
347
|
<span class='kw'>end</span></pre>
|
300
348
|
</td>
|
301
349
|
</tr>
|
@@ -335,12 +383,12 @@
|
|
335
383
|
<pre class="lines">
|
336
384
|
|
337
385
|
|
338
|
-
11
|
339
386
|
12
|
340
|
-
13
|
387
|
+
13
|
388
|
+
14</pre>
|
341
389
|
</td>
|
342
390
|
<td>
|
343
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line
|
391
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 12</span>
|
344
392
|
|
345
393
|
<span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
|
346
394
|
<span class='ivar'>@state</span>
|
@@ -369,7 +417,7 @@
|
|
369
417
|
</h3><div class="docstring">
|
370
418
|
<div class="discussion">
|
371
419
|
|
372
|
-
<p>
|
420
|
+
<p>Create an App and start it</p>
|
373
421
|
|
374
422
|
|
375
423
|
</div>
|
@@ -391,7 +439,7 @@
|
|
391
439
|
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 4</span>
|
392
440
|
|
393
441
|
<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>
|
394
|
-
<span class='
|
442
|
+
<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>
|
395
443
|
<span class='kw'>end</span></pre>
|
396
444
|
</td>
|
397
445
|
</tr>
|
@@ -430,6 +478,36 @@
|
|
430
478
|
<pre class="lines">
|
431
479
|
|
432
480
|
|
481
|
+
19
|
482
|
+
20
|
483
|
+
21</pre>
|
484
|
+
</td>
|
485
|
+
<td>
|
486
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 19</span>
|
487
|
+
|
488
|
+
<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
|
+
<span class='ivar'>@state</span> <span class='op'>=</span> <span class='id identifier rubyid_new_state'>new_state</span>
|
490
|
+
<span class='kw'>end</span></pre>
|
491
|
+
</td>
|
492
|
+
</tr>
|
493
|
+
</table>
|
494
|
+
</div>
|
495
|
+
|
496
|
+
<div class="method_details ">
|
497
|
+
<h3 class="signature " id="actions-instance_method">
|
498
|
+
|
499
|
+
#<strong>actions</strong> ⇒ <tt>Object</tt>
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
</h3><table class="source_code">
|
506
|
+
<tr>
|
507
|
+
<td>
|
508
|
+
<pre class="lines">
|
509
|
+
|
510
|
+
|
433
511
|
14
|
434
512
|
15
|
435
513
|
16</pre>
|
@@ -437,8 +515,8 @@
|
|
437
515
|
<td>
|
438
516
|
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 14</span>
|
439
517
|
|
440
|
-
<span class='kw'>def</span> <span class='id identifier
|
441
|
-
<span class='ivar'>@
|
518
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_actions'>actions</span>
|
519
|
+
<span class='ivar'>@wired_actions</span>
|
442
520
|
<span class='kw'>end</span></pre>
|
443
521
|
</td>
|
444
522
|
</tr>
|
@@ -448,7 +526,7 @@
|
|
448
526
|
<div class="method_details ">
|
449
527
|
<h3 class="signature " id="run-instance_method">
|
450
528
|
|
451
|
-
#<strong>run</strong>(
|
529
|
+
#<strong>run</strong>(*args) ⇒ <tt>Object</tt>
|
452
530
|
|
453
531
|
|
454
532
|
|
@@ -471,46 +549,57 @@
|
|
471
549
|
<pre class="lines">
|
472
550
|
|
473
551
|
|
474
|
-
19
|
475
|
-
20
|
476
|
-
21
|
477
|
-
22
|
478
|
-
23
|
479
552
|
24
|
480
553
|
25
|
481
|
-
26
|
482
|
-
|
483
|
-
|
554
|
+
26</pre>
|
555
|
+
</td>
|
556
|
+
<td>
|
557
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 24</span>
|
558
|
+
|
559
|
+
<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
|
+
<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>
|
561
|
+
<span class='kw'>end</span></pre>
|
562
|
+
</td>
|
563
|
+
</tr>
|
564
|
+
</table>
|
565
|
+
</div>
|
566
|
+
|
567
|
+
<div class="method_details ">
|
568
|
+
<h3 class="signature " id="setup-instance_method">
|
569
|
+
|
570
|
+
#<strong>setup</strong> ⇒ <tt>Object</tt>
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
</h3><div class="docstring">
|
577
|
+
<div class="discussion">
|
578
|
+
|
579
|
+
<p>Called when this app is started</p>
|
580
|
+
|
581
|
+
|
582
|
+
</div>
|
583
|
+
</div>
|
584
|
+
<div class="tags">
|
585
|
+
|
586
|
+
|
587
|
+
</div><table class="source_code">
|
588
|
+
<tr>
|
589
|
+
<td>
|
590
|
+
<pre class="lines">
|
591
|
+
|
592
|
+
|
484
593
|
29
|
485
594
|
30
|
486
|
-
31
|
487
|
-
32
|
488
|
-
33
|
489
|
-
34
|
490
|
-
35
|
491
|
-
36</pre>
|
595
|
+
31</pre>
|
492
596
|
</td>
|
493
597
|
<td>
|
494
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line
|
598
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/app.rb', line 29</span>
|
495
599
|
|
496
|
-
<span class='kw'>def</span> <span class='id identifier
|
497
|
-
<span class='
|
498
|
-
|
499
|
-
<span class='id identifier rubyid_view'>view</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'>View</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_wired_actions'>wired_actions</span><span class='rparen'>)</span>
|
500
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span>
|
501
|
-
<span class='backtick'>%x{</span><span class='tstring_content'>
|
502
|
-
document.addEventListener('DOMContentLoaded', function(){
|
503
|
-
var container = document.getElementById(id);
|
504
|
-
if (!container) {
|
505
|
-
throw "Ovto::App#run: tag with id='" + id + "' was not found";
|
506
|
-
}
|
507
|
-
</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_runtime'>runtime</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_view'>view</span><span class='comma'>,</span> <span class='backtick'>`</span><span class='tstring_content'>container</span><span class='tstring_end'>`</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>
|
508
|
-
});
|
509
|
-
</span><span class='tstring_end'>}</span></span>
|
510
|
-
<span class='kw'>else</span>
|
511
|
-
<span class='id identifier rubyid_runtime'>runtime</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_view'>view</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
512
|
-
<span class='kw'>end</span>
|
513
|
-
<span class='kw'>end</span></pre>
|
600
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span>
|
601
|
+
<span class='comment'># override this if needed
|
602
|
+
</span><span class='kw'>end</span></pre>
|
514
603
|
</td>
|
515
604
|
</tr>
|
516
605
|
</table>
|
@@ -521,9 +610,9 @@
|
|
521
610
|
</div>
|
522
611
|
|
523
612
|
<div id="footer">
|
524
|
-
Generated on
|
613
|
+
Generated on Wed Nov 7 18:02:01 2018 by
|
525
614
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
526
|
-
0.9.
|
615
|
+
0.9.16 (ruby-2.5.3).
|
527
616
|
</div>
|
528
617
|
|
529
618
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ovto::Component
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.16
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -340,9 +340,9 @@
|
|
340
340
|
</div>
|
341
341
|
|
342
342
|
<div id="footer">
|
343
|
-
Generated on
|
343
|
+
Generated on Wed Nov 7 18:02:02 2018 by
|
344
344
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
345
|
-
0.9.
|
345
|
+
0.9.16 (ruby-2.5.3).
|
346
346
|
</div>
|
347
347
|
|
348
348
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Ovto::Component::MoreThanOneNode
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.16
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -125,9 +125,9 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Wed Nov 7 18:02:02 2018 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
-
0.9.
|
130
|
+
0.9.16 (ruby-2.5.3).
|
131
131
|
</div>
|
132
132
|
|
133
133
|
</div>
|
data/docs/api/Ovto/Runtime.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ovto::Runtime
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.16
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -305,9 +305,9 @@
|
|
305
305
|
</div>
|
306
306
|
|
307
307
|
<div id="footer">
|
308
|
-
Generated on
|
308
|
+
Generated on Wed Nov 7 18:02:02 2018 by
|
309
309
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
310
|
-
0.9.
|
310
|
+
0.9.16 (ruby-2.5.3).
|
311
311
|
</div>
|
312
312
|
|
313
313
|
</div>
|
data/docs/api/Ovto/State.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ovto::State
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.16
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -113,6 +113,40 @@
|
|
113
113
|
|
114
114
|
|
115
115
|
|
116
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#values-instance_method" title="#values (instance method)">#<strong>values</strong> ⇒ Object </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<span class="note title readonly">readonly</span>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<span class="summary_desc"><div class='inline'>
|
142
|
+
<p>Returns the value of attribute values.</p>
|
143
|
+
</div></span>
|
144
|
+
|
145
|
+
</li>
|
146
|
+
|
147
|
+
|
148
|
+
</ul>
|
149
|
+
|
116
150
|
|
117
151
|
|
118
152
|
|
@@ -208,6 +242,30 @@
|
|
208
242
|
<li class="public ">
|
209
243
|
<span class="summary_signature">
|
210
244
|
|
245
|
+
<a href="#==-instance_method" title="#== (instance method)">#<strong>==</strong>(other) ⇒ Object </a>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
</span>
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<span class="summary_desc"><div class='inline'>
|
260
|
+
<p>Return true if a State object `other` has same key-value paris as `self`.</p>
|
261
|
+
</div></span>
|
262
|
+
|
263
|
+
</li>
|
264
|
+
|
265
|
+
|
266
|
+
<li class="public ">
|
267
|
+
<span class="summary_signature">
|
268
|
+
|
211
269
|
<a href="#[]-instance_method" title="#[] (instance method)">#<strong>[]</strong>(key) ⇒ Object </a>
|
212
270
|
|
213
271
|
|
@@ -396,6 +454,54 @@
|
|
396
454
|
|
397
455
|
</div>
|
398
456
|
|
457
|
+
<div id="instance_attr_details" class="attr_details">
|
458
|
+
<h2>Instance Attribute Details</h2>
|
459
|
+
|
460
|
+
|
461
|
+
<span id=""></span>
|
462
|
+
<div class="method_details first">
|
463
|
+
<h3 class="signature first" id="values-instance_method">
|
464
|
+
|
465
|
+
#<strong>values</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
</h3><div class="docstring">
|
472
|
+
<div class="discussion">
|
473
|
+
|
474
|
+
<p>Returns the value of attribute values</p>
|
475
|
+
|
476
|
+
|
477
|
+
</div>
|
478
|
+
</div>
|
479
|
+
<div class="tags">
|
480
|
+
|
481
|
+
|
482
|
+
</div><table class="source_code">
|
483
|
+
<tr>
|
484
|
+
<td>
|
485
|
+
<pre class="lines">
|
486
|
+
|
487
|
+
|
488
|
+
40
|
489
|
+
41
|
490
|
+
42</pre>
|
491
|
+
</td>
|
492
|
+
<td>
|
493
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 40</span>
|
494
|
+
|
495
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_values'>values</span>
|
496
|
+
<span class='ivar'>@values</span>
|
497
|
+
<span class='kw'>end</span></pre>
|
498
|
+
</td>
|
499
|
+
</tr>
|
500
|
+
</table>
|
501
|
+
</div>
|
502
|
+
|
503
|
+
</div>
|
504
|
+
|
399
505
|
|
400
506
|
<div id="class_method_details" class="method_details_list">
|
401
507
|
<h2>Class Method Details</h2>
|
@@ -535,7 +641,48 @@
|
|
535
641
|
|
536
642
|
|
537
643
|
<div class="method_details first">
|
538
|
-
<h3 class="signature first" id="
|
644
|
+
<h3 class="signature first" id="==-instance_method">
|
645
|
+
|
646
|
+
#<strong>==</strong>(other) ⇒ <tt>Object</tt>
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
|
651
|
+
|
652
|
+
</h3><div class="docstring">
|
653
|
+
<div class="discussion">
|
654
|
+
|
655
|
+
<p>Return true if a State object `other` has same key-value paris as `self`</p>
|
656
|
+
|
657
|
+
|
658
|
+
</div>
|
659
|
+
</div>
|
660
|
+
<div class="tags">
|
661
|
+
|
662
|
+
|
663
|
+
</div><table class="source_code">
|
664
|
+
<tr>
|
665
|
+
<td>
|
666
|
+
<pre class="lines">
|
667
|
+
|
668
|
+
|
669
|
+
57
|
670
|
+
58
|
671
|
+
59</pre>
|
672
|
+
</td>
|
673
|
+
<td>
|
674
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 57</span>
|
675
|
+
|
676
|
+
<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>
|
677
|
+
<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'>&&</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>
|
678
|
+
<span class='kw'>end</span></pre>
|
679
|
+
</td>
|
680
|
+
</tr>
|
681
|
+
</table>
|
682
|
+
</div>
|
683
|
+
|
684
|
+
<div class="method_details ">
|
685
|
+
<h3 class="signature " id="[]-instance_method">
|
539
686
|
|
540
687
|
#<strong>[]</strong>(key) ⇒ <tt>Object</tt>
|
541
688
|
|
@@ -560,12 +707,12 @@
|
|
560
707
|
<pre class="lines">
|
561
708
|
|
562
709
|
|
563
|
-
51
|
564
710
|
52
|
565
|
-
53
|
711
|
+
53
|
712
|
+
54</pre>
|
566
713
|
</td>
|
567
714
|
<td>
|
568
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
715
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 52</span>
|
569
716
|
|
570
717
|
<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>
|
571
718
|
<span class='ivar'>@values</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
|
@@ -590,12 +737,12 @@
|
|
590
737
|
<pre class="lines">
|
591
738
|
|
592
739
|
|
593
|
-
|
594
|
-
|
595
|
-
|
740
|
+
65
|
741
|
+
66
|
742
|
+
67</pre>
|
596
743
|
</td>
|
597
744
|
<td>
|
598
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
745
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 65</span>
|
599
746
|
|
600
747
|
<span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
|
601
748
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#<</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'>></span><span class='tstring_end'>"</span></span>
|
@@ -631,16 +778,16 @@
|
|
631
778
|
<pre class="lines">
|
632
779
|
|
633
780
|
|
634
|
-
42
|
635
781
|
43
|
636
782
|
44
|
637
783
|
45
|
638
784
|
46
|
639
785
|
47
|
640
|
-
48
|
786
|
+
48
|
787
|
+
49</pre>
|
641
788
|
</td>
|
642
789
|
<td>
|
643
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
790
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 43</span>
|
644
791
|
|
645
792
|
<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>
|
646
793
|
<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'>&</span><span class='symbol'>:first</span><span class='rparen'>)</span>
|
@@ -669,12 +816,12 @@
|
|
669
816
|
<pre class="lines">
|
670
817
|
|
671
818
|
|
672
|
-
|
673
|
-
|
674
|
-
|
819
|
+
61
|
820
|
+
62
|
821
|
+
63</pre>
|
675
822
|
</td>
|
676
823
|
<td>
|
677
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
824
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 61</span>
|
678
825
|
|
679
826
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
680
827
|
<span class='ivar'>@values</span>
|
@@ -689,9 +836,9 @@
|
|
689
836
|
</div>
|
690
837
|
|
691
838
|
<div id="footer">
|
692
|
-
Generated on
|
839
|
+
Generated on Wed Nov 7 18:02:02 2018 by
|
693
840
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
694
|
-
0.9.
|
841
|
+
0.9.16 (ruby-2.5.3).
|
695
842
|
</div>
|
696
843
|
|
697
844
|
</div>
|