term_utils 0.3.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +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::PropertyTreeNode
|
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::PropertyTreeNode";
|
19
19
|
relpath = '../';
|
20
20
|
</script>
|
@@ -120,7 +120,7 @@
|
|
120
120
|
<li class="public ">
|
121
121
|
<span class="summary_signature">
|
122
122
|
|
123
|
-
<a href="#child_nodes-instance_method" title="#child_nodes (instance method)">#<strong>child_nodes</strong> ⇒ Array<
|
123
|
+
<a href="#child_nodes-instance_method" title="#child_nodes (instance method)">#<strong>child_nodes</strong> ⇒ Array<PropertyTreeNode> </a>
|
124
124
|
|
125
125
|
|
126
126
|
|
@@ -170,7 +170,7 @@
|
|
170
170
|
<li class="public ">
|
171
171
|
<span class="summary_signature">
|
172
172
|
|
173
|
-
<a href="#parent_node-instance_method" title="#parent_node (instance method)">#<strong>parent_node</strong> ⇒
|
173
|
+
<a href="#parent_node-instance_method" title="#parent_node (instance method)">#<strong>parent_node</strong> ⇒ PropertyTreeNode </a>
|
174
174
|
|
175
175
|
|
176
176
|
|
@@ -233,7 +233,7 @@
|
|
233
233
|
<li class="public ">
|
234
234
|
<span class="summary_signature">
|
235
235
|
|
236
|
-
<a href="#child_node-instance_method" title="#child_node (instance method)">#<strong>child_node</strong>(key) ⇒
|
236
|
+
<a href="#child_node-instance_method" title="#child_node (instance method)">#<strong>child_node</strong>(key) ⇒ PropertyTreeNode<sup>?</sup> </a>
|
237
237
|
|
238
238
|
|
239
239
|
|
@@ -257,7 +257,7 @@
|
|
257
257
|
<li class="public ">
|
258
258
|
<span class="summary_signature">
|
259
259
|
|
260
|
-
<a href="#collect_nodes-instance_method" title="#collect_nodes (instance method)">#<strong>collect_nodes</strong>(opts = {}) ⇒ Array<
|
260
|
+
<a href="#collect_nodes-instance_method" title="#collect_nodes (instance method)">#<strong>collect_nodes</strong>(opts = {}) ⇒ Array<PropertyTreeNode> </a>
|
261
261
|
|
262
262
|
|
263
263
|
|
@@ -329,7 +329,7 @@
|
|
329
329
|
<li class="public ">
|
330
330
|
<span class="summary_signature">
|
331
331
|
|
332
|
-
<a href="#define_node-instance_method" title="#define_node (instance method)">#<strong>define_node</strong>(opts = {}, &block) ⇒
|
332
|
+
<a href="#define_node-instance_method" title="#define_node (instance method)">#<strong>define_node</strong>(opts = {}, &block) ⇒ PropertyTreeNode </a>
|
333
333
|
|
334
334
|
|
335
335
|
|
@@ -401,7 +401,7 @@
|
|
401
401
|
<li class="public ">
|
402
402
|
<span class="summary_signature">
|
403
403
|
|
404
|
-
<a href="#find_node-instance_method" title="#find_node (instance method)">#<strong>find_node</strong>(path) ⇒
|
404
|
+
<a href="#find_node-instance_method" title="#find_node (instance method)">#<strong>find_node</strong>(path) ⇒ PropertyTreeNode </a>
|
405
405
|
|
406
406
|
|
407
407
|
|
@@ -490,7 +490,7 @@
|
|
490
490
|
|
491
491
|
|
492
492
|
<span class="summary_desc"><div class='inline'>
|
493
|
-
<p>Creates a new
|
493
|
+
<p>Creates a new PropertyTreeNode.</p>
|
494
494
|
</div></span>
|
495
495
|
|
496
496
|
</li>
|
@@ -610,7 +610,7 @@
|
|
610
610
|
</h3><div class="docstring">
|
611
611
|
<div class="discussion">
|
612
612
|
|
613
|
-
<p>Creates a new
|
613
|
+
<p>Creates a new PropertyTreeNode. option opts [Object] :key option opts [Object] :value</p>
|
614
614
|
|
615
615
|
|
616
616
|
</div>
|
@@ -624,7 +624,7 @@
|
|
624
624
|
<span class='name'>opts</span>
|
625
625
|
|
626
626
|
|
627
|
-
<span class='type'>(<tt>Hash
|
627
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
628
628
|
|
629
629
|
|
630
630
|
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
@@ -641,16 +641,16 @@
|
|
641
641
|
<pre class="lines">
|
642
642
|
|
643
643
|
|
644
|
-
31
|
645
|
-
32
|
646
|
-
33
|
647
|
-
34
|
648
644
|
35
|
649
645
|
36
|
650
|
-
37
|
646
|
+
37
|
647
|
+
38
|
648
|
+
39
|
649
|
+
40
|
650
|
+
41</pre>
|
651
651
|
</td>
|
652
652
|
<td>
|
653
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
653
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 35</span>
|
654
654
|
|
655
655
|
<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='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
656
656
|
<span class='ivar'>@parent_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
@@ -674,7 +674,7 @@
|
|
674
674
|
<div class="method_details first">
|
675
675
|
<h3 class="signature first" id="child_nodes-instance_method">
|
676
676
|
|
677
|
-
#<strong>child_nodes</strong> ⇒ <tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
677
|
+
#<strong>child_nodes</strong> ⇒ <tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span>></tt>
|
678
678
|
|
679
679
|
|
680
680
|
|
@@ -694,7 +694,7 @@
|
|
694
694
|
<li>
|
695
695
|
|
696
696
|
|
697
|
-
<span class='type'>(<tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
697
|
+
<span class='type'>(<tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span>></tt>)</span>
|
698
698
|
|
699
699
|
|
700
700
|
|
@@ -708,12 +708,12 @@
|
|
708
708
|
<pre class="lines">
|
709
709
|
|
710
710
|
|
711
|
-
|
712
|
-
|
713
|
-
|
711
|
+
25
|
712
|
+
26
|
713
|
+
27</pre>
|
714
714
|
</td>
|
715
715
|
<td>
|
716
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
716
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 25</span>
|
717
717
|
|
718
718
|
<span class='kw'>def</span> <span class='id identifier rubyid_child_nodes'>child_nodes</span>
|
719
719
|
<span class='ivar'>@child_nodes</span>
|
@@ -762,12 +762,12 @@
|
|
762
762
|
<pre class="lines">
|
763
763
|
|
764
764
|
|
765
|
-
|
766
|
-
|
767
|
-
|
765
|
+
27
|
766
|
+
28
|
767
|
+
29</pre>
|
768
768
|
</td>
|
769
769
|
<td>
|
770
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
770
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 27</span>
|
771
771
|
|
772
772
|
<span class='kw'>def</span> <span class='id identifier rubyid_key'>key</span>
|
773
773
|
<span class='ivar'>@key</span>
|
@@ -782,7 +782,7 @@
|
|
782
782
|
<div class="method_details ">
|
783
783
|
<h3 class="signature " id="parent_node-instance_method">
|
784
784
|
|
785
|
-
#<strong>parent_node</strong> ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
785
|
+
#<strong>parent_node</strong> ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>
|
786
786
|
|
787
787
|
|
788
788
|
|
@@ -802,7 +802,7 @@
|
|
802
802
|
<li>
|
803
803
|
|
804
804
|
|
805
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
805
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>)</span>
|
806
806
|
|
807
807
|
|
808
808
|
|
@@ -816,12 +816,12 @@
|
|
816
816
|
<pre class="lines">
|
817
817
|
|
818
818
|
|
819
|
-
|
820
|
-
|
821
|
-
|
819
|
+
23
|
820
|
+
24
|
821
|
+
25</pre>
|
822
822
|
</td>
|
823
823
|
<td>
|
824
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
824
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 23</span>
|
825
825
|
|
826
826
|
<span class='kw'>def</span> <span class='id identifier rubyid_parent_node'>parent_node</span>
|
827
827
|
<span class='ivar'>@parent_node</span>
|
@@ -870,12 +870,12 @@
|
|
870
870
|
<pre class="lines">
|
871
871
|
|
872
872
|
|
873
|
-
|
874
|
-
|
875
|
-
|
873
|
+
29
|
874
|
+
30
|
875
|
+
31</pre>
|
876
876
|
</td>
|
877
877
|
<td>
|
878
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
878
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 29</span>
|
879
879
|
|
880
880
|
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
|
881
881
|
<span class='ivar'>@value</span>
|
@@ -895,7 +895,7 @@
|
|
895
895
|
<div class="method_details first">
|
896
896
|
<h3 class="signature first" id="child_node-instance_method">
|
897
897
|
|
898
|
-
#<strong>child_node</strong>(key) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
898
|
+
#<strong>child_node</strong>(key) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt><sup>?</sup>
|
899
899
|
|
900
900
|
|
901
901
|
|
@@ -932,7 +932,7 @@
|
|
932
932
|
<li>
|
933
933
|
|
934
934
|
|
935
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
935
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>, <tt>nil</tt>)</span>
|
936
936
|
|
937
937
|
|
938
938
|
|
@@ -946,14 +946,14 @@
|
|
946
946
|
<pre class="lines">
|
947
947
|
|
948
948
|
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
949
|
+
72
|
950
|
+
73
|
951
|
+
74
|
952
|
+
75
|
953
|
+
76</pre>
|
954
954
|
</td>
|
955
955
|
<td>
|
956
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
956
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 72</span>
|
957
957
|
|
958
958
|
<span class='kw'>def</span> <span class='id identifier rubyid_child_node'>child_node</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
|
959
959
|
<span class='kw'>if</span> <span class='ivar'>@child_nodes</span>
|
@@ -968,7 +968,7 @@
|
|
968
968
|
<div class="method_details ">
|
969
969
|
<h3 class="signature " id="collect_nodes-instance_method">
|
970
970
|
|
971
|
-
#<strong>collect_nodes</strong>(opts = {}) ⇒ <tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
971
|
+
#<strong>collect_nodes</strong>(opts = {}) ⇒ <tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span>></tt>
|
972
972
|
|
973
973
|
|
974
974
|
|
@@ -991,28 +991,50 @@
|
|
991
991
|
<span class='name'>opts</span>
|
992
992
|
|
993
993
|
|
994
|
-
<span class='type'>(<tt>Hash
|
994
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
995
995
|
|
996
996
|
|
997
997
|
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
998
998
|
|
999
999
|
|
1000
|
-
—
|
1001
|
-
<div class='inline'>
|
1002
|
-
<p>`:path`, `:leaf_only`</p>
|
1003
|
-
</div>
|
1004
|
-
|
1005
1000
|
</li>
|
1006
1001
|
|
1007
1002
|
</ul>
|
1008
1003
|
|
1004
|
+
|
1005
|
+
|
1006
|
+
|
1007
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
1008
|
+
<ul class="option">
|
1009
|
+
|
1010
|
+
<li>
|
1011
|
+
<span class="name">:path</span>
|
1012
|
+
<span class="type">(<tt>Array</tt>)</span>
|
1013
|
+
<span class="default">
|
1014
|
+
|
1015
|
+
</span>
|
1016
|
+
|
1017
|
+
</li>
|
1018
|
+
|
1019
|
+
<li>
|
1020
|
+
<span class="name">:leaf_only</span>
|
1021
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
1022
|
+
<span class="default">
|
1023
|
+
|
1024
|
+
</span>
|
1025
|
+
|
1026
|
+
</li>
|
1027
|
+
|
1028
|
+
</ul>
|
1029
|
+
|
1030
|
+
|
1009
1031
|
<p class="tag_title">Returns:</p>
|
1010
1032
|
<ul class="return">
|
1011
1033
|
|
1012
1034
|
<li>
|
1013
1035
|
|
1014
1036
|
|
1015
|
-
<span class='type'>(<tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
1037
|
+
<span class='type'>(<tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span>></tt>)</span>
|
1016
1038
|
|
1017
1039
|
|
1018
1040
|
|
@@ -1026,16 +1048,16 @@
|
|
1026
1048
|
<pre class="lines">
|
1027
1049
|
|
1028
1050
|
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1051
|
+
155
|
1052
|
+
156
|
1053
|
+
157
|
1054
|
+
158
|
1055
|
+
159
|
1056
|
+
160
|
1057
|
+
161</pre>
|
1036
1058
|
</td>
|
1037
1059
|
<td>
|
1038
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1060
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 155</span>
|
1039
1061
|
|
1040
1062
|
<span class='kw'>def</span> <span class='id identifier rubyid_collect_nodes'>collect_nodes</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>
|
1041
1063
|
<span class='id identifier rubyid_nodes'>nodes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -1075,21 +1097,43 @@
|
|
1075
1097
|
<span class='name'>opts</span>
|
1076
1098
|
|
1077
1099
|
|
1078
|
-
<span class='type'>(<tt>Hash
|
1100
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1079
1101
|
|
1080
1102
|
|
1081
1103
|
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1082
1104
|
|
1083
1105
|
|
1084
|
-
—
|
1085
|
-
<div class='inline'>
|
1086
|
-
<p>`:path`, `:leaf_only`</p>
|
1087
|
-
</div>
|
1088
|
-
|
1089
1106
|
</li>
|
1090
1107
|
|
1091
1108
|
</ul>
|
1092
1109
|
|
1110
|
+
|
1111
|
+
|
1112
|
+
|
1113
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
1114
|
+
<ul class="option">
|
1115
|
+
|
1116
|
+
<li>
|
1117
|
+
<span class="name">:path</span>
|
1118
|
+
<span class="type">(<tt>Array</tt>)</span>
|
1119
|
+
<span class="default">
|
1120
|
+
|
1121
|
+
</span>
|
1122
|
+
|
1123
|
+
</li>
|
1124
|
+
|
1125
|
+
<li>
|
1126
|
+
<span class="name">:leaf_only</span>
|
1127
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
1128
|
+
<span class="default">
|
1129
|
+
|
1130
|
+
</span>
|
1131
|
+
|
1132
|
+
</li>
|
1133
|
+
|
1134
|
+
</ul>
|
1135
|
+
|
1136
|
+
|
1093
1137
|
<p class="tag_title">Returns:</p>
|
1094
1138
|
<ul class="return">
|
1095
1139
|
|
@@ -1110,16 +1154,16 @@
|
|
1110
1154
|
<pre class="lines">
|
1111
1155
|
|
1112
1156
|
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1157
|
+
168
|
1158
|
+
169
|
1159
|
+
170
|
1160
|
+
171
|
1161
|
+
172
|
1162
|
+
173
|
1163
|
+
174</pre>
|
1120
1164
|
</td>
|
1121
1165
|
<td>
|
1122
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1166
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 168</span>
|
1123
1167
|
|
1124
1168
|
<span class='kw'>def</span> <span class='id identifier rubyid_collect_paths'>collect_paths</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>
|
1125
1169
|
<span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -1159,21 +1203,43 @@
|
|
1159
1203
|
<span class='name'>opts</span>
|
1160
1204
|
|
1161
1205
|
|
1162
|
-
<span class='type'>(<tt>Hash
|
1206
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1163
1207
|
|
1164
1208
|
|
1165
1209
|
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1166
1210
|
|
1167
1211
|
|
1168
|
-
—
|
1169
|
-
<div class='inline'>
|
1170
|
-
<p>`:path`, `:leaf_only`</p>
|
1171
|
-
</div>
|
1172
|
-
|
1173
1212
|
</li>
|
1174
1213
|
|
1175
1214
|
</ul>
|
1176
1215
|
|
1216
|
+
|
1217
|
+
|
1218
|
+
|
1219
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
1220
|
+
<ul class="option">
|
1221
|
+
|
1222
|
+
<li>
|
1223
|
+
<span class="name">:path</span>
|
1224
|
+
<span class="type">(<tt>Array</tt>)</span>
|
1225
|
+
<span class="default">
|
1226
|
+
|
1227
|
+
</span>
|
1228
|
+
|
1229
|
+
</li>
|
1230
|
+
|
1231
|
+
<li>
|
1232
|
+
<span class="name">:leaf_only</span>
|
1233
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
1234
|
+
<span class="default">
|
1235
|
+
|
1236
|
+
</span>
|
1237
|
+
|
1238
|
+
</li>
|
1239
|
+
|
1240
|
+
</ul>
|
1241
|
+
|
1242
|
+
|
1177
1243
|
<p class="tag_title">Returns:</p>
|
1178
1244
|
<ul class="return">
|
1179
1245
|
|
@@ -1194,16 +1260,16 @@
|
|
1194
1260
|
<pre class="lines">
|
1195
1261
|
|
1196
1262
|
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1263
|
+
181
|
1264
|
+
182
|
1265
|
+
183
|
1266
|
+
184
|
1267
|
+
185
|
1268
|
+
186
|
1269
|
+
187</pre>
|
1204
1270
|
</td>
|
1205
1271
|
<td>
|
1206
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1272
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 181</span>
|
1207
1273
|
|
1208
1274
|
<span class='kw'>def</span> <span class='id identifier rubyid_collect_values'>collect_values</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>
|
1209
1275
|
<span class='id identifier rubyid_vals'>vals</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -1220,7 +1286,7 @@
|
|
1220
1286
|
<div class="method_details ">
|
1221
1287
|
<h3 class="signature " id="define_node-instance_method">
|
1222
1288
|
|
1223
|
-
#<strong>define_node</strong>(opts = {}, &block) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
1289
|
+
#<strong>define_node</strong>(opts = {}, &block) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>
|
1224
1290
|
|
1225
1291
|
|
1226
1292
|
|
@@ -1243,28 +1309,52 @@
|
|
1243
1309
|
<span class='name'>opts</span>
|
1244
1310
|
|
1245
1311
|
|
1246
|
-
<span class='type'>(<tt>Hash
|
1312
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1247
1313
|
|
1248
1314
|
|
1249
1315
|
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1250
1316
|
|
1251
1317
|
|
1252
|
-
—
|
1253
|
-
<div class='inline'>
|
1254
|
-
<p>key value</p>
|
1255
|
-
</div>
|
1256
|
-
|
1257
1318
|
</li>
|
1258
1319
|
|
1259
1320
|
</ul>
|
1260
1321
|
|
1322
|
+
|
1323
|
+
|
1324
|
+
|
1325
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
1326
|
+
<ul class="option">
|
1327
|
+
|
1328
|
+
<li>
|
1329
|
+
<span class="name">:key</span>
|
1330
|
+
<span class="type">(<tt>Object</tt>)</span>
|
1331
|
+
<span class="default">
|
1332
|
+
|
1333
|
+
</span>
|
1334
|
+
|
1335
|
+
</li>
|
1336
|
+
|
1337
|
+
<li>
|
1338
|
+
<span class="name">:value</span>
|
1339
|
+
<span class="type">(<tt>Object</tt>)</span>
|
1340
|
+
<span class="default">
|
1341
|
+
|
1342
|
+
</span>
|
1343
|
+
|
1344
|
+
</li>
|
1345
|
+
|
1346
|
+
</ul>
|
1347
|
+
|
1348
|
+
|
1349
|
+
|
1350
|
+
|
1261
1351
|
<p class="tag_title">Returns:</p>
|
1262
1352
|
<ul class="return">
|
1263
1353
|
|
1264
1354
|
<li>
|
1265
1355
|
|
1266
1356
|
|
1267
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
1357
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>)</span>
|
1268
1358
|
|
1269
1359
|
|
1270
1360
|
|
@@ -1278,17 +1368,17 @@
|
|
1278
1368
|
<pre class="lines">
|
1279
1369
|
|
1280
1370
|
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1371
|
+
83
|
1372
|
+
84
|
1373
|
+
85
|
1374
|
+
86
|
1375
|
+
87
|
1376
|
+
88
|
1377
|
+
89
|
1378
|
+
90</pre>
|
1289
1379
|
</td>
|
1290
1380
|
<td>
|
1291
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1381
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 83</span>
|
1292
1382
|
|
1293
1383
|
<span class='kw'>def</span> <span class='id identifier rubyid_define_node'>define_node</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>
|
1294
1384
|
<span class='id identifier rubyid_new_node'>new_node</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="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="TermUtils::PropertyTreeNode#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
@@ -1329,21 +1419,45 @@
|
|
1329
1419
|
<span class='name'>opts</span>
|
1330
1420
|
|
1331
1421
|
|
1332
|
-
<span class='type'>(<tt>Hash
|
1422
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1333
1423
|
|
1334
1424
|
|
1335
1425
|
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
1336
1426
|
|
1337
1427
|
|
1338
|
-
—
|
1339
|
-
<div class='inline'>
|
1340
|
-
<p>`:path`, `:leaf_only`</p>
|
1341
|
-
</div>
|
1342
|
-
|
1343
1428
|
</li>
|
1344
1429
|
|
1345
1430
|
</ul>
|
1346
1431
|
|
1432
|
+
|
1433
|
+
|
1434
|
+
|
1435
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
1436
|
+
<ul class="option">
|
1437
|
+
|
1438
|
+
<li>
|
1439
|
+
<span class="name">:path</span>
|
1440
|
+
<span class="type">(<tt>Array</tt>)</span>
|
1441
|
+
<span class="default">
|
1442
|
+
|
1443
|
+
</span>
|
1444
|
+
|
1445
|
+
</li>
|
1446
|
+
|
1447
|
+
<li>
|
1448
|
+
<span class="name">:leaf_only</span>
|
1449
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
1450
|
+
<span class="default">
|
1451
|
+
|
1452
|
+
</span>
|
1453
|
+
|
1454
|
+
</li>
|
1455
|
+
|
1456
|
+
</ul>
|
1457
|
+
|
1458
|
+
|
1459
|
+
|
1460
|
+
|
1347
1461
|
<p class="tag_title">Returns:</p>
|
1348
1462
|
<ul class="return">
|
1349
1463
|
|
@@ -1364,21 +1478,6 @@
|
|
1364
1478
|
<pre class="lines">
|
1365
1479
|
|
1366
1480
|
|
1367
|
-
90
|
1368
|
-
91
|
1369
|
-
92
|
1370
|
-
93
|
1371
|
-
94
|
1372
|
-
95
|
1373
|
-
96
|
1374
|
-
97
|
1375
|
-
98
|
1376
|
-
99
|
1377
|
-
100
|
1378
|
-
101
|
1379
|
-
102
|
1380
|
-
103
|
1381
|
-
104
|
1382
1481
|
105
|
1383
1482
|
106
|
1384
1483
|
107
|
@@ -1407,14 +1506,29 @@
|
|
1407
1506
|
130
|
1408
1507
|
131
|
1409
1508
|
132
|
1410
|
-
133
|
1509
|
+
133
|
1510
|
+
134
|
1511
|
+
135
|
1512
|
+
136
|
1513
|
+
137
|
1514
|
+
138
|
1515
|
+
139
|
1516
|
+
140
|
1517
|
+
141
|
1518
|
+
142
|
1519
|
+
143
|
1520
|
+
144
|
1521
|
+
145
|
1522
|
+
146
|
1523
|
+
147
|
1524
|
+
148</pre>
|
1411
1525
|
</td>
|
1412
1526
|
<td>
|
1413
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1527
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 105</span>
|
1414
1528
|
|
1415
1529
|
<span class='kw'>def</span> <span class='id identifier rubyid_each_node'>each_node</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>
|
1416
1530
|
<span class='id identifier rubyid_rpath'>rpath</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1417
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier
|
1531
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='symbol'>:path</span>
|
1418
1532
|
<span class='id identifier rubyid_rpath'>rpath</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:path</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
1419
1533
|
<span class='kw'>end</span>
|
1420
1534
|
<span class='id identifier rubyid_dive'>dive</span> <span class='op'>=</span> <span class='kw'>true</span>
|
@@ -1430,15 +1544,15 @@
|
|
1430
1544
|
<span class='id identifier rubyid_hide'>hide</span> <span class='op'>=</span> <span class='kw'>true</span>
|
1431
1545
|
<span class='kw'>end</span>
|
1432
1546
|
<span class='kw'>end</span>
|
1433
|
-
<span class='kw'>unless</span> <span class='id identifier rubyid_hide'>hide</span> <span class='
|
1434
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier
|
1547
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_hide'>hide</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:leaf_only</span><span class='rbracket'>]</span> <span class='op'>&&</span> <span class='ivar'>@child_nodes</span><span class='rparen'>)</span>
|
1548
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='symbol'>:block</span>
|
1435
1549
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:block</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
1436
1550
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_block'>block</span>
|
1437
1551
|
<span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
1438
1552
|
<span class='kw'>end</span>
|
1439
1553
|
<span class='kw'>end</span>
|
1440
1554
|
<span class='kw'>end</span> <span class='comment'># if @key
|
1441
|
-
</span> <span class='kw'>if</span> <span class='id identifier rubyid_dive'>dive</span> <span class='
|
1555
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_dive'>dive</span> <span class='op'>&&</span> <span class='ivar'>@child_nodes</span>
|
1442
1556
|
<span class='id identifier rubyid_ropts'>ropts</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
1443
1557
|
<span class='kw'>if</span> <span class='id identifier rubyid_rpath'>rpath</span>
|
1444
1558
|
<span class='kw'>if</span> <span class='id identifier rubyid_rpath'>rpath</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
@@ -1515,15 +1629,15 @@
|
|
1515
1629
|
<pre class="lines">
|
1516
1630
|
|
1517
1631
|
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1632
|
+
211
|
1633
|
+
212
|
1634
|
+
213
|
1635
|
+
214
|
1636
|
+
215
|
1637
|
+
216</pre>
|
1524
1638
|
</td>
|
1525
1639
|
<td>
|
1526
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1640
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 211</span>
|
1527
1641
|
|
1528
1642
|
<span class='kw'>def</span> <span class='id identifier rubyid_eval_child_count'>eval_child_count</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
1529
1643
|
<span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='id identifier rubyid_find_node'>find_node</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
@@ -1539,7 +1653,7 @@
|
|
1539
1653
|
<div class="method_details ">
|
1540
1654
|
<h3 class="signature " id="find_node-instance_method">
|
1541
1655
|
|
1542
|
-
#<strong>find_node</strong>(path) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
1656
|
+
#<strong>find_node</strong>(path) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>
|
1543
1657
|
|
1544
1658
|
|
1545
1659
|
|
@@ -1576,7 +1690,7 @@
|
|
1576
1690
|
<li>
|
1577
1691
|
|
1578
1692
|
|
1579
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">
|
1693
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>)</span>
|
1580
1694
|
|
1581
1695
|
|
1582
1696
|
|
@@ -1590,22 +1704,22 @@
|
|
1590
1704
|
<pre class="lines">
|
1591
1705
|
|
1592
1706
|
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1707
|
+
192
|
1708
|
+
193
|
1709
|
+
194
|
1710
|
+
195
|
1711
|
+
196
|
1712
|
+
197
|
1713
|
+
198
|
1714
|
+
199</pre>
|
1601
1715
|
</td>
|
1602
1716
|
<td>
|
1603
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1717
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 192</span>
|
1604
1718
|
|
1605
1719
|
<span class='kw'>def</span> <span class='id identifier rubyid_find_node'>find_node</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
1606
1720
|
<span class='id identifier rubyid_catch'>catch</span> <span class='symbol'>:found</span> <span class='kw'>do</span>
|
1607
|
-
<span class='id identifier rubyid_each_node'>each_node</span><span class='lparen'>(</span><span class='
|
1608
|
-
<span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:found</span><span class='comma'>,</span> <span class='id identifier rubyid_n'>n</span>
|
1721
|
+
<span class='id identifier rubyid_each_node'>each_node</span><span class='lparen'>(</span><span class='label'>path:</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span> <span class='comment'># rubocop:disable Lint/UnreachableLoop
|
1722
|
+
</span> <span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:found</span><span class='comma'>,</span> <span class='id identifier rubyid_n'>n</span>
|
1609
1723
|
<span class='kw'>end</span>
|
1610
1724
|
<span class='kw'>nil</span>
|
1611
1725
|
<span class='kw'>end</span>
|
@@ -1669,15 +1783,15 @@
|
|
1669
1783
|
<pre class="lines">
|
1670
1784
|
|
1671
1785
|
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1786
|
+
221
|
1787
|
+
222
|
1788
|
+
223
|
1789
|
+
224
|
1790
|
+
225
|
1791
|
+
226</pre>
|
1678
1792
|
</td>
|
1679
1793
|
<td>
|
1680
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1794
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 221</span>
|
1681
1795
|
|
1682
1796
|
<span class='kw'>def</span> <span class='id identifier rubyid_find_node_value'>find_node_value</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
1683
1797
|
<span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='id identifier rubyid_find_node'>find_node</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
@@ -1729,12 +1843,12 @@
|
|
1729
1843
|
<pre class="lines">
|
1730
1844
|
|
1731
1845
|
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1846
|
+
59
|
1847
|
+
60
|
1848
|
+
61</pre>
|
1735
1849
|
</td>
|
1736
1850
|
<td>
|
1737
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1851
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 59</span>
|
1738
1852
|
|
1739
1853
|
<span class='kw'>def</span> <span class='id identifier rubyid_head?'>head?</span>
|
1740
1854
|
<span class='ivar'>@parent_node</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
@@ -1770,21 +1884,21 @@
|
|
1770
1884
|
<pre class="lines">
|
1771
1885
|
|
1772
1886
|
|
1773
|
-
39
|
1774
|
-
40
|
1775
|
-
41
|
1776
|
-
42
|
1777
|
-
43
|
1778
1887
|
44
|
1779
1888
|
45
|
1780
1889
|
46
|
1781
1890
|
47
|
1782
1891
|
48
|
1783
1892
|
49
|
1784
|
-
50
|
1893
|
+
50
|
1894
|
+
51
|
1895
|
+
52
|
1896
|
+
53
|
1897
|
+
54
|
1898
|
+
55</pre>
|
1785
1899
|
</td>
|
1786
1900
|
<td>
|
1787
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1901
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 44</span>
|
1788
1902
|
|
1789
1903
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize_dup'>initialize_dup</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
1790
1904
|
<span class='ivar'>@parent_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
@@ -1842,12 +1956,12 @@
|
|
1842
1956
|
<pre class="lines">
|
1843
1957
|
|
1844
1958
|
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1959
|
+
65
|
1960
|
+
66
|
1961
|
+
67</pre>
|
1848
1962
|
</td>
|
1849
1963
|
<td>
|
1850
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
1964
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 65</span>
|
1851
1965
|
|
1852
1966
|
<span class='kw'>def</span> <span class='id identifier rubyid_leaf?'>leaf?</span>
|
1853
1967
|
<span class='ivar'>@child_nodes</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
@@ -1911,12 +2025,12 @@
|
|
1911
2025
|
<pre class="lines">
|
1912
2026
|
|
1913
2027
|
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
2028
|
+
204
|
2029
|
+
205
|
2030
|
+
206</pre>
|
1917
2031
|
</td>
|
1918
2032
|
<td>
|
1919
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
2033
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 204</span>
|
1920
2034
|
|
1921
2035
|
<span class='kw'>def</span> <span class='id identifier rubyid_node_exists?'>node_exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
1922
2036
|
<span class='id identifier rubyid_find_node'>find_node</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
@@ -1965,14 +2079,14 @@
|
|
1965
2079
|
<pre class="lines">
|
1966
2080
|
|
1967
2081
|
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
2082
|
+
94
|
2083
|
+
95
|
2084
|
+
96
|
2085
|
+
97
|
2086
|
+
98</pre>
|
1973
2087
|
</td>
|
1974
2088
|
<td>
|
1975
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line
|
2089
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 94</span>
|
1976
2090
|
|
1977
2091
|
<span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
|
1978
2092
|
<span class='id identifier rubyid_p'>p</span> <span class='op'>=</span> <span class='ivar'>@parent_node</span> <span class='op'>?</span> <span class='ivar'>@parent_node</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='op'>:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -1989,9 +2103,9 @@
|
|
1989
2103
|
</div>
|
1990
2104
|
|
1991
2105
|
<div id="footer">
|
1992
|
-
Generated on
|
1993
|
-
<a href="
|
1994
|
-
0.9.
|
2106
|
+
Generated on Wed Aug 9 17:34:27 2023 by
|
2107
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2108
|
+
0.9.34 (ruby-3.2.2).
|
1995
2109
|
</div>
|
1996
2110
|
|
1997
2111
|
</div>
|