doc/rdoc/core/classes/Dir.html in facets-2.4.4 vs doc/rdoc/core/classes/Dir.html in facets-2.4.5

- old
+ new

@@ -30,16 +30,16 @@ return false; if( elem.style.display == "block" ) { elem.style.display = "none" - link.innerHTML = "show source" + link.innerHTML = "+" } else { elem.style.display = "block" - link.innerHTML = "hide source" + link.innerHTML = "-" } } function openCode( url ) { @@ -82,19 +82,17 @@ <div class="sectiontitle">Methods</div> - <ul> - <li><a href="#M000031">ascend</a></li> - <li><a href="#M000032">descend</a></li> - <li><a href="#M000036">ls_r</a></li> - <li><a href="#M000033">multiglob</a></li> - <li><a href="#M000034">multiglob_r</a></li> - <li><a href="#M000037">parent?</a></li> - <li><a href="#M000035">recurse</a></li> - </ul> + <span style="padding-right: 5px;"><a href="#M000031">ascend</a></span> + <span style="padding-right: 5px;"><a href="#M000032">descend</a></span> + <span style="padding-right: 5px;"><a href="#M000036">ls_r</a></span> + <span style="padding-right: 5px;"><a href="#M000033">multiglob</a></span> + <span style="padding-right: 5px;"><a href="#M000034">multiglob_r</a></span> + <span style="padding-right: 5px;"><a href="#M000037">parent?</a></span> + <span style="padding-right: 5px;"><a href="#M000035">recurse</a></span> @@ -124,11 +122,11 @@ CREDIT: Daniel Berger CREDIT: Jeffrey Schwab </pre> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p> + <p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">+</a> ]</p> <div id="M000031_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/core/facets/dir/ascend.rb, line 20</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ascend</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">inclusive</span>=<span class="ruby-keyword kw">true</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>) <span class="ruby-identifier">dir</span> = <span class="ruby-identifier">dir</span>.<span class="ruby-identifier">dup</span> @@ -171,11 +169,11 @@ CREDIT: Daniel Berger CREDIT: Jeffrey Schwab </pre> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p> + <p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">+</a> ]</p> <div id="M000032_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/core/facets/dir/ascend.rb, line 49</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">descend</span>(<span class="ruby-identifier">path</span>) <span class="ruby-comment cmt">#:yield:</span> <span class="ruby-identifier">paths</span> = <span class="ruby-identifier">path</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>) @@ -197,11 +195,11 @@ <p> Same as <a href="Dir.html#M000035">Dir#recurse</a>. </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show source</a> ]</p> + <p class="source-link">[ <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">+</a> ]</p> <div id="M000036_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/core/facets/dir/recurse.rb, line 24</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ls_r</span>(<span class="ruby-identifier">path</span>=<span class="ruby-value str">'.'</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-identifier">recurse</span>(<span class="ruby-identifier">path</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) @@ -250,11 +248,11 @@ <pre> Dir.multiglob('**/*') </pre> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show source</a> ]</p> + <p class="source-link">[ <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">+</a> ]</p> <div id="M000033_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/core/facets/dir/multiglob.rb, line 41</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">multiglob</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">patterns</span>) <span class="ruby-identifier">options</span> = (<span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">last</span> <span class="ruby-value">? </span><span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">pop</span> <span class="ruby-operator">:</span> {}) @@ -309,11 +307,11 @@ <pre> Dir.multiglob( 'folder', 'folder/**/**' ) </pre> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show source</a> ]</p> + <p class="source-link">[ <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">+</a> ]</p> <div id="M000034_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/core/facets/dir/multiglob.rb, line 80</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">multiglob_r</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">patterns</span>) <span class="ruby-identifier">options</span> = (<span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">last</span> <span class="ruby-value">? </span><span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">pop</span> <span class="ruby-operator">:</span> {}) @@ -341,11 +339,11 @@ <p> TODO: Needs improvement. TODO: Instance version? </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show source</a> ]</p> + <p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">+</a> ]</p> <div id="M000037_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/core/facets/dir/parent.rb, line 8</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parent?</span>(<span class="ruby-identifier">parent_path</span>, <span class="ruby-identifier">child_path</span>) <span class="ruby-node">%r|^#{Regexp.escape(parent_path)}|</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">child_path</span> @@ -365,10 +363,10 @@ <pre> CREDIT: George Moschovitis </pre> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">show source</a> ]</p> + <p class="source-link">[ <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">+</a> ]</p> <div id="M000035_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File lib/core/facets/dir/recurse.rb, line 8</span> <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">recurse</span>(<span class="ruby-identifier">path</span>=<span class="ruby-value str">'.'</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-identifier">list</span> = [] \ No newline at end of file