doc/main-rdoc/classes/Heap.src/M000039.html in facets-0.7.1 vs doc/main-rdoc/classes/Heap.src/M000039.html in facets-0.7.2

- old
+ new

@@ -3,23 +3,14 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>heapify (Heap)</title> + <title>inherited (Heap)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/facet/heap.rb, line 186</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">heapify</span>(<span class="ruby-identifier">i</span>) - <span class="ruby-identifier">l</span> = <span class="ruby-identifier">left</span> <span class="ruby-identifier">i</span> - <span class="ruby-identifier">top</span> = <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">l</span> <span class="ruby-operator">&lt;</span> <span class="ruby-ivar">@heap_size</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">cmp_idx</span>(<span class="ruby-identifier">l</span>,<span class="ruby-identifier">i</span>) <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">l</span> <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">r</span> = <span class="ruby-identifier">right</span> <span class="ruby-identifier">i</span> - <span class="ruby-identifier">top</span> = <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">r</span> <span class="ruby-operator">&lt;</span> <span class="ruby-ivar">@heap_size</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">cmp_idx</span>(<span class="ruby-identifier">r</span>,<span class="ruby-identifier">top</span>) <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">r</span> <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">top</span> <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">top</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">i</span> - <span class="ruby-identifier">swap</span>(<span class="ruby-identifier">i</span>, <span class="ruby-identifier">top</span>) - <span class="ruby-identifier">heapify</span>(<span class="ruby-identifier">top</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> + <pre><span class="ruby-comment cmt"># File lib/facet/heap.rb, line 69</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">sub</span>) <span class="ruby-identifier">sub</span>.<span class="ruby-identifier">class_eval</span>(<span class="ruby-value str">&quot;public_class_method :new&quot;</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file