doc/RubyProf/MethodInfo.html in ruby-prof-0.13.0 vs doc/RubyProf/MethodInfo.html in ruby-prof-0.13.1

- old
+ new

@@ -268,11 +268,11 @@ <div class="method-source-code" id="aggregate_children-source"> <pre><span class="ruby-comment"># File lib/ruby-prof/method_info.rb, line 105</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier">aggregate_children</span> - <span class="ruby-comment"># Group call info's based on their targets</span> + <span class="ruby-comment"># Group call info&#39;s based on their targets</span> <span class="ruby-identifier">groups</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span>, <span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span> <span class="ruby-identifier">key</span> = <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">target</span> (<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">||=</span> []) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">call_info</span> <span class="ruby-identifier">hash</span> <span class="ruby-keyword">end</span> @@ -307,10 +307,10 @@ <div class="method-source-code" id="aggregate_parents-source"> <pre><span class="ruby-comment"># File lib/ruby-prof/method_info.rb, line 92</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier">aggregate_parents</span> - <span class="ruby-comment"># Group call info's based on their parents</span> + <span class="ruby-comment"># Group call info&#39;s based on their parents</span> <span class="ruby-identifier">groups</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">call_infos</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span>, <span class="ruby-identifier">call_info</span><span class="ruby-operator">|</span> <span class="ruby-identifier">key</span> = <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">call_info</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">target</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">self</span> (<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">||=</span> []) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">call_info</span> <span class="ruby-identifier">hash</span> <span class="ruby-keyword">end</span>