doc/TermUtils/PropertyTreeNode.html in term_utils-0.3.2 vs doc/TermUtils/PropertyTreeNode.html in term_utils-0.4.0
- old
+ new
@@ -4,19 +4,19 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: TermUtils::PropertyTreeNode
- — Documentation by YARD 0.9.20
+ — Documentation by YARD 0.9.25
</title>
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
-<script type="text/javascript" charset="utf-8">
+<script type="text/javascript">
pathId = "TermUtils::PropertyTreeNode";
relpath = '../';
</script>
@@ -118,11 +118,11 @@
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#child_nodes-instance_method" title="#child_nodes (instance method)">#<strong>child_nodes</strong> ⇒ Array<TermUtils::PropertyTreeNode> </a>
+ <a href="#child_nodes-instance_method" title="#child_nodes (instance method)">#<strong>child_nodes</strong> ⇒ Array<PropertyTreeNode> </a>
</span>
@@ -168,11 +168,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#parent_node-instance_method" title="#parent_node (instance method)">#<strong>parent_node</strong> ⇒ TermUtils::PropertyTreeNode </a>
+ <a href="#parent_node-instance_method" title="#parent_node (instance method)">#<strong>parent_node</strong> ⇒ PropertyTreeNode </a>
</span>
@@ -231,11 +231,11 @@
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#child_node-instance_method" title="#child_node (instance method)">#<strong>child_node</strong>(key) ⇒ TermUtils::PropertyTreeNode<sup>?</sup> </a>
+ <a href="#child_node-instance_method" title="#child_node (instance method)">#<strong>child_node</strong>(key) ⇒ PropertyTreeNode<sup>?</sup> </a>
</span>
@@ -255,11 +255,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#collect_nodes-instance_method" title="#collect_nodes (instance method)">#<strong>collect_nodes</strong>(opts = {}) ⇒ Array<TermUtils::PropertyTreeNode> </a>
+ <a href="#collect_nodes-instance_method" title="#collect_nodes (instance method)">#<strong>collect_nodes</strong>(opts = {}) ⇒ Array<PropertyTreeNode> </a>
</span>
@@ -327,11 +327,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#define_node-instance_method" title="#define_node (instance method)">#<strong>define_node</strong>(opts = {}, &block) ⇒ TermUtils::PropertyTreeNode </a>
+ <a href="#define_node-instance_method" title="#define_node (instance method)">#<strong>define_node</strong>(opts = {}, &block) ⇒ PropertyTreeNode </a>
</span>
@@ -399,11 +399,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#find_node-instance_method" title="#find_node (instance method)">#<strong>find_node</strong>(path) ⇒ TermUtils::PropertyTreeNode </a>
+ <a href="#find_node-instance_method" title="#find_node (instance method)">#<strong>find_node</strong>(path) ⇒ PropertyTreeNode </a>
</span>
@@ -488,11 +488,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Creates a new node.</p>
+<p>Creates a new PropertyTreeNode.</p>
</div></span>
</li>
@@ -608,11 +608,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Creates a new node. option opts [Object] :key option opts [Object] :value</p>
+<p>Creates a new PropertyTreeNode. option opts [Object] :key option opts [Object] :value</p>
</div>
</div>
<div class="tags">
@@ -622,11 +622,11 @@
<li>
<span class='name'>opts</span>
- <span class='type'>(<tt>Hash<Symbol, Object></tt>)</span>
+ <span class='type'>(<tt>Hash</tt>)</span>
<em class="default">(defaults to: <tt>{}</tt>)</em>
@@ -639,20 +639,20 @@
<tr>
<td>
<pre class="lines">
-31
-32
-33
-34
35
36
-37</pre>
+37
+38
+39
+40
+41</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 31</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 35</span>
<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>
<span class='ivar'>@parent_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
<span class='ivar'>@child_nodes</span> <span class='op'>=</span> <span class='kw'>nil</span>
<span class='ivar'>@key</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'>:key</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
@@ -672,11 +672,11 @@
<span id="child_nodes=-instance_method"></span>
<div class="method_details first">
<h3 class="signature first" id="child_nodes-instance_method">
- #<strong>child_nodes</strong> ⇒ <tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span>></tt>
+ #<strong>child_nodes</strong> ⇒ <tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span>></tt>
@@ -692,11 +692,11 @@
<ul class="return">
<li>
- <span class='type'>(<tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span>></tt>)</span>
+ <span class='type'>(<tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span>></tt>)</span>
</li>
@@ -706,16 +706,16 @@
<tr>
<td>
<pre class="lines">
-22
-23
-24</pre>
+25
+26
+27</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 22</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 25</span>
<span class='kw'>def</span> <span class='id identifier rubyid_child_nodes'>child_nodes</span>
<span class='ivar'>@child_nodes</span>
<span class='kw'>end</span></pre>
</td>
@@ -760,16 +760,16 @@
<tr>
<td>
<pre class="lines">
-24
-25
-26</pre>
+27
+28
+29</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 24</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 27</span>
<span class='kw'>def</span> <span class='id identifier rubyid_key'>key</span>
<span class='ivar'>@key</span>
<span class='kw'>end</span></pre>
</td>
@@ -780,11 +780,11 @@
<span id="parent_node=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="parent_node-instance_method">
- #<strong>parent_node</strong> ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>
+ #<strong>parent_node</strong> ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>
@@ -800,11 +800,11 @@
<ul class="return">
<li>
- <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>)</span>
</li>
@@ -814,16 +814,16 @@
<tr>
<td>
<pre class="lines">
-20
-21
-22</pre>
+23
+24
+25</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 20</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 23</span>
<span class='kw'>def</span> <span class='id identifier rubyid_parent_node'>parent_node</span>
<span class='ivar'>@parent_node</span>
<span class='kw'>end</span></pre>
</td>
@@ -868,16 +868,16 @@
<tr>
<td>
<pre class="lines">
-26
-27
-28</pre>
+29
+30
+31</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 26</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 29</span>
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
<span class='ivar'>@value</span>
<span class='kw'>end</span></pre>
</td>
@@ -893,11 +893,11 @@
<div class="method_details first">
<h3 class="signature first" id="child_node-instance_method">
- #<strong>child_node</strong>(key) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt><sup>?</sup>
+ #<strong>child_node</strong>(key) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt><sup>?</sup>
@@ -930,11 +930,11 @@
<ul class="return">
<li>
- <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>, <tt>nil</tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>, <tt>nil</tt>)</span>
</li>
@@ -944,18 +944,18 @@
<tr>
<td>
<pre class="lines">
-64
-65
-66
-67
-68</pre>
+72
+73
+74
+75
+76</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 64</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 72</span>
<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>
<span class='kw'>if</span> <span class='ivar'>@child_nodes</span>
<span class='ivar'>@child_nodes</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span> <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span> <span class='op'>==</span> <span class='id identifier rubyid_key'>key</span> <span class='rbrace'>}</span>
<span class='kw'>end</span>
@@ -966,11 +966,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="collect_nodes-instance_method">
- #<strong>collect_nodes</strong>(opts = {}) ⇒ <tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span>></tt>
+ #<strong>collect_nodes</strong>(opts = {}) ⇒ <tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span>></tt>
@@ -989,32 +989,54 @@
<li>
<span class='name'>opts</span>
- <span class='type'>(<tt>Hash<Symbol,Object></tt>)</span>
+ <span class='type'>(<tt>Hash</tt>)</span>
<em class="default">(defaults to: <tt>{}</tt>)</em>
- —
- <div class='inline'>
-<p>`:path`, `:leaf_only`</p>
-</div>
-
</li>
</ul>
+
+
+
+ <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
+ <ul class="option">
+
+ <li>
+ <span class="name">:path</span>
+ <span class="type">(<tt>Array</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ <li>
+ <span class="name">:leaf_only</span>
+ <span class="type">(<tt>Boolean</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ </ul>
+
+
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
- <span class='type'>(<tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span>></tt>)</span>
+ <span class='type'>(<tt>Array<<span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span>></tt>)</span>
</li>
@@ -1024,20 +1046,20 @@
<tr>
<td>
<pre class="lines">
-137
-138
-139
-140
-141
-142
-143</pre>
+155
+156
+157
+158
+159
+160
+161</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 137</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 155</span>
<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>
<span class='id identifier rubyid_nodes'>nodes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</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='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='id identifier rubyid_nodes'>nodes</span> <span class='op'><<</span> <span class='id identifier rubyid_n'>n</span>
@@ -1073,25 +1095,47 @@
<li>
<span class='name'>opts</span>
- <span class='type'>(<tt>Hash<Symbol,Object></tt>)</span>
+ <span class='type'>(<tt>Hash</tt>)</span>
<em class="default">(defaults to: <tt>{}</tt>)</em>
- —
- <div class='inline'>
-<p>`:path`, `:leaf_only`</p>
-</div>
-
</li>
</ul>
+
+
+
+ <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
+ <ul class="option">
+
+ <li>
+ <span class="name">:path</span>
+ <span class="type">(<tt>Array</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ <li>
+ <span class="name">:leaf_only</span>
+ <span class="type">(<tt>Boolean</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ </ul>
+
+
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
@@ -1108,20 +1152,20 @@
<tr>
<td>
<pre class="lines">
-147
-148
-149
-150
-151
-152
-153</pre>
+168
+169
+170
+171
+172
+173
+174</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 147</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 168</span>
<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>
<span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</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='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='id identifier rubyid_paths'>paths</span> <span class='op'><<</span> <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span>
@@ -1157,25 +1201,47 @@
<li>
<span class='name'>opts</span>
- <span class='type'>(<tt>Hash<Symbol,Object></tt>)</span>
+ <span class='type'>(<tt>Hash</tt>)</span>
<em class="default">(defaults to: <tt>{}</tt>)</em>
- —
- <div class='inline'>
-<p>`:path`, `:leaf_only`</p>
-</div>
-
</li>
</ul>
+
+
+
+ <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
+ <ul class="option">
+
+ <li>
+ <span class="name">:path</span>
+ <span class="type">(<tt>Array</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ <li>
+ <span class="name">:leaf_only</span>
+ <span class="type">(<tt>Boolean</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ </ul>
+
+
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
@@ -1192,20 +1258,20 @@
<tr>
<td>
<pre class="lines">
-157
-158
-159
-160
-161
-162
-163</pre>
+181
+182
+183
+184
+185
+186
+187</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 157</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 181</span>
<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>
<span class='id identifier rubyid_vals'>vals</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</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='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='id identifier rubyid_vals'>vals</span> <span class='op'><<</span> <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <span class='kw'>if</span> <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
@@ -1218,11 +1284,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="define_node-instance_method">
- #<strong>define_node</strong>(opts = {}, &block) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>
+ #<strong>define_node</strong>(opts = {}, &block) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>
@@ -1241,32 +1307,56 @@
<li>
<span class='name'>opts</span>
- <span class='type'>(<tt>Hash<Symbol,Object></tt>)</span>
+ <span class='type'>(<tt>Hash</tt>)</span>
<em class="default">(defaults to: <tt>{}</tt>)</em>
- —
- <div class='inline'>
-<p>key value</p>
-</div>
-
</li>
</ul>
+
+
+
+ <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
+ <ul class="option">
+
+ <li>
+ <span class="name">:key</span>
+ <span class="type">(<tt>Object</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ <li>
+ <span class="name">:value</span>
+ <span class="type">(<tt>Object</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ </ul>
+
+
+
+
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
- <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>)</span>
</li>
@@ -1276,21 +1366,21 @@
<tr>
<td>
<pre class="lines">
-72
-73
-74
-75
-76
-77
-78
-79</pre>
+83
+84
+85
+86
+87
+88
+89
+90</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 72</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 83</span>
<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>
<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>
<span class='id identifier rubyid_new_node'>new_node</span><span class='period'>.</span><span class='id identifier rubyid_parent_node'>parent_node</span> <span class='op'>=</span> <span class='kw'>self</span>
<span class='ivar'>@child_nodes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='ivar'>@child_nodes</span>
@@ -1327,25 +1417,49 @@
<li>
<span class='name'>opts</span>
- <span class='type'>(<tt>Hash<Symbol,Object></tt>)</span>
+ <span class='type'>(<tt>Hash</tt>)</span>
<em class="default">(defaults to: <tt>{}</tt>)</em>
- —
- <div class='inline'>
-<p>`:path`, `:leaf_only`</p>
-</div>
-
</li>
</ul>
+
+
+
+ <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
+ <ul class="option">
+
+ <li>
+ <span class="name">:path</span>
+ <span class="type">(<tt>Array</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ <li>
+ <span class="name">:leaf_only</span>
+ <span class="type">(<tt>Boolean</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ </ul>
+
+
+
+
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
@@ -1362,25 +1476,10 @@
<tr>
<td>
<pre class="lines">
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
105
106
107
108
109
@@ -1405,18 +1504,33 @@
128
129
130
131
132
-133</pre>
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 90</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 105</span>
<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>
<span class='id identifier rubyid_rpath'>rpath</span> <span class='op'>=</span> <span class='kw'>nil</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span> <span class='symbol'>:path</span>
+ <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>
<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>
<span class='kw'>end</span>
<span class='id identifier rubyid_dive'>dive</span> <span class='op'>=</span> <span class='kw'>true</span>
<span class='kw'>if</span> <span class='ivar'>@key</span>
<span class='id identifier rubyid_hide'>hide</span> <span class='op'>=</span> <span class='kw'>false</span>
@@ -1428,19 +1542,19 @@
<span class='kw'>else</span>
<span class='id identifier rubyid_dive'>dive</span> <span class='op'>=</span> <span class='kw'>false</span>
<span class='id identifier rubyid_hide'>hide</span> <span class='op'>=</span> <span class='kw'>true</span>
<span class='kw'>end</span>
<span class='kw'>end</span>
- <span class='kw'>unless</span> <span class='id identifier rubyid_hide'>hide</span> <span class='kw'>or</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='kw'>and</span> <span class='ivar'>@child_nodes</span><span class='rparen'>)</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span> <span class='symbol'>:block</span>
+ <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>
+ <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>
<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>
<span class='kw'>elsif</span> <span class='id identifier rubyid_block'>block</span>
<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>
<span class='kw'>end</span>
<span class='kw'>end</span>
<span class='kw'>end</span> <span class='comment'># if @key
-</span> <span class='kw'>if</span> <span class='id identifier rubyid_dive'>dive</span> <span class='kw'>and</span> <span class='ivar'>@child_nodes</span>
+</span> <span class='kw'>if</span> <span class='id identifier rubyid_dive'>dive</span> <span class='op'>&&</span> <span class='ivar'>@child_nodes</span>
<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>
<span class='kw'>if</span> <span class='id identifier rubyid_rpath'>rpath</span>
<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>
<span class='id identifier rubyid_ropts'>ropts</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='symbol'>:path</span>
<span class='kw'>else</span>
@@ -1513,19 +1627,19 @@
<tr>
<td>
<pre class="lines">
-184
-185
-186
-187
-188
-189</pre>
+211
+212
+213
+214
+215
+216</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 184</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 211</span>
<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>
<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>
<span class='kw'>if</span> <span class='id identifier rubyid_node'>node</span>
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_child_nodes'>child_nodes</span> <span class='op'>?</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_child_nodes'>child_nodes</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>:</span> <span class='int'>0</span>
@@ -1537,11 +1651,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="find_node-instance_method">
- #<strong>find_node</strong>(path) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>
+ #<strong>find_node</strong>(path) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>
@@ -1574,11 +1688,11 @@
<ul class="return">
<li>
- <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></tt>)</span>
</li>
@@ -1588,25 +1702,25 @@
<tr>
<td>
<pre class="lines">
-167
-168
-169
-170
-171
-172
-173
-174</pre>
+192
+193
+194
+195
+196
+197
+198
+199</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 167</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 192</span>
<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>
<span class='id identifier rubyid_catch'>catch</span> <span class='symbol'>:found</span> <span class='kw'>do</span>
- <span class='id identifier rubyid_each_node'>each_node</span><span class='lparen'>(</span><span class='symbol'>:path</span> <span class='op'>=></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='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='id identifier rubyid_throw'>throw</span> <span class='symbol'>:found</span><span class='comma'>,</span> <span class='id identifier rubyid_n'>n</span>
<span class='kw'>end</span>
<span class='kw'>nil</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
@@ -1667,19 +1781,19 @@
<tr>
<td>
<pre class="lines">
-193
-194
-195
-196
-197
-198</pre>
+221
+222
+223
+224
+225
+226</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 193</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 221</span>
<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>
<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>
<span class='kw'>if</span> <span class='id identifier rubyid_node'>node</span>
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
@@ -1727,16 +1841,16 @@
<tr>
<td>
<pre class="lines">
-53
-54
-55</pre>
+59
+60
+61</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 53</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 59</span>
<span class='kw'>def</span> <span class='id identifier rubyid_head?'>head?</span>
<span class='ivar'>@parent_node</span> <span class='op'>==</span> <span class='kw'>nil</span>
<span class='kw'>end</span></pre>
</td>
@@ -1768,25 +1882,25 @@
<tr>
<td>
<pre class="lines">
-39
-40
-41
-42
-43
44
45
46
47
48
49
-50</pre>
+50
+51
+52
+53
+54
+55</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 39</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 44</span>
<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>
<span class='ivar'>@parent_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
<span class='kw'>if</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_child_nodes'>child_nodes</span>
<span class='ivar'>@child_nodes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -1840,16 +1954,16 @@
<tr>
<td>
<pre class="lines">
-58
-59
-60</pre>
+65
+66
+67</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 58</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 65</span>
<span class='kw'>def</span> <span class='id identifier rubyid_leaf?'>leaf?</span>
<span class='ivar'>@child_nodes</span> <span class='op'>==</span> <span class='kw'>nil</span>
<span class='kw'>end</span></pre>
</td>
@@ -1909,16 +2023,16 @@
<tr>
<td>
<pre class="lines">
-178
-179
-180</pre>
+204
+205
+206</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 178</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 204</span>
<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>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -1963,18 +2077,18 @@
<tr>
<td>
<pre class="lines">
-82
-83
-84
-85
-86</pre>
+94
+95
+96
+97
+98</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 82</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/property_tree_node.rb', line 94</span>
<span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
<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>
<span class='id identifier rubyid_p'>p</span> <span class='op'><<</span> <span class='ivar'>@key</span> <span class='kw'>if</span> <span class='ivar'>@key</span>
<span class='id identifier rubyid_p'>p</span>
@@ -1987,12 +2101,12 @@
</div>
</div>
<div id="footer">
- Generated on Fri Feb 7 18:54:42 2020 by
+ Generated on Sun Aug 2 18:35:10 2020 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.9.20 (ruby-2.6.5).
+ 0.9.25 (ruby-2.6.5).
</div>
</div>
</body>
</html>
\ No newline at end of file