term_utils 0.3.2 → 0.5.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 +16 -2
- data/COPYING +3 -3
- data/README.md +51 -16
- data/Rakefile +6 -0
- data/doc/TermUtils/AP/Article.html +57 -55
- data/doc/TermUtils/AP/ArticleResult.html +584 -0
- data/doc/TermUtils/AP/Flag.html +295 -78
- data/doc/TermUtils/AP/Parameter.html +891 -103
- data/doc/TermUtils/AP/ParameterResult.html +980 -0
- data/doc/TermUtils/{FF/Cursor/Context.html → AP/ParameterWalkerHooks.html} +60 -60
- data/doc/TermUtils/AP/ParseError.html +651 -19
- data/doc/TermUtils/AP/Parser.html +181 -121
- data/doc/TermUtils/AP/Result.html +201 -528
- data/doc/TermUtils/AP/Syntax.html +103 -393
- data/doc/TermUtils/AP/SyntaxError.html +9 -91
- data/doc/TermUtils/AP/Walker.html +686 -0
- data/doc/TermUtils/AP.html +49 -160
- data/doc/TermUtils/FF/Config.html +203 -35
- data/doc/TermUtils/FF/Context.html +585 -0
- data/doc/TermUtils/FF/Entry.html +626 -0
- data/doc/TermUtils/FF/Finder.html +850 -0
- data/doc/TermUtils/FF/{Cursor.html → FinderEntry.html} +473 -211
- data/doc/TermUtils/FF/FinderQuery.html +946 -0
- data/doc/TermUtils/FF/Query.html +402 -70
- data/doc/TermUtils/FF.html +135 -11
- data/doc/TermUtils/PropertyTreeNode.html +304 -190
- data/doc/TermUtils/Tab/Column.html +98 -96
- data/doc/TermUtils/Tab/Header.html +30 -30
- data/doc/TermUtils/Tab/Holder.html +81 -81
- data/doc/TermUtils/Tab/Printer.html +43 -43
- data/doc/TermUtils/Tab/Table.html +124 -128
- data/doc/TermUtils/Tab/TableError.html +7 -89
- data/doc/TermUtils/Tab.html +93 -86
- data/doc/TermUtils.html +10 -10
- data/doc/_index.html +62 -42
- data/doc/class_list.html +3 -3
- data/doc/css/style.css +3 -2
- data/doc/file.README.html +63 -26
- data/doc/file_list.html +2 -2
- data/doc/frames.html +2 -2
- data/doc/index.html +63 -26
- data/doc/js/app.js +14 -3
- data/doc/method_list.html +708 -236
- data/doc/top-level-namespace.html +7 -7
- data/lib/term_utils/ap/article.rb +15 -9
- data/lib/term_utils/ap/flag.rb +37 -20
- data/lib/term_utils/ap/parameter.rb +88 -19
- data/lib/term_utils/ap/parser.rb +143 -116
- data/lib/term_utils/ap/result.rb +208 -161
- data/lib/term_utils/ap/syntax.rb +53 -69
- data/lib/term_utils/ap.rb +79 -24
- data/lib/term_utils/ff/config.rb +22 -10
- data/lib/term_utils/{ap/no_such_value_error.rb → ff/entry.rb} +26 -8
- data/lib/term_utils/ff/finder.rb +255 -0
- data/lib/term_utils/ff/query.rb +94 -17
- data/lib/term_utils/ff.rb +12 -2
- data/lib/term_utils/property_tree_node.rb +47 -19
- data/lib/term_utils/tab.rb +106 -61
- data/lib/term_utils.rb +8 -1
- data/term_utils.gemspec +4 -4
- metadata +18 -17
- data/doc/TermUtils/AP/Element.html +0 -1025
- data/doc/TermUtils/AP/Level.html +0 -638
- data/doc/TermUtils/AP/NoSuchValueError.html +0 -217
- 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::Column
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
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::Column";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -138,7 +138,7 @@
|
|
138
138
|
|
139
139
|
|
140
140
|
<span class="summary_desc"><div class='inline'>
|
141
|
-
<p
|
141
|
+
<p>‘:left`, `:right`.</p>
|
142
142
|
</div></span>
|
143
143
|
|
144
144
|
</li>
|
@@ -448,7 +448,7 @@
|
|
448
448
|
</h3><div class="docstring">
|
449
449
|
<div class="discussion">
|
450
450
|
|
451
|
-
<p>Returns a new instance of Column
|
451
|
+
<p>Returns a new instance of Column.</p>
|
452
452
|
|
453
453
|
|
454
454
|
</div>
|
@@ -551,19 +551,19 @@
|
|
551
551
|
<pre class="lines">
|
552
552
|
|
553
553
|
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
554
|
+
313
|
555
|
+
314
|
556
|
+
315
|
557
|
+
316
|
558
|
+
317
|
559
|
+
318
|
560
|
+
319
|
561
|
+
320
|
562
|
+
321
|
563
|
+
322</pre>
|
564
564
|
</td>
|
565
565
|
<td>
|
566
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
566
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 313</span>
|
567
567
|
|
568
568
|
<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>
|
569
569
|
<span class='ivar'>@id</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'>:id</span><span class='rparen'>)</span>
|
@@ -571,9 +571,9 @@
|
|
571
571
|
<span class='ivar'>@width</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'>:width</span><span class='comma'>,</span> <span class='int'>8</span><span class='rparen'>)</span>
|
572
572
|
<span class='ivar'>@align</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'>:align</span><span class='comma'>,</span> <span class='symbol'>:left</span><span class='rparen'>)</span>
|
573
573
|
<span class='ivar'>@fixed</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'>:fixed</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
574
|
-
<span class='ivar'>@ellipsis</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'>:ellipsis</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'
|
574
|
+
<span class='ivar'>@ellipsis</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'>:ellipsis</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>?</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
575
575
|
<span class='ivar'>@format</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'>:format</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
576
|
-
<span class='ivar'>@header</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='op'>::</span><span class='const'><span class='object_link'><a href="Header.html" title="TermUtils::Tab::Header (class)">Header</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Header.html#initialize-instance_method" title="TermUtils::Tab::Header#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='
|
576
|
+
<span class='ivar'>@header</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='op'>::</span><span class='const'><span class='object_link'><a href="Header.html" title="TermUtils::Tab::Header (class)">Header</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Header.html#initialize-instance_method" title="TermUtils::Tab::Header#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>title:</span> <span class='ivar'>@id</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='comma'>,</span> <span class='label'>align:</span> <span class='ivar'>@align</span><span class='rparen'>)</span>
|
577
577
|
<span class='kw'>end</span></pre>
|
578
578
|
</td>
|
579
579
|
</tr>
|
@@ -599,7 +599,7 @@
|
|
599
599
|
</h3><div class="docstring">
|
600
600
|
<div class="discussion">
|
601
601
|
|
602
|
-
<p>Returns
|
602
|
+
<p>Returns ‘:left`, `:right`.</p>
|
603
603
|
|
604
604
|
|
605
605
|
</div>
|
@@ -618,7 +618,7 @@
|
|
618
618
|
|
619
619
|
—
|
620
620
|
<div class='inline'>
|
621
|
-
<p
|
621
|
+
<p>‘:left`, `:right`.</p>
|
622
622
|
</div>
|
623
623
|
|
624
624
|
</li>
|
@@ -631,12 +631,12 @@
|
|
631
631
|
<pre class="lines">
|
632
632
|
|
633
633
|
|
634
|
-
|
635
|
-
|
636
|
-
|
634
|
+
295
|
635
|
+
296
|
636
|
+
297</pre>
|
637
637
|
</td>
|
638
638
|
<td>
|
639
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
639
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 295</span>
|
640
640
|
|
641
641
|
<span class='kw'>def</span> <span class='id identifier rubyid_align'>align</span>
|
642
642
|
<span class='ivar'>@align</span>
|
@@ -685,12 +685,12 @@
|
|
685
685
|
<pre class="lines">
|
686
686
|
|
687
687
|
|
688
|
-
|
689
|
-
|
690
|
-
|
688
|
+
299
|
689
|
+
300
|
690
|
+
301</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 299</span>
|
694
694
|
|
695
695
|
<span class='kw'>def</span> <span class='id identifier rubyid_ellipsis'>ellipsis</span>
|
696
696
|
<span class='ivar'>@ellipsis</span>
|
@@ -739,12 +739,12 @@
|
|
739
739
|
<pre class="lines">
|
740
740
|
|
741
741
|
|
742
|
-
|
743
|
-
|
744
|
-
|
742
|
+
297
|
743
|
+
298
|
744
|
+
299</pre>
|
745
745
|
</td>
|
746
746
|
<td>
|
747
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
747
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 297</span>
|
748
748
|
|
749
749
|
<span class='kw'>def</span> <span class='id identifier rubyid_fixed'>fixed</span>
|
750
750
|
<span class='ivar'>@fixed</span>
|
@@ -793,12 +793,12 @@
|
|
793
793
|
<pre class="lines">
|
794
794
|
|
795
795
|
|
796
|
-
|
797
|
-
|
798
|
-
|
796
|
+
301
|
797
|
+
302
|
798
|
+
303</pre>
|
799
799
|
</td>
|
800
800
|
<td>
|
801
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
801
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 301</span>
|
802
802
|
|
803
803
|
<span class='kw'>def</span> <span class='id identifier rubyid_format'>format</span>
|
804
804
|
<span class='ivar'>@format</span>
|
@@ -847,12 +847,12 @@
|
|
847
847
|
<pre class="lines">
|
848
848
|
|
849
849
|
|
850
|
-
|
851
|
-
|
852
|
-
|
850
|
+
303
|
851
|
+
304
|
852
|
+
305</pre>
|
853
853
|
</td>
|
854
854
|
<td>
|
855
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
855
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 303</span>
|
856
856
|
|
857
857
|
<span class='kw'>def</span> <span class='id identifier rubyid_header'>header</span>
|
858
858
|
<span class='ivar'>@header</span>
|
@@ -901,12 +901,12 @@
|
|
901
901
|
<pre class="lines">
|
902
902
|
|
903
903
|
|
904
|
-
|
905
|
-
|
906
|
-
|
904
|
+
289
|
905
|
+
290
|
906
|
+
291</pre>
|
907
907
|
</td>
|
908
908
|
<td>
|
909
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
909
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 289</span>
|
910
910
|
|
911
911
|
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
912
912
|
<span class='ivar'>@id</span>
|
@@ -955,12 +955,12 @@
|
|
955
955
|
<pre class="lines">
|
956
956
|
|
957
957
|
|
958
|
-
|
959
|
-
|
960
|
-
|
958
|
+
291
|
959
|
+
292
|
960
|
+
293</pre>
|
961
961
|
</td>
|
962
962
|
<td>
|
963
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
963
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 291</span>
|
964
964
|
|
965
965
|
<span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
|
966
966
|
<span class='ivar'>@index</span>
|
@@ -1009,12 +1009,12 @@
|
|
1009
1009
|
<pre class="lines">
|
1010
1010
|
|
1011
1011
|
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1012
|
+
293
|
1013
|
+
294
|
1014
|
+
295</pre>
|
1015
1015
|
</td>
|
1016
1016
|
<td>
|
1017
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1017
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 293</span>
|
1018
1018
|
|
1019
1019
|
<span class='kw'>def</span> <span class='id identifier rubyid_width'>width</span>
|
1020
1020
|
<span class='ivar'>@width</span>
|
@@ -1072,21 +1072,21 @@
|
|
1072
1072
|
<pre class="lines">
|
1073
1073
|
|
1074
1074
|
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1075
|
+
351
|
1076
|
+
352
|
1077
|
+
353
|
1078
|
+
354
|
1079
|
+
355
|
1080
|
+
356
|
1081
|
+
357
|
1082
|
+
358
|
1083
|
+
359
|
1084
|
+
360
|
1085
|
+
361
|
1086
|
+
362</pre>
|
1087
1087
|
</td>
|
1088
1088
|
<td>
|
1089
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1089
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 351</span>
|
1090
1090
|
|
1091
1091
|
<span class='kw'>def</span> <span class='id identifier rubyid_render_data'>render_data</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
|
1092
1092
|
<span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span>
|
@@ -1097,7 +1097,7 @@
|
|
1097
1097
|
<span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='ivar'>@format</span> <span class='op'>%</span> <span class='id identifier rubyid_val'>val</span>
|
1098
1098
|
<span class='kw'>end</span>
|
1099
1099
|
<span class='kw'>end</span>
|
1100
|
-
<span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='
|
1100
|
+
<span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='id identifier rubyid_src'>src</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>unless</span> <span class='id identifier rubyid_src'>src</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span>
|
1101
1101
|
<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_align_cut'><span class='object_link'><a href="../Tab.html#align_cut-class_method" title="TermUtils::Tab.align_cut (method)">align_cut</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_src'>src</span><span class='comma'>,</span> <span class='ivar'>@align</span><span class='comma'>,</span> <span class='ivar'>@fixed</span><span class='comma'>,</span> <span class='ivar'>@width</span><span class='comma'>,</span> <span class='ivar'>@ellipsis</span><span class='rparen'>)</span>
|
1102
1102
|
<span class='kw'>end</span></pre>
|
1103
1103
|
</td>
|
@@ -1146,16 +1146,16 @@
|
|
1146
1146
|
<pre class="lines">
|
1147
1147
|
|
1148
1148
|
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1149
|
+
343
|
1150
|
+
344
|
1151
|
+
345
|
1152
|
+
346</pre>
|
1153
1153
|
</td>
|
1154
1154
|
<td>
|
1155
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1155
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 343</span>
|
1156
1156
|
|
1157
1157
|
<span class='kw'>def</span> <span class='id identifier rubyid_render_header'>render_header</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
|
1158
|
-
<span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='
|
1158
|
+
<span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_val'>val</span> <span class='op'>:</span> <span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
1159
1159
|
<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_align_cut'><span class='object_link'><a href="../Tab.html#align_cut-class_method" title="TermUtils::Tab.align_cut (method)">align_cut</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_src'>src</span><span class='comma'>,</span> <span class='ivar'>@header</span><span class='period'>.</span><span class='id identifier rubyid_align'>align</span><span class='comma'>,</span> <span class='ivar'>@fixed</span><span class='comma'>,</span> <span class='ivar'>@width</span><span class='comma'>,</span> <span class='ivar'>@ellipsis</span><span class='rparen'>)</span>
|
1160
1160
|
<span class='kw'>end</span></pre>
|
1161
1161
|
</td>
|
@@ -1215,30 +1215,32 @@
|
|
1215
1215
|
<pre class="lines">
|
1216
1216
|
|
1217
1217
|
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1218
|
+
327
|
1219
|
+
328
|
1220
|
+
329
|
1221
|
+
330
|
1222
|
+
331
|
1223
|
+
332
|
1224
|
+
333
|
1225
|
+
334
|
1226
|
+
335
|
1227
|
+
336
|
1228
|
+
337
|
1229
|
+
338</pre>
|
1229
1230
|
</td>
|
1230
1231
|
<td>
|
1231
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1232
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 327</span>
|
1232
1233
|
|
1233
1234
|
<span class='kw'>def</span> <span class='id identifier rubyid_validate'>validate</span>
|
1234
|
-
<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'
|
1235
|
-
<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'
|
1236
|
-
<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'
|
1237
|
-
<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'
|
1238
|
-
<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'
|
1239
|
-
<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'
|
1240
|
-
<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'
|
1241
|
-
<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'
|
1235
|
+
<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 column id (nil)</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@id</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1236
|
+
<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 column index (nil)</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@index</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1237
|
+
<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 column index (not integer)</span><span class='tstring_end'>'</span></span> <span class='kw'>unless</span> <span class='ivar'>@index</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span>
|
1238
|
+
<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 column index (not >= 0)</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@index</span><span class='period'>.</span><span class='id identifier rubyid_negative?'>negative?</span>
|
1239
|
+
<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 column width (nil)</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1240
|
+
<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 column width (not integer)</span><span class='tstring_end'>'</span></span> <span class='kw'>unless</span> <span class='ivar'>@width</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span>
|
1241
|
+
<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 column width (not > 0)</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='ivar'>@width</span> <span class='op'><=</span> <span class='int'>0</span>
|
1242
|
+
<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 column 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>
|
1243
|
+
|
1242
1244
|
<span class='ivar'>@header</span><span class='period'>.</span><span class='id identifier rubyid_validate'>validate</span>
|
1243
1245
|
<span class='kw'>end</span></pre>
|
1244
1246
|
</td>
|
@@ -1251,9 +1253,9 @@
|
|
1251
1253
|
</div>
|
1252
1254
|
|
1253
1255
|
<div id="footer">
|
1254
|
-
Generated on
|
1255
|
-
<a href="
|
1256
|
-
0.9.
|
1256
|
+
Generated on Wed Aug 9 17:34:26 2023 by
|
1257
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1258
|
+
0.9.34 (ruby-3.2.2).
|
1257
1259
|
</div>
|
1258
1260
|
|
1259
1261
|
</div>
|
@@ -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.34
|
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>
|
@@ -138,7 +138,7 @@
|
|
138
138
|
|
139
139
|
|
140
140
|
<span class="summary_desc"><div class='inline'>
|
141
|
-
<p
|
141
|
+
<p>‘:left`, `:right`.</p>
|
142
142
|
</div></span>
|
143
143
|
|
144
144
|
</li>
|
@@ -308,13 +308,13 @@
|
|
308
308
|
<pre class="lines">
|
309
309
|
|
310
310
|
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
311
|
+
376
|
312
|
+
377
|
313
|
+
378
|
314
|
+
379</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 376</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>
|
@@ -344,7 +344,7 @@
|
|
344
344
|
</h3><div class="docstring">
|
345
345
|
<div class="discussion">
|
346
346
|
|
347
|
-
<p>Returns
|
347
|
+
<p>Returns ‘:left`, `:right`.</p>
|
348
348
|
|
349
349
|
|
350
350
|
</div>
|
@@ -363,7 +363,7 @@
|
|
363
363
|
|
364
364
|
—
|
365
365
|
<div class='inline'>
|
366
|
-
<p
|
366
|
+
<p>‘:left`, `:right`.</p>
|
367
367
|
</div>
|
368
368
|
|
369
369
|
</li>
|
@@ -376,12 +376,12 @@
|
|
376
376
|
<pre class="lines">
|
377
377
|
|
378
378
|
|
379
|
-
|
380
|
-
|
381
|
-
|
379
|
+
370
|
380
|
+
371
|
381
|
+
372</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 370</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
|
+
368
|
434
|
+
369
|
435
|
+
370</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 368</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
|
+
384
|
508
|
+
385
|
509
|
+
386
|
510
|
+
387</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 384</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
|
530
|
-
<a href="
|
531
|
-
0.9.
|
529
|
+
Generated on Wed Aug 9 17:34:26 2023 by
|
530
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
531
|
+
0.9.34 (ruby-3.2.2).
|
532
532
|
</div>
|
533
533
|
|
534
534
|
</div>
|