doc/classes/Hash.src/M000020.html in autobuild-0.5.1 vs doc/classes/Hash.src/M000020.html in autobuild-0.6

- old
+ new

@@ -3,21 +3,24 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>each_recursive (Hash)</title> + <title>keys_to_sym (Hash)</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/autobuild/config.rb, line 22</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_recursive</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">p</span>) - <span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span> - <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:each_recursive</span>) - <span class="ruby-identifier">v</span>.<span class="ruby-identifier">each_recursive</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">p</span>) + <pre><span class="ruby-comment cmt"># File lib/autobuild/loaders/config.rb, line 10</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keys_to_sym</span> + <span class="ruby-identifier">inject</span>(<span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span>, <span class="ruby-identifier">sample</span><span class="ruby-operator">|</span> + <span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span> = <span class="ruby-identifier">sample</span>[<span class="ruby-value">0</span>], <span class="ruby-identifier">sample</span>[<span class="ruby-value">1</span>] + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:keys_to_sym</span>) + <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">v</span>.<span class="ruby-identifier">keys_to_sym</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">v</span> <span class="ruby-keyword kw">end</span> - } + <span class="ruby-identifier">h</span> + <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file