doc/TermUtils/AP/Result.html in term_utils-0.3.2 vs doc/TermUtils/AP/Result.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::AP::Result
- — 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::AP::Result";
relpath = '../../';
</script>
@@ -118,20 +118,22 @@
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> ⇒ TermUtils::PropertyTreeNode </a>
+ <a href="#parameter-instance_method" title="#parameter (instance method)">#<strong>parameter</strong> ⇒ Syntax </a>
</span>
+ <span class="note title readonly">readonly</span>
+
@@ -140,51 +142,79 @@
<span class="summary_desc"><div class='inline'></div></span>
</li>
- </ul>
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#remaining_arguments-instance_method" title="#remaining_arguments (instance method)">#<strong>remaining_arguments</strong> ⇒ Array<String> </a>
+
+
+ </span>
+
+
+
+
+
+
+
+
+
+
-
-
- <h2>
- Instance Method Summary
- <small><a href="#" class="summary_toggle">collapse</a></small>
- </h2>
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
- <ul class="summary">
-
- <li class="public ">
+
+ <li class="public ">
<span class="summary_signature">
- <a href="#collect-instance_method" title="#collect (instance method)">#<strong>collect</strong>(id, &block) ⇒ Array<Symbol> </a>
+ <a href="#results-instance_method" title="#results (instance method)">#<strong>results</strong> ⇒ Array<ParameterResult> </a>
</span>
+
+ <span class="note title readonly">readonly</span>
+
+
+
- <span class="summary_desc"><div class='inline'>
-<p>Collects IDs.</p>
-</div></span>
+ <span class="summary_desc"><div class='inline'></div></span>
</li>
+
+ </ul>
+
+
+
+
+
+ <h2>
+ Instance Method Summary
+ <small><a href="#" class="summary_toggle">collapse</a></small>
+ </h2>
+
+ <ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#eval_occurs-instance_method" title="#eval_occurs (instance method)">#<strong>eval_occurs</strong>(id) ⇒ Integer </a>
+ <a href="#add_result-instance_method" title="#add_result (instance method)">#<strong>add_result</strong>(result) ⇒ Object </a>
</span>
@@ -195,20 +225,20 @@
<span class="summary_desc"><div class='inline'>
-<p>Evaluates the number of occurrences of a given level, parameter or article.</p>
+<p>Adds a ParameterResult.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#fetch_value-instance_method" title="#fetch_value (instance method)">#<strong>fetch_value</strong>(id, opts = {}) ⇒ Object </a>
+ <a href="#find_parameter-instance_method" title="#find_parameter (instance method)">#<strong>find_parameter</strong>(id) ⇒ ParameterResult </a>
</span>
@@ -219,70 +249,70 @@
<span class="summary_desc"><div class='inline'>
-<p>Fetches a value.</p>
+<p>Returns the first ParameterResult for a given parameter id.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(syntax, element = nil, value = nil) ⇒ Result </a>
+ <a href="#find_parameters-instance_method" title="#find_parameters (instance method)">#<strong>find_parameters</strong>(id) ⇒ Array<ParameterResult> </a>
</span>
- <span class="note title constructor">constructor</span>
-
<span class="summary_desc"><div class='inline'>
-<p>Constructs a new Result.</p>
+<p>Returns all ParameterResult(s) for a given parameter id.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#present%3F-instance_method" title="#present? (instance method)">#<strong>present?</strong>(id) ⇒ Boolean </a>
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(syntax) ⇒ Result </a>
</span>
+ <span class="note title constructor">constructor</span>
+
<span class="summary_desc"><div class='inline'>
-<p>Tests whether a given level/parameter/article is present in the result value.</p>
+<p>Constructs a new Result.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#shift-instance_method" title="#shift (instance method)">#<strong>shift</strong>(id, opts = {}) ⇒ TermUtils::AP::Result </a>
+ <a href="#walk-instance_method" title="#walk (instance method)">#<strong>walk</strong>(&block) ⇒ Object </a>
</span>
@@ -293,11 +323,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Shifts this one.</p>
+<p>Walks through this one.</p>
</div></span>
</li>
@@ -308,11 +338,11 @@
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
- #<strong>initialize</strong>(syntax, element = nil, value = nil) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::AP::Result (class)">Result</a></span></tt>
+ #<strong>initialize</strong>(syntax) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::AP::Result (class)">Result</a></span></tt>
@@ -331,89 +361,38 @@
<li>
<span class='name'>syntax</span>
- <span class='type'>(<tt>Darn::AP::Syntax</tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="Syntax.html" title="TermUtils::AP::Syntax (class)">Syntax</a></span></tt>)</span>
- —
- <div class='inline'>
-<p>Syntax.</p>
-</div>
-
</li>
- <li>
-
- <span class='name'>element</span>
-
-
- <span class='type'>(<tt>Darn::AP::Element</tt>)</span>
-
-
- <em class="default">(defaults to: <tt>nil</tt>)</em>
-
-
- —
- <div class='inline'>
-<p>Optional Element.</p>
-</div>
-
- </li>
-
- <li>
-
- <span class='name'>value</span>
-
-
- <span class='type'>(<tt>Darn::PropertyTreeNode</tt>)</span>
-
-
- <em class="default">(defaults to: <tt>nil</tt>)</em>
-
-
- —
- <div class='inline'>
-<p>Optional value.</p>
-</div>
-
- </li>
-
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-28
-29
-30
-31
32
33
34
35
-36
-37</pre>
+36</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 28</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 32</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_syntax'>syntax</span><span class='comma'>,</span> <span class='id identifier rubyid_element'>element</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
- <span class='ivar'>@syntax</span> <span class='op'>=</span> <span class='id identifier rubyid_syntax'>syntax</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
- <span class='ivar'>@element</span> <span class='op'>=</span> <span class='id identifier rubyid_element'>element</span> <span class='op'>?</span> <span class='id identifier rubyid_element'>element</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span> <span class='op'>:</span> <span class='kw'>nil</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span>
- <span class='ivar'>@value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
- <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='kw'>nil</span>
- <span class='kw'>else</span>
- <span class='ivar'>@value</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="../PropertyTreeNode.html" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../PropertyTreeNode.html#initialize-instance_method" title="TermUtils::PropertyTreeNode#initialize (method)">new</a></span></span>
- <span class='kw'>end</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_syntax'>syntax</span><span class='rparen'>)</span>
+ <span class='ivar'>@syntax</span> <span class='op'>=</span> <span class='id identifier rubyid_syntax'>syntax</span>
+ <span class='ivar'>@results</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
+ <span class='ivar'>@remaining_arguments</span> <span class='op'>=</span> <span class='kw'>nil</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -422,15 +401,15 @@
<div id="instance_attr_details" class="attr_details">
<h2>Instance Attribute Details</h2>
- <span id="value=-instance_method"></span>
+ <span id=""></span>
<div class="method_details first">
- <h3 class="signature first" id="value-instance_method">
+ <h3 class="signature first" id="parameter-instance_method">
- #<strong>value</strong> ⇒ <tt><span class='object_link'><a href="../PropertyTreeNode.html" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>
+ #<strong>parameter</strong> ⇒ <tt><span class='object_link'><a href="Syntax.html" title="TermUtils::AP::Syntax (class)">Syntax</a></span></tt> <span class="extras">(readonly)</span>
@@ -446,11 +425,11 @@
<ul class="return">
<li>
- <span class='type'>(<tt><span class='object_link'><a href="../PropertyTreeNode.html" title="TermUtils::PropertyTreeNode (class)">TermUtils::PropertyTreeNode</a></span></tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="Syntax.html" title="TermUtils::AP::Syntax (class)">Syntax</a></span></tt>)</span>
</li>
@@ -460,78 +439,51 @@
<tr>
<td>
<pre class="lines">
-23
24
-25</pre>
+25
+26</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 23</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 24</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
- <span class='ivar'>@value</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_parameter'>parameter</span>
+ <span class='ivar'>@parameter</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
- </div>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <h3 class="signature first" id="collect-instance_method">
+
+ <span id="remaining_arguments=-instance_method"></span>
+ <div class="method_details ">
+ <h3 class="signature " id="remaining_arguments-instance_method">
- #<strong>collect</strong>(id, &block) ⇒ <tt>Array<Symbol></tt>
+ #<strong>remaining_arguments</strong> ⇒ <tt>Array<String></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Collects IDs.</p>
-
</div>
</div>
<div class="tags">
- <p class="tag_title">Parameters:</p>
-<ul class="param">
- <li>
-
- <span class='name'>id</span>
-
-
- <span class='type'>(<tt>Symbol</tt>, <tt>Array<Symbol></tt>)</span>
-
-
-
- —
- <div class='inline'>
-<p>ID path.</p>
-</div>
-
- </li>
-
-</ul>
-
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
- <span class='type'>(<tt>Array<Symbol></tt>)</span>
+ <span class='type'>(<tt>Array<String></tt>)</span>
</li>
@@ -541,387 +493,155 @@
<tr>
<td>
<pre class="lines">
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59</pre>
+28
+29
+30</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 41</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 28</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</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_node'>node</span> <span class='op'>=</span> <span class='ivar'>@value</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span>
- <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Symbol</span>
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_find_node'>find_node</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- <span class='id identifier rubyid_res'>res</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
- <span class='kw'>return</span> <span class='id identifier rubyid_res'>res</span> <span class='kw'>unless</span> <span class='id identifier rubyid_node'>node</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='kw'>if</span> <span class='id identifier rubyid_block'>block</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_each'>each</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_res'>res</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='kw'>if</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='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- <span class='kw'>else</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_each'>each</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_res'>res</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='kw'>end</span>
- <span class='kw'>end</span>
- <span class='id identifier rubyid_res'>res</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_remaining_arguments'>remaining_arguments</span>
+ <span class='ivar'>@remaining_arguments</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
+
+ <span id=""></span>
<div class="method_details ">
- <h3 class="signature " id="eval_occurs-instance_method">
+ <h3 class="signature " id="results-instance_method">
- #<strong>eval_occurs</strong>(id) ⇒ <tt>Integer</tt>
+ #<strong>results</strong> ⇒ <tt>Array<<span class='object_link'><a href="ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span>></tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
-<p>Evaluates the number of occurrences of a given level, parameter or article.</p>
-
</div>
</div>
<div class="tags">
- <p class="tag_title">Parameters:</p>
-<ul class="param">
- <li>
-
- <span class='name'>id</span>
-
-
- <span class='type'>(<tt>Symbol</tt>, <tt>Array<Symbol></tt>)</span>
-
-
-
- </li>
-
-</ul>
-
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
- <span class='type'>(<tt>Integer</tt>)</span>
+ <span class='type'>(<tt>Array<<span class='object_link'><a href="ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span>></tt>)</span>
</li>
</ul>
-<p class="tag_title">Raises:</p>
-<ul class="raise">
-
- <li>
-
-
- <span class='type'>(<tt><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">TermUtils::AP::NoSuchValueError</a></span></tt>)</span>
-
-
-
- </li>
-
-</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82</pre>
+26
+27
+28</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 73</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 26</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_eval_occurs'>eval_occurs</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Symbol</span>
- <span class='id identifier rubyid_obj'>obj</span> <span class='op'>=</span> <span class='id identifier rubyid_fetch_syntax_object'>fetch_syntax_object</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such syntax object</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_obj'>obj</span>
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_find_node'>find_node</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <span class='kw'>return</span> <span class='int'>0</span> <span class='kw'>unless</span> <span class='id identifier rubyid_node'>node</span>
- <span class='kw'>return</span> <span class='int'>1</span> <span class='kw'>if</span> <span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_occur_bounded?'>occur_bounded?</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_max_occurs'>max_occurs</span> <span class='op'>==</span> <span class='int'>1</span><span class='rparen'>)</span>
- <span class='comment'># Parameter is multiple.
-</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>
+<span class='kw'>def</span> <span class='id identifier rubyid_results'>results</span>
+ <span class='ivar'>@results</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
- <div class="method_details ">
- <h3 class="signature " id="fetch_value-instance_method">
+ </div>
+
+
+ <div id="instance_method_details" class="method_details_list">
+ <h2>Instance Method Details</h2>
+
+
+ <div class="method_details first">
+ <h3 class="signature first" id="add_result-instance_method">
- #<strong>fetch_value</strong>(id, opts = {}) ⇒ <tt>Object</tt>
+ #<strong>add_result</strong>(result) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Fetches a value.</p>
+<p>Adds a ParameterResult.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
- <span class='name'>id</span>
+ <span class='name'>result</span>
- <span class='type'>(<tt>Symbol</tt>, <tt>Array<Symbol></tt>, <tt>nil</tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span></tt>)</span>
</li>
- <li>
-
- <span class='name'>opts</span>
-
-
- <span class='type'>(<tt>Hash</tt>)</span>
-
-
- <em class="default">(defaults to: <tt>{}</tt>)</em>
-
-
- —
- <div class='inline'>
-<p>`:index`, `:multi`.</p>
-</div>
-
- </li>
-
</ul>
-
-
-
-
-
- <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
- <ul class="option">
-
- <li>
- <span class="name">:index</span>
- <span class="type">(<tt>Integer</tt>)</span>
- <span class="default">
-
- </span>
-
- — <div class='inline'>
-<p>The index of a multiple-occurrence level/parameter/article.</p>
-</div>
-
- </li>
-
- <li>
- <span class="name">:multi</span>
- <span class="type">(<tt>Boolean</tt>)</span>
- <span class="default">
-
- </span>
-
- — <div class='inline'>
-<p>Whether an array of values shall be returned instead of a single value.</p>
-</div>
-
- </li>
-
- </ul>
-
-<p class="tag_title">Returns:</p>
-<ul class="return">
-
- <li>
-
-
- <span class='type'>(<tt>Object</tt>)</span>
-
-
-
- </li>
-
-</ul>
-<p class="tag_title">Raises:</p>
-<ul class="raise">
-
- <li>
-
-
- <span class='type'>(<tt><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">TermUtils::AP::NoSuchValueError</a></span></tt>)</span>
-
-
-
- </li>
-
-</ul>
-
</div><table class="source_code">
<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
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134</pre>
+40
+41
+42</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 90</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 40</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_fetch_value'>fetch_value</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_index'>index</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'>:index</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_multi'>multi</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'>:multi</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span>
- <span class='kw'>unless</span> <span class='id identifier rubyid_id'>id</span>
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='ivar'>@value</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_node'>node</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='op'>&&</span> <span class='id identifier rubyid_index'>index</span>
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_child_node'>child_node</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such value</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_node'>node</span>
- <span class='id identifier rubyid_vals'>vals</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_collect_values'>collect_values</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such value</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_vals'>vals</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
- <span class='kw'>return</span> <span class='id identifier rubyid_multi'>multi</span> <span class='op'>?</span> <span class='id identifier rubyid_vals'>vals</span> <span class='op'>:</span> <span class='id identifier rubyid_vals'>vals</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
- <span class='kw'>end</span>
- <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Symbol</span>
- <span class='id identifier rubyid_obj'>obj</span> <span class='op'>=</span> <span class='id identifier rubyid_fetch_syntax_object'>fetch_syntax_object</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such syntax object</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_obj'>obj</span>
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_find_node'>find_node</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_node'>node</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='op'>&&</span> <span class='id identifier rubyid_index'>index</span>
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_child_node'>child_node</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such value</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_node'>node</span>
- <span class='id identifier rubyid_catch'>catch</span> <span class='symbol'>:value</span> <span class='kw'>do</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parameter.html" title="TermUtils::AP::Parameter (class)">Parameter</a></span></span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>parameter has no article</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_articles'>articles</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such value</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_leaf?'>leaf?</span>
- <span class='id identifier rubyid_vals'>vals</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_collect_values'>collect_values</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such value</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_vals'>vals</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_multi'>multi</span>
- <span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:value</span><span class='comma'>,</span> <span class='id identifier rubyid_vals'>vals</span>
- <span class='kw'>else</span>
- <span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:value</span><span class='comma'>,</span> <span class='id identifier rubyid_vals'>vals</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
- <span class='kw'>end</span>
- <span class='kw'>elsif</span> <span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Article.html" title="TermUtils::AP::Article (class)">Article</a></span></span>
- <span class='comment'># raise TermUtils::AP::NoSuchValueError, "no such value" if node.leaf?
-</span> <span class='id identifier rubyid_vals'>vals</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_collect_values'>collect_values</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such value</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_vals'>vals</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_multi'>multi</span>
- <span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:value</span><span class='comma'>,</span> <span class='id identifier rubyid_vals'>vals</span>
- <span class='kw'>else</span>
- <span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:value</span><span class='comma'>,</span> <span class='id identifier rubyid_vals'>vals</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
- <span class='kw'>end</span>
- <span class='kw'>end</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong id</span><span class='tstring_end'>"</span></span>
- <span class='kw'>end</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_add_result'>add_result</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
+ <span class='ivar'>@results</span> <span class='op'><<</span> <span class='id identifier rubyid_result'>result</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="present?-instance_method">
+ <h3 class="signature " id="find_parameter-instance_method">
- #<strong>present?</strong>(id) ⇒ <tt>Boolean</tt>
+ #<strong>find_parameter</strong>(id) ⇒ <tt><span class='object_link'><a href="ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Tests whether a given level/parameter/article is present in the result value.</p>
+<p>Returns the first ParameterResult for a given parameter id.</p>
</div>
</div>
<div class="tags">
@@ -931,30 +651,25 @@
<li>
<span class='name'>id</span>
- <span class='type'>(<tt>Symbol</tt>, <tt>Array<Symbol></tt>)</span>
+ <span class='type'>(<tt>Symbol</tt>)</span>
- —
- <div class='inline'>
-<p>ID path.</p>
-</div>
-
</li>
</ul>
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
- <span class='type'>(<tt>Boolean</tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span></tt>)</span>
</li>
@@ -964,46 +679,38 @@
<tr>
<td>
<pre class="lines">
-63
-64
-65
-66
-67
-68
-69</pre>
+47
+48
+49</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 63</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 47</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_present?'>present?</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Symbol</span>
- <span class='op'>!</span><span class='op'>!</span><span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_child_node'>child_node</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <span class='kw'>elsif</span> <span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
- <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_node_exists?'>node_exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_find_parameter'>find_parameter</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
+ <span class='ivar'>@results</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_r'>r</span><span class='op'>|</span> <span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_param_id'>param_id</span> <span class='op'>==</span> <span class='id identifier rubyid_id'>id</span> <span class='rbrace'>}</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="shift-instance_method">
+ <h3 class="signature " id="find_parameters-instance_method">
- #<strong>shift</strong>(id, opts = {}) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::AP::Result (class)">TermUtils::AP::Result</a></span></tt>
+ #<strong>find_parameters</strong>(id) ⇒ <tt>Array<<span class='object_link'><a href="ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span>></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Shifts this one.</p>
+<p>Returns all ParameterResult(s) for a given parameter id.</p>
</div>
</div>
<div class="tags">
@@ -1013,138 +720,104 @@
<li>
<span class='name'>id</span>
- <span class='type'>(<tt>Symbol</tt>, <tt>Array<Symbol></tt>)</span>
+ <span class='type'>(<tt>Symbol</tt>)</span>
</li>
- <li>
-
- <span class='name'>opts</span>
-
-
- <span class='type'>(<tt>Hash</tt>)</span>
-
-
- <em class="default">(defaults to: <tt>{}</tt>)</em>
-
-
- —
- <div class='inline'>
-<p>`:index`, `:multi`.</p>
-</div>
-
- </li>
-
</ul>
-
-
-
-
-
- <p class="tag_title">Options Hash (<tt>opts</tt>):</p>
- <ul class="option">
-
- <li>
- <span class="name">:index</span>
- <span class="type">(<tt>Integer</tt>)</span>
- <span class="default">
-
- </span>
-
- — <div class='inline'>
-<p>The index of a multiple-occurrence level/parameter/article.</p>
-</div>
-
- </li>
-
- </ul>
-
-
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
- <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::AP::Result (class)">TermUtils::AP::Result</a></span></tt>)</span>
+ <span class='type'>(<tt>Array<<span class='object_link'><a href="ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span>></tt>)</span>
</li>
</ul>
-<p class="tag_title">Raises:</p>
-<ul class="raise">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+54
+55
+56</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 54</span>
+
+<span class='kw'>def</span> <span class='id identifier rubyid_find_parameters'>find_parameters</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
+ <span class='ivar'>@results</span><span class='period'>.</span><span class='id identifier rubyid_find_all'>find_all</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_r'>r</span><span class='op'>|</span> <span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_param_id'>param_id</span> <span class='op'>==</span> <span class='id identifier rubyid_id'>id</span> <span class='rbrace'>}</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <h3 class="signature " id="walk-instance_method">
- <li>
-
-
- <span class='type'>(<tt><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">TermUtils::AP::NoSuchValueError</a></span></tt>)</span>
-
-
-
- </li>
+ #<strong>walk</strong>(&block) ⇒ <tt>Object</tt>
-</ul>
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
+
+<p>Walks through this one.</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
-153
-154
-155
-156
-157
-158
-159
-160
-161</pre>
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 141</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/result.rb', line 59</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_shift'>shift</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_index'>index</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'>:index</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Symbol</span>
- <span class='id identifier rubyid_obj'>obj</span> <span class='op'>=</span> <span class='id identifier rubyid_fetch_syntax_object'>fetch_syntax_object</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such syntax object</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_obj'>obj</span>
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_find_node'>find_node</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_node'>node</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='op'>&&</span> <span class='id identifier rubyid_index'>index</span>
- <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_child_node'>child_node</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>no such value</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_node'>node</span>
- <span class='id identifier rubyid_catch'>catch</span> <span class='symbol'>:value</span> <span class='kw'>do</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Level.html" title="TermUtils::AP::Level (class)">Level</a></span></span>
- <span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:value</span><span class='comma'>,</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="TermUtils::AP::Result (class)">Result</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="TermUtils::AP::Result#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_syntax'>syntax</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
- <span class='kw'>elsif</span> <span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parameter.html" title="TermUtils::AP::Parameter (class)">Parameter</a></span></span>
- <span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:value</span><span class='comma'>,</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="TermUtils::AP::Result (class)">Result</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="TermUtils::AP::Result#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='ivar'>@syntax</span><span class='comma'>,</span> <span class='id identifier rubyid_obj'>obj</span><span class='comma'>,</span> <span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
- <span class='kw'>elsif</span> <span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Article.html" title="TermUtils::AP::Article (class)">Article</a></span></span>
- <span class='id identifier rubyid_throw'>throw</span> <span class='symbol'>:value</span><span class='comma'>,</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="TermUtils::AP::Result (class)">Result</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="TermUtils::AP::Result#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='ivar'>@syntax</span><span class='comma'>,</span> <span class='id identifier rubyid_obj'>obj</span><span class='comma'>,</span> <span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_walk'>walk</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_walker'>walker</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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Walker.html" title="TermUtils::AP::Walker (class)">Walker</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Walker.html#initialize-instance_method" title="TermUtils::AP::Walker#initialize (method)">new</a></span></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='id identifier rubyid_walker'>walker</span><span class='rparen'>)</span>
+ <span class='ivar'>@results</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span>
+ <span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_results'>results</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='op'>|</span>
+ <span class='id identifier rubyid_walker'>walker</span><span class='period'>.</span><span class='id identifier rubyid_notify_article'>notify_article</span><span class='lparen'>(</span><span class='id identifier rubyid_a'>a</span><span class='rparen'>)</span>
<span class='kw'>end</span>
- <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="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong id</span><span class='tstring_end'>"</span></span>
+ <span class='id identifier rubyid_walker'>walker</span><span class='period'>.</span><span class='id identifier rubyid_notify_parameter'>notify_parameter</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='rparen'>)</span>
<span class='kw'>end</span>
+ <span class='id identifier rubyid_walker'>walker</span><span class='period'>.</span><span class='id identifier rubyid_notify_finished'>notify_finished</span><span class='lparen'>(</span><span class='ivar'>@remaining_arguments</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -1152,12 +825,12 @@
</div>
</div>
<div id="footer">
- Generated on Fri Feb 7 18:54:40 2020 by
+ Generated on Sun Aug 2 18:35:09 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