term_utils 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -2
- data/COPYING +3 -3
- data/README.md +51 -16
- data/doc/TermUtils.html +9 -9
- data/doc/TermUtils/AP.html +48 -159
- data/doc/TermUtils/AP/Article.html +48 -46
- data/doc/TermUtils/AP/ArticleResult.html +584 -0
- data/doc/TermUtils/AP/Flag.html +294 -77
- data/doc/TermUtils/AP/NoSuchValueError.html +13 -13
- data/doc/TermUtils/AP/Parameter.html +885 -97
- data/doc/TermUtils/AP/ParameterResult.html +980 -0
- data/doc/TermUtils/{FF/Cursor/Context.html → AP/ParameterWalkerHooks.html} +59 -59
- data/doc/TermUtils/AP/ParseError.html +13 -13
- data/doc/TermUtils/AP/Parser.html +174 -142
- data/doc/TermUtils/AP/Result.html +200 -527
- data/doc/TermUtils/AP/Syntax.html +102 -392
- data/doc/TermUtils/AP/SyntaxError.html +13 -13
- data/doc/TermUtils/AP/Walker.html +686 -0
- data/doc/TermUtils/FF.html +10 -10
- data/doc/TermUtils/FF/Config.html +201 -33
- data/doc/TermUtils/FF/Context.html +585 -0
- data/doc/TermUtils/FF/Entry.html +626 -0
- data/doc/TermUtils/FF/Query.html +402 -66
- data/doc/TermUtils/PropertyTreeNode.html +302 -188
- data/doc/TermUtils/Tab.html +90 -83
- data/doc/TermUtils/Tab/Column.html +94 -92
- data/doc/TermUtils/Tab/Header.html +26 -26
- data/doc/TermUtils/Tab/Holder.html +74 -74
- data/doc/TermUtils/Tab/Printer.html +42 -42
- data/doc/TermUtils/Tab/Table.html +124 -128
- data/doc/TermUtils/Tab/TableError.html +11 -11
- data/doc/_index.html +48 -34
- data/doc/class_list.html +3 -3
- data/doc/css/style.css +2 -2
- data/doc/file.README.html +64 -31
- data/doc/file_list.html +2 -2
- data/doc/frames.html +2 -2
- data/doc/index.html +64 -31
- data/doc/js/app.js +14 -3
- data/doc/method_list.html +387 -211
- data/doc/top-level-namespace.html +6 -6
- data/lib/term_utils.rb +8 -1
- data/lib/term_utils/ap.rb +41 -30
- data/lib/term_utils/ap/article.rb +14 -8
- data/lib/term_utils/ap/flag.rb +36 -19
- data/lib/term_utils/ap/parameter.rb +87 -18
- data/lib/term_utils/ap/parser.rb +141 -115
- data/lib/term_utils/ap/result.rb +207 -160
- data/lib/term_utils/ap/syntax.rb +52 -68
- data/lib/term_utils/ff.rb +11 -2
- data/lib/term_utils/ff/config.rb +20 -8
- data/lib/term_utils/{ap/no_such_value_error.rb → ff/entry.rb} +25 -7
- data/lib/term_utils/ff/query.rb +93 -14
- data/lib/term_utils/property_tree_node.rb +47 -19
- data/lib/term_utils/tab.rb +102 -58
- data/term_utils.gemspec +4 -4
- metadata +12 -14
- data/doc/TermUtils/AP/Element.html +0 -1025
- data/doc/TermUtils/AP/Level.html +0 -638
- data/doc/TermUtils/FF/Cursor.html +0 -929
- data/lib/term_utils/ap/element.rb +0 -78
- data/lib/term_utils/ap/level.rb +0 -57
- data/lib/term_utils/ap/parse_error.rb +0 -27
- data/lib/term_utils/ap/syntax_error.rb +0 -27
- data/lib/term_utils/ff/cursor.rb +0 -153
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Class: TermUtils::Tab::Header
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
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 = "TermUtils::Tab::Header";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -308,13 +308,13 @@
|
|
308
308
|
<pre class="lines">
|
309
309
|
|
310
310
|
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
311
|
+
377
|
312
|
+
378
|
313
|
+
379
|
314
|
+
380</pre>
|
315
315
|
</td>
|
316
316
|
<td>
|
317
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
317
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 377</span>
|
318
318
|
|
319
319
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
320
320
|
<span class='ivar'>@title</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:title</span><span class='rparen'>)</span>
|
@@ -376,12 +376,12 @@
|
|
376
376
|
<pre class="lines">
|
377
377
|
|
378
378
|
|
379
|
-
|
380
|
-
|
381
|
-
|
379
|
+
371
|
380
|
+
372
|
381
|
+
373</pre>
|
382
382
|
</td>
|
383
383
|
<td>
|
384
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
384
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 371</span>
|
385
385
|
|
386
386
|
<span class='kw'>def</span> <span class='id identifier rubyid_align'>align</span>
|
387
387
|
<span class='ivar'>@align</span>
|
@@ -430,12 +430,12 @@
|
|
430
430
|
<pre class="lines">
|
431
431
|
|
432
432
|
|
433
|
-
|
434
|
-
|
435
|
-
|
433
|
+
369
|
434
|
+
370
|
435
|
+
371</pre>
|
436
436
|
</td>
|
437
437
|
<td>
|
438
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
438
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 369</span>
|
439
439
|
|
440
440
|
<span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
|
441
441
|
<span class='ivar'>@title</span>
|
@@ -504,17 +504,17 @@
|
|
504
504
|
<pre class="lines">
|
505
505
|
|
506
506
|
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
507
|
+
385
|
508
|
+
386
|
509
|
+
387
|
510
|
+
388</pre>
|
511
511
|
</td>
|
512
512
|
<td>
|
513
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
513
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 385</span>
|
514
514
|
|
515
515
|
<span class='kw'>def</span> <span class='id identifier rubyid_validate'>validate</span>
|
516
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'
|
517
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'
|
516
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>missing header title (nil)</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@title</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
517
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>wrong header align (not :left or :right)</span><span class='tstring_end'>'</span></span> <span class='kw'>unless</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>left</span><span class='words_sep'> </span><span class='tstring_content'>right</span><span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='ivar'>@align</span><span class='rparen'>)</span>
|
518
518
|
<span class='kw'>end</span></pre>
|
519
519
|
</td>
|
520
520
|
</tr>
|
@@ -526,9 +526,9 @@
|
|
526
526
|
</div>
|
527
527
|
|
528
528
|
<div id="footer">
|
529
|
-
Generated on
|
529
|
+
Generated on Sun Aug 2 18:35:09 2020 by
|
530
530
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
531
|
-
0.9.
|
531
|
+
0.9.25 (ruby-2.6.5).
|
532
532
|
</div>
|
533
533
|
|
534
534
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Class: TermUtils::Tab::Holder
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
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 = "TermUtils::Tab::Holder";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -102,7 +102,7 @@
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
104
104
|
|
105
|
-
<p>Represents a
|
105
|
+
<p>Represents a Holder of Table(s).</p>
|
106
106
|
|
107
107
|
|
108
108
|
</div>
|
@@ -284,7 +284,7 @@
|
|
284
284
|
<li class="public ">
|
285
285
|
<span class="summary_signature">
|
286
286
|
|
287
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>
|
287
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ Holder </a>
|
288
288
|
|
289
289
|
|
290
290
|
|
@@ -301,7 +301,7 @@
|
|
301
301
|
|
302
302
|
|
303
303
|
<span class="summary_desc"><div class='inline'>
|
304
|
-
<p>
|
304
|
+
<p>Creates a new Holder.</p>
|
305
305
|
</div></span>
|
306
306
|
|
307
307
|
</li>
|
@@ -388,7 +388,7 @@
|
|
388
388
|
<div class="method_details first">
|
389
389
|
<h3 class="signature first" id="initialize-instance_method">
|
390
390
|
|
391
|
-
#<strong>initialize</strong>
|
391
|
+
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="TermUtils::Tab::Holder (class)">Holder</a></span></tt>
|
392
392
|
|
393
393
|
|
394
394
|
|
@@ -397,7 +397,7 @@
|
|
397
397
|
</h3><div class="docstring">
|
398
398
|
<div class="discussion">
|
399
399
|
|
400
|
-
<p>
|
400
|
+
<p>Creates a new Holder.</p>
|
401
401
|
|
402
402
|
|
403
403
|
</div>
|
@@ -411,16 +411,16 @@
|
|
411
411
|
<pre class="lines">
|
412
412
|
|
413
413
|
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
414
|
+
452
|
415
|
+
453
|
416
|
+
454
|
417
|
+
455
|
418
|
+
456</pre>
|
419
419
|
</td>
|
420
420
|
<td>
|
421
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
421
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 452</span>
|
422
422
|
|
423
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span
|
423
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
424
424
|
<span class='ivar'>@table_defaults</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_init_table_props'><span class='object_link'><a href="../Tab.html#init_table_props-class_method" title="TermUtils::Tab.init_table_props (method)">init_table_props</a></span></span>
|
425
425
|
<span class='ivar'>@column_defaults</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_init_column_props'><span class='object_link'><a href="../Tab.html#init_column_props-class_method" title="TermUtils::Tab.init_column_props (method)">init_column_props</a></span></span>
|
426
426
|
<span class='ivar'>@tables</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -481,12 +481,12 @@
|
|
481
481
|
<pre class="lines">
|
482
482
|
|
483
483
|
|
484
|
-
|
485
|
-
|
486
|
-
|
484
|
+
447
|
485
|
+
448
|
486
|
+
449</pre>
|
487
487
|
</td>
|
488
488
|
<td>
|
489
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
489
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 447</span>
|
490
490
|
|
491
491
|
<span class='kw'>def</span> <span class='id identifier rubyid_column_defaults'>column_defaults</span>
|
492
492
|
<span class='ivar'>@column_defaults</span>
|
@@ -542,12 +542,12 @@
|
|
542
542
|
<pre class="lines">
|
543
543
|
|
544
544
|
|
545
|
-
|
546
|
-
|
547
|
-
|
545
|
+
445
|
546
|
+
446
|
547
|
+
447</pre>
|
548
548
|
</td>
|
549
549
|
<td>
|
550
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
550
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 445</span>
|
551
551
|
|
552
552
|
<span class='kw'>def</span> <span class='id identifier rubyid_table_defaults'>table_defaults</span>
|
553
553
|
<span class='ivar'>@table_defaults</span>
|
@@ -596,12 +596,12 @@
|
|
596
596
|
<pre class="lines">
|
597
597
|
|
598
598
|
|
599
|
-
|
600
|
-
|
601
|
-
|
599
|
+
449
|
600
|
+
450
|
601
|
+
451</pre>
|
602
602
|
</td>
|
603
603
|
<td>
|
604
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
604
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 449</span>
|
605
605
|
|
606
606
|
<span class='kw'>def</span> <span class='id identifier rubyid_tables'>tables</span>
|
607
607
|
<span class='ivar'>@tables</span>
|
@@ -674,24 +674,24 @@
|
|
674
674
|
<pre class="lines">
|
675
675
|
|
676
676
|
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
677
|
+
480
|
678
|
+
481
|
679
|
+
482
|
680
|
+
483
|
681
|
+
484
|
682
|
+
485
|
683
|
+
486
|
684
|
+
487</pre>
|
685
685
|
</td>
|
686
686
|
<td>
|
687
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
687
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 480</span>
|
688
688
|
|
689
689
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_table'>create_table</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
690
690
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:offset</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@table_defaults</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:offset</span><span class='rparen'>)</span>
|
691
691
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:column_separator_width</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@table_defaults</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:column_separator_width</span><span class='rparen'>)</span>
|
692
692
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:column_defaults</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@column_defaults</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
693
693
|
<span class='id identifier rubyid_new_tab'>new_tab</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Table.html" title="TermUtils::Tab::Table (class)">Table</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Table.html#initialize-instance_method" title="TermUtils::Tab::Table#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
694
|
-
<span class='id identifier rubyid_block'>block</span><span class='
|
694
|
+
<span class='id identifier rubyid_block'>block</span><span class='op'>&.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_new_tab'>new_tab</span><span class='rparen'>)</span>
|
695
695
|
<span class='id identifier rubyid_new_tab'>new_tab</span>
|
696
696
|
<span class='kw'>end</span></pre>
|
697
697
|
</td>
|
@@ -766,34 +766,34 @@
|
|
766
766
|
<pre class="lines">
|
767
767
|
|
768
768
|
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
769
|
+
493
|
770
|
+
494
|
771
|
+
495
|
772
|
+
496
|
773
|
+
497
|
774
|
+
498
|
775
|
+
499
|
776
|
+
500
|
777
|
+
501
|
778
|
+
502
|
779
|
+
503
|
780
|
+
504
|
781
|
+
505
|
782
|
+
506</pre>
|
783
783
|
</td>
|
784
784
|
<td>
|
785
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
785
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 493</span>
|
786
786
|
|
787
787
|
<span class='kw'>def</span> <span class='id identifier rubyid_define_table'>define_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
788
|
-
<span class='kw'>if</span> <span class='ivar'>@tables</span><span class='period'>.</span><span class='id identifier
|
789
|
-
<span class='id identifier rubyid_block'>block</span><span class='
|
788
|
+
<span class='kw'>if</span> <span class='ivar'>@tables</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='id identifier rubyid_id'>id</span>
|
789
|
+
<span class='id identifier rubyid_block'>block</span><span class='op'>&.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='ivar'>@tables</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
790
790
|
<span class='kw'>else</span>
|
791
791
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_id'>id</span>
|
792
792
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:offset</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@table_defaults</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:offset</span><span class='rparen'>)</span>
|
793
793
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:column_separator_width</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@table_defaults</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:column_separator_width</span><span class='rparen'>)</span>
|
794
794
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:column_defaults</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@column_defaults</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
795
795
|
<span class='id identifier rubyid_new_tab'>new_tab</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Table.html" title="TermUtils::Tab::Table (class)">Table</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Table.html#initialize-instance_method" title="TermUtils::Tab::Table#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
796
|
-
<span class='id identifier rubyid_block'>block</span><span class='
|
796
|
+
<span class='id identifier rubyid_block'>block</span><span class='op'>&.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_new_tab'>new_tab</span><span class='rparen'>)</span>
|
797
797
|
<span class='ivar'>@tables</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_new_tab'>new_tab</span>
|
798
798
|
<span class='kw'>end</span>
|
799
799
|
<span class='ivar'>@tables</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span>
|
@@ -857,12 +857,12 @@
|
|
857
857
|
<pre class="lines">
|
858
858
|
|
859
859
|
|
860
|
-
|
861
|
-
|
862
|
-
|
860
|
+
511
|
861
|
+
512
|
862
|
+
513</pre>
|
863
863
|
</td>
|
864
864
|
<td>
|
865
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
865
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 511</span>
|
866
866
|
|
867
867
|
<span class='kw'>def</span> <span class='id identifier rubyid_find_table'>find_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
|
868
868
|
<span class='ivar'>@tables</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span>
|
@@ -983,12 +983,12 @@
|
|
983
983
|
<pre class="lines">
|
984
984
|
|
985
985
|
|
986
|
-
|
987
|
-
|
988
|
-
|
986
|
+
522
|
987
|
+
523
|
988
|
+
524</pre>
|
989
989
|
</td>
|
990
990
|
<td>
|
991
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
991
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 522</span>
|
992
992
|
|
993
993
|
<span class='kw'>def</span> <span class='id identifier rubyid_printer'>printer</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
994
994
|
<span class='id identifier rubyid_find_table'>find_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_printer'>printer</span><span class='lparen'>(</span><span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -1095,12 +1095,12 @@
|
|
1095
1095
|
<pre class="lines">
|
1096
1096
|
|
1097
1097
|
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1098
|
+
473
|
1099
|
+
474
|
1100
|
+
475</pre>
|
1101
1101
|
</td>
|
1102
1102
|
<td>
|
1103
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1103
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 473</span>
|
1104
1104
|
|
1105
1105
|
<span class='kw'>def</span> <span class='id identifier rubyid_set_column_defaults'>set_column_defaults</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1106
1106
|
<span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_assign_column_props'><span class='object_link'><a href="../Tab.html#assign_column_props-class_method" title="TermUtils::Tab.assign_column_props (method)">assign_column_props</a></span></span><span class='lparen'>(</span><span class='ivar'>@column_defaults</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
@@ -1180,12 +1180,12 @@
|
|
1180
1180
|
<pre class="lines">
|
1181
1181
|
|
1182
1182
|
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1183
|
+
462
|
1184
|
+
463
|
1185
|
+
464</pre>
|
1186
1186
|
</td>
|
1187
1187
|
<td>
|
1188
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1188
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 462</span>
|
1189
1189
|
|
1190
1190
|
<span class='kw'>def</span> <span class='id identifier rubyid_set_table_defaults'>set_table_defaults</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1191
1191
|
<span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_assign_table_props'><span class='object_link'><a href="../Tab.html#assign_table_props-class_method" title="TermUtils::Tab.assign_table_props (method)">assign_table_props</a></span></span><span class='lparen'>(</span><span class='ivar'>@table_defaults</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
@@ -1200,9 +1200,9 @@
|
|
1200
1200
|
</div>
|
1201
1201
|
|
1202
1202
|
<div id="footer">
|
1203
|
-
Generated on
|
1203
|
+
Generated on Sun Aug 2 18:35:09 2020 by
|
1204
1204
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1205
|
-
0.9.
|
1205
|
+
0.9.25 (ruby-2.6.5).
|
1206
1206
|
</div>
|
1207
1207
|
|
1208
1208
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Class: TermUtils::Tab::Printer
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
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 = "TermUtils::Tab::Printer";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -345,7 +345,7 @@
|
|
345
345
|
</h3><div class="docstring">
|
346
346
|
<div class="discussion">
|
347
347
|
|
348
|
-
<p>Returns a new instance of Printer
|
348
|
+
<p>Returns a new instance of Printer.</p>
|
349
349
|
|
350
350
|
|
351
351
|
</div>
|
@@ -396,14 +396,14 @@
|
|
396
396
|
<pre class="lines">
|
397
397
|
|
398
398
|
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
399
|
+
402
|
400
|
+
403
|
401
|
+
404
|
402
|
+
405
|
403
|
+
406</pre>
|
404
404
|
</td>
|
405
405
|
<td>
|
406
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
406
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 402</span>
|
407
407
|
|
408
408
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_table'>table</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
409
409
|
<span class='ivar'>@table</span> <span class='op'>=</span> <span class='id identifier rubyid_table'>table</span>
|
@@ -459,12 +459,12 @@
|
|
459
459
|
<pre class="lines">
|
460
460
|
|
461
461
|
|
462
|
-
|
463
|
-
|
464
|
-
|
462
|
+
395
|
463
|
+
396
|
464
|
+
397</pre>
|
465
465
|
</td>
|
466
466
|
<td>
|
467
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
467
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 395</span>
|
468
468
|
|
469
469
|
<span class='kw'>def</span> <span class='id identifier rubyid_io'>io</span>
|
470
470
|
<span class='ivar'>@io</span>
|
@@ -513,12 +513,12 @@
|
|
513
513
|
<pre class="lines">
|
514
514
|
|
515
515
|
|
516
|
-
|
517
|
-
|
518
|
-
|
516
|
+
397
|
517
|
+
398
|
518
|
+
399</pre>
|
519
519
|
</td>
|
520
520
|
<td>
|
521
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
521
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 397</span>
|
522
522
|
|
523
523
|
<span class='kw'>def</span> <span class='id identifier rubyid_options'>options</span>
|
524
524
|
<span class='ivar'>@options</span>
|
@@ -567,12 +567,12 @@
|
|
567
567
|
<pre class="lines">
|
568
568
|
|
569
569
|
|
570
|
-
|
571
|
-
|
572
|
-
|
570
|
+
393
|
571
|
+
394
|
572
|
+
395</pre>
|
573
573
|
</td>
|
574
574
|
<td>
|
575
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
575
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 393</span>
|
576
576
|
|
577
577
|
<span class='kw'>def</span> <span class='id identifier rubyid_table'>table</span>
|
578
578
|
<span class='ivar'>@table</span>
|
@@ -685,12 +685,12 @@
|
|
685
685
|
<pre class="lines">
|
686
686
|
|
687
687
|
|
688
|
-
|
689
|
-
|
690
|
-
|
688
|
+
429
|
689
|
+
430
|
690
|
+
431</pre>
|
691
691
|
</td>
|
692
692
|
<td>
|
693
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
693
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 429</span>
|
694
694
|
|
695
695
|
<span class='kw'>def</span> <span class='id identifier rubyid_data'>data</span><span class='lparen'>(</span><span class='id identifier rubyid_values'>values</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
696
696
|
<span class='ivar'>@table</span><span class='period'>.</span><span class='id identifier rubyid_print_data'>print_data</span><span class='lparen'>(</span><span class='ivar'>@io</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>?</span> <span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='ivar'>@options</span><span class='rparen'>)</span>
|
@@ -798,12 +798,12 @@
|
|
798
798
|
<pre class="lines">
|
799
799
|
|
800
800
|
|
801
|
-
|
802
|
-
|
803
|
-
|
801
|
+
419
|
802
|
+
420
|
803
|
+
421</pre>
|
804
804
|
</td>
|
805
805
|
<td>
|
806
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
806
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 419</span>
|
807
807
|
|
808
808
|
<span class='kw'>def</span> <span class='id identifier rubyid_header'>header</span><span class='lparen'>(</span><span class='id identifier rubyid_values'>values</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
809
809
|
<span class='ivar'>@table</span><span class='period'>.</span><span class='id identifier rubyid_print_header'>print_header</span><span class='lparen'>(</span><span class='ivar'>@io</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>?</span> <span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='ivar'>@options</span><span class='rparen'>)</span>
|
@@ -839,15 +839,15 @@
|
|
839
839
|
<pre class="lines">
|
840
840
|
|
841
841
|
|
842
|
-
|
843
|
-
|
844
|
-
|
842
|
+
409
|
843
|
+
410
|
844
|
+
411</pre>
|
845
845
|
</td>
|
846
846
|
<td>
|
847
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
847
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 409</span>
|
848
848
|
|
849
849
|
<span class='kw'>def</span> <span class='id identifier rubyid_line'>line</span>
|
850
|
-
<span class='ivar'>@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span>
|
850
|
+
<span class='ivar'>@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span>
|
851
851
|
<span class='kw'>end</span></pre>
|
852
852
|
</td>
|
853
853
|
</tr>
|
@@ -937,12 +937,12 @@
|
|
937
937
|
<pre class="lines">
|
938
938
|
|
939
939
|
|
940
|
-
|
941
|
-
|
942
|
-
|
940
|
+
438
|
941
|
+
439
|
942
|
+
440</pre>
|
943
943
|
</td>
|
944
944
|
<td>
|
945
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
945
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 438</span>
|
946
946
|
|
947
947
|
<span class='kw'>def</span> <span class='id identifier rubyid_separator'>separator</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
948
948
|
<span class='ivar'>@table</span><span class='period'>.</span><span class='id identifier rubyid_print_separator'>print_separator</span><span class='lparen'>(</span><span class='ivar'>@io</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>?</span> <span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='ivar'>@options</span><span class='rparen'>)</span>
|
@@ -957,9 +957,9 @@
|
|
957
957
|
</div>
|
958
958
|
|
959
959
|
<div id="footer">
|
960
|
-
Generated on
|
960
|
+
Generated on Sun Aug 2 18:35:09 2020 by
|
961
961
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
962
|
-
0.9.
|
962
|
+
0.9.25 (ruby-2.6.5).
|
963
963
|
</div>
|
964
964
|
|
965
965
|
</div>
|