doc/TermUtils/AP/Article.html in term_utils-0.3.2 vs doc/TermUtils/AP/Article.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::Article
- — 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::Article";
relpath = '../../';
</script>
@@ -349,11 +349,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Tests whether the number of occurs are fixed.</p>
+<p>Tests whether the number of occurs is fixed.</p>
</div></span>
</li>
@@ -470,27 +470,27 @@
<tr>
<td>
<pre class="lines">
-39
-40
41
42
43
44
-45</pre>
+45
+46
+47</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 39</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 41</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='rparen'>)</span>
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:id</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
<span class='ivar'>@min_occurs</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'>:min_occurs</span><span class='comma'>,</span> <span class='int'>1</span><span class='rparen'>)</span>
<span class='ivar'>@max_occurs</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'>:max_occurs</span><span class='comma'>,</span> <span class='int'>1</span><span class='rparen'>)</span>
<span class='ivar'>@type</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'>:type</span><span class='comma'>,</span> <span class='symbol'>:string</span><span class='rparen'>)</span>
- <span class='ivar'>@format</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:format</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%s</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
+ <span class='ivar'>@format</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:format</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%s</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -544,16 +544,16 @@
<tr>
<td>
<pre class="lines">
-31
32
-33</pre>
+33
+34</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 31</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 32</span>
<span class='kw'>def</span> <span class='id identifier rubyid_format'>format</span>
<span class='ivar'>@format</span>
<span class='kw'>end</span></pre>
</td>
@@ -598,16 +598,16 @@
<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/article.rb', line 23</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 24</span>
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
<span class='ivar'>@id</span>
<span class='kw'>end</span></pre>
</td>
@@ -652,16 +652,16 @@
<tr>
<td>
<pre class="lines">
-27
28
-29</pre>
+29
+30</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 27</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 28</span>
<span class='kw'>def</span> <span class='id identifier rubyid_max_occurs'>max_occurs</span>
<span class='ivar'>@max_occurs</span>
<span class='kw'>end</span></pre>
</td>
@@ -706,16 +706,16 @@
<tr>
<td>
<pre class="lines">
-25
26
-27</pre>
+27
+28</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 25</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 26</span>
<span class='kw'>def</span> <span class='id identifier rubyid_min_occurs'>min_occurs</span>
<span class='ivar'>@min_occurs</span>
<span class='kw'>end</span></pre>
</td>
@@ -735,11 +735,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns `:integer`, `:string`</p>
+<p>Returns `:integer`, `:string`.</p>
</div>
</div>
<div class="tags">
@@ -767,16 +767,16 @@
<tr>
<td>
<pre class="lines">
-29
30
-31</pre>
+31
+32</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 29</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 30</span>
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
<span class='ivar'>@type</span>
<span class='kw'>end</span></pre>
</td>
@@ -841,25 +841,27 @@
<tr>
<td>
<pre class="lines">
-48
-49
-50
51
52
53
54
-55</pre>
+55
+56
+57
+58
+59</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 48</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 51</span>
<span class='kw'>def</span> <span class='id identifier rubyid_finalize!'>finalize!</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_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="SyntaxError.html" title="TermUtils::AP::SyntaxError (class)">SyntaxError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>min_occurs must be equal or greater than 0</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='ivar'>@min_occurs</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='ivar'>@min_occurs</span> <span class='op'>>=</span> <span class='int'>0</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="SyntaxError.html" title="TermUtils::AP::SyntaxError (class)">SyntaxError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>max_occurs must be equal or greater than min_occurs</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='op'>!</span><span class='id identifier rubyid_occur_bounded?'>occur_bounded?</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>>=</span> <span class='ivar'>@min_occurs</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="SyntaxError.html" title="TermUtils::AP::SyntaxError (class)">SyntaxError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>min_occurs must be equal or greater than 0</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@min_occurs</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Integer</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='ivar'>@min_occurs</span> <span class='op'><</span> <span class='int'>0</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="SyntaxError.html" title="TermUtils::AP::SyntaxError (class)">SyntaxError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>max_occurs must be equal or greater than min_occurs</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_occur_bounded?'>occur_bounded?</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'><</span> <span class='ivar'>@min_occurs</span><span class='rparen'>)</span>
+
<span class='kw'>unless</span> <span class='ivar'>@id</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:anonymous</span><span class='rbracket'>]</span> <span class='op'>+=</span> <span class='int'>1</span>
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>anonymous</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:anonymous</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_intern'>intern</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
@@ -905,19 +907,19 @@
<tr>
<td>
<pre class="lines">
-58
-59
-60</pre>
+63
+64
+65</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 58</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 63</span>
<span class='kw'>def</span> <span class='id identifier rubyid_multiple_occurs?'>multiple_occurs?</span>
- <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>==</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>==</span> <span class='symbol'>:infinity</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='lparen'>(</span><span class='ivar'>@max_occurs</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>></span> <span class='int'>1</span><span class='rparen'>)</span><span class='rparen'>)</span>
+ <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>==</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='ivar'>@max_occurs</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Integer</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>></span> <span class='int'>1</span><span class='rparen'>)</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -932,11 +934,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Tests whether the number of occurs are fixed.</p>
+<p>Tests whether the number of occurs is fixed.</p>
</div>
</div>
<div class="tags">
@@ -959,19 +961,19 @@
<tr>
<td>
<pre class="lines">
-63
-64
-65</pre>
+69
+70
+71</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 63</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ap/article.rb', line 69</span>
<span class='kw'>def</span> <span class='id identifier rubyid_occur_bounded?'>occur_bounded?</span>
- <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>!=</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>!=</span> <span class='symbol'>:infinity</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='ivar'>@max_occurs</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span><span class='rparen'>)</span>
+ <span class='lparen'>(</span><span class='ivar'>@max_occurs</span> <span class='op'>!=</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='ivar'>@max_occurs</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Integer</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -979,12 +981,12 @@
</div>
</div>
<div id="footer">
- Generated on Fri Feb 7 18:54:41 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