doc-api/classes/Kwalify/BaseError.html in kwalify-0.6.1 vs doc-api/classes/Kwalify/BaseError.html in kwalify-0.7.0

- old
+ new

@@ -86,15 +86,14 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000035">&lt;=&gt;</a>&nbsp;&nbsp; - <a href="#M000033">message</a>&nbsp;&nbsp; - <a href="#M000031">new</a>&nbsp;&nbsp; - <a href="#M000032">path</a>&nbsp;&nbsp; - <a href="#M000034">to_s</a>&nbsp;&nbsp; + <a href="#M000084">&lt;=&gt;</a>&nbsp;&nbsp; + <a href="#M000081">new</a>&nbsp;&nbsp; + <a href="#M000082">path</a>&nbsp;&nbsp; + <a href="#M000083">to_s</a>&nbsp;&nbsp; </div> </div> </div> @@ -110,13 +109,18 @@ <div class="name-list"> <table summary="aliases"> <tr class="top-aligned-row context-row"> <td class="context-item-name">to_s</td> - <td>-></td> + <td>-&gt;</td> <td class="context-item-value">_to_s</td> </tr> + <tr class="top-aligned-row context-row"> + <td class="context-item-name">to_s</td> + <td>-&gt;</td> + <td class="context-item-value">message</td> + </tr> </table> </div> </div> @@ -124,32 +128,42 @@ <h3 class="section-bar">Attributes</h3> <div class="name-list"> <table> <tr class="top-aligned-row context-row"> + <td class="context-item-name">column</td> + <td class="context-item-value">&nbsp;[RW]&nbsp;</td> + <td class="context-item-desc"></td> + </tr> + <tr class="top-aligned-row context-row"> <td class="context-item-name">error_symbol</td> - <td class="context-item-value">&nbsp;[R]&nbsp;</td> + <td class="context-item-value">&nbsp;[RW]&nbsp;</td> <td class="context-item-desc"></td> </tr> <tr class="top-aligned-row context-row"> + <td class="context-item-name">filename</td> + <td class="context-item-value">&nbsp;[RW]&nbsp;</td> + <td class="context-item-desc"></td> + </tr> + <tr class="top-aligned-row context-row"> <td class="context-item-name">linenum</td> <td class="context-item-value">&nbsp;[RW]&nbsp;</td> <td class="context-item-desc"></td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">path</td> - <td class="context-item-value">&nbsp;[R]&nbsp;</td> + <td class="context-item-value">&nbsp;[RW]&nbsp;</td> <td class="context-item-desc"></td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">rule</td> - <td class="context-item-value">&nbsp;[R]&nbsp;</td> + <td class="context-item-value">&nbsp;[RW]&nbsp;</td> <td class="context-item-desc"></td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">value</td> - <td class="context-item-value">&nbsp;[R]&nbsp;</td> + <td class="context-item-value">&nbsp;[RW]&nbsp;</td> <td class="context-item-desc"></td> </tr> </table> </div> </div> @@ -158,125 +172,112 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000031" class="method-detail"> - <a name="M000031"></a> + <div id="method-M000081" class="method-detail"> + <a name="M000081"></a> <div class="method-heading"> - <a href="#M000031" class="method-signature"> + <a href="#M000081" class="method-signature"> <span class="method-name">new</span><span class="method-args">(message=&quot;&quot;, path=nil, value=nil, rule=nil, error_symbol=nil)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000031-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000031-source"> + onclick="toggleCode('M000081-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000081-source"> <pre> <span class="ruby-comment cmt"># File kwalify/errors.rb, line 23</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>=<span class="ruby-value str">&quot;&quot;</span>, <span class="ruby-identifier">path</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">rule</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">error_symbol</span>=<span class="ruby-keyword kw">nil</span>) - <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">message</span>) - <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span> - <span class="ruby-ivar">@rule</span> = <span class="ruby-identifier">rule</span> - <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span> - <span class="ruby-ivar">@error_symbol</span> = <span class="ruby-identifier">error_symbol</span> - <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>=<span class="ruby-value str">&quot;&quot;</span>, <span class="ruby-identifier">path</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">rule</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">error_symbol</span>=<span class="ruby-keyword kw">nil</span>) + <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">message</span>) + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span> + <span class="ruby-ivar">@rule</span> = <span class="ruby-identifier">rule</span> + <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span> + <span class="ruby-ivar">@error_symbol</span> = <span class="ruby-identifier">error_symbol</span> + <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000035" class="method-detail"> - <a name="M000035"></a> + <div id="method-M000084" class="method-detail"> + <a name="M000084"></a> <div class="method-heading"> - <a href="#M000035" class="method-signature"> + <a href="#M000084" class="method-signature"> <span class="method-name">&lt;=&gt;</span><span class="method-args">(ex)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000035-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000035-source"> + onclick="toggleCode('M000084-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000084-source"> <pre> -<span class="ruby-comment cmt"># File kwalify/errors.rb, line 47</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">ex</span>) - <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@linenum</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">linenum</span> - <span class="ruby-keyword kw">end</span> +<span class="ruby-comment cmt"># File kwalify/errors.rb, line 49</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">ex</span>) + <span class="ruby-comment cmt">#return @linenum &lt;=&gt; ex.linenum</span> + <span class="ruby-identifier">v</span> = <span class="ruby-value">0</span> + <span class="ruby-identifier">v</span> = <span class="ruby-ivar">@linenum</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">linenum</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@linenum</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">linenum</span> + <span class="ruby-identifier">v</span> = <span class="ruby-ivar">@column</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">column</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@column</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">column</span> + <span class="ruby-identifier">v</span> = <span class="ruby-ivar">@path</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">path</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">v</span> + <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000033" class="method-detail"> - <a name="M000033"></a> + <div id="method-M000082" class="method-detail"> + <a name="M000082"></a> <div class="method-heading"> - <a href="#M000033" class="method-signature"> - <span class="method-name">message</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p><a class="source-toggle" href="#" - onclick="toggleCode('M000033-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000033-source"> -<pre> -<span class="ruby-comment cmt"># File kwalify/errors.rb, line 39</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message</span> - <span class="ruby-identifier">_to_s</span> - <span class="ruby-keyword kw">end</span> -</pre> - </div> - </div> - </div> - - <div id="method-M000032" class="method-detail"> - <a name="M000032"></a> - - <div class="method-heading"> - <a href="#M000032" class="method-signature"> + <a href="#M000082" class="method-signature"> <span class="method-name">path</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000032-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000032-source"> + onclick="toggleCode('M000082-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000082-source"> <pre> <span class="ruby-comment cmt"># File kwalify/errors.rb, line 33</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> - <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@path</span> <span class="ruby-operator">==</span> <span class="ruby-value str">''</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;/&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@path</span> - <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@path</span> <span class="ruby-operator">==</span> <span class="ruby-value str">''</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;/&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@path</span> + <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000034" class="method-detail"> - <a name="M000034"></a> + <div id="method-M000083" class="method-detail"> + <a name="M000083"></a> <div class="method-heading"> - <a href="#M000034" class="method-signature"> + <a href="#M000083" class="method-signature"> <span class="method-name">to_s</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000034-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000034-source"> + onclick="toggleCode('M000083-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000083-source"> <pre> -<span class="ruby-comment cmt"># File kwalify/errors.rb, line 43</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> - <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;[#{path()}] #{message()}&quot;</span> - <span class="ruby-keyword kw">end</span> +<span class="ruby-comment cmt"># File kwalify/errors.rb, line 40</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">s</span> = <span class="ruby-value str">''</span> + <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@filename</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;:&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span> + <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{@linenum}:#{@column} &quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@linenum</span> + <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;[#{path()}] &quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@path</span> + <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">_to_s</span>() + <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span> + <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> \ No newline at end of file