update docs
This commit is contained in:
parent
f3ab9f70b5
commit
bda25083fc
@ -21,10 +21,10 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
|
|
||||||
<li><a href="../files/lib/fakefs/dir_rb.html">lib/fakefs/dir.rb</a></li>
|
|
||||||
|
|
||||||
<li><a href="../files/lib/fakefs/base_rb.html">lib/fakefs/base.rb</a></li>
|
<li><a href="../files/lib/fakefs/base_rb.html">lib/fakefs/base.rb</a></li>
|
||||||
|
|
||||||
|
<li><a href="../files/lib/fakefs/dir_rb.html">lib/fakefs/dir.rb</a></li>
|
||||||
|
|
||||||
<li><a href="../files/lib/fakefs/fake/dir_rb.html">lib/fakefs/fake/dir.rb</a></li>
|
<li><a href="../files/lib/fakefs/fake/dir_rb.html">lib/fakefs/fake/dir.rb</a></li>
|
||||||
|
|
||||||
<li><a href="../files/lib/fakefs/fake/file_rb.html">lib/fakefs/fake/file.rb</a></li>
|
<li><a href="../files/lib/fakefs/fake/file_rb.html">lib/fakefs/fake/file.rb</a></li>
|
||||||
@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
<li><a href="../files/lib/fakefs/fileutils_rb.html">lib/fakefs/fileutils.rb</a></li>
|
<li><a href="../files/lib/fakefs/fileutils_rb.html">lib/fakefs/fileutils.rb</a></li>
|
||||||
|
|
||||||
|
<li><a href="../files/lib/fakefs/spec_helpers_rb.html">lib/fakefs/spec_helpers.rb</a></li>
|
||||||
|
|
||||||
<li><a href="../files/lib/fakefs/version_rb.html">lib/fakefs/version.rb</a></li>
|
<li><a href="../files/lib/fakefs/version_rb.html">lib/fakefs/version.rb</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@ -59,7 +61,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000002">activate!</a></li>
|
<li><a href="#M000000">activate!</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -68,7 +70,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000003">deactivate!</a></li>
|
<li><a href="#M000001">deactivate!</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -88,6 +90,8 @@
|
|||||||
|
|
||||||
<li><span class="type">MODULE</span> <a href="FakeFS/FileUtils.html">FakeFS::FileUtils</a></li>
|
<li><span class="type">MODULE</span> <a href="FakeFS/FileUtils.html">FakeFS::FileUtils</a></li>
|
||||||
|
|
||||||
|
<li><span class="type">MODULE</span> <a href="FakeFS/SpecHelpers.html">FakeFS::SpecHelpers</a></li>
|
||||||
|
|
||||||
<li><span class="type">MODULE</span> <a href="FakeFS/Version.html">FakeFS::Version</a></li>
|
<li><span class="type">MODULE</span> <a href="FakeFS/Version.html">FakeFS::Version</a></li>
|
||||||
|
|
||||||
<li><span class="type">CLASS</span> <a href="FakeFS/Dir.html">FakeFS::Dir</a></li>
|
<li><span class="type">CLASS</span> <a href="FakeFS/Dir.html">FakeFS::Dir</a></li>
|
||||||
@ -111,9 +115,9 @@
|
|||||||
<div class="sectiontitle">Class Public methods</div>
|
<div class="sectiontitle">Class Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000002">
|
<div class="title" id="M000000">
|
||||||
|
|
||||||
<a name="M000002"></a><b>activate!</b>()
|
<a name="M000000"></a><b>activate!</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -122,12 +126,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
|
Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0da41d92a7ad99b3e2f3dd640f34520a3bd711ea/lib/fakefs/base.rb#L8" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/7444ef50b3ffbb8a534182b2a3af6a0b6073b32f/lib/fakefs/base.rb#L8" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000002_source" class="dyn-source">
|
<div id="M000000_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/base.rb, line 8</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/base.rb, line 8</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">activate!</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">activate!</span>
|
||||||
<span class="ruby-constant">Object</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
|
<span class="ruby-constant">Object</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
|
||||||
@ -145,9 +149,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000003">
|
<div class="title" id="M000001">
|
||||||
|
|
||||||
<a name="M000003"></a><b>deactivate!</b>()
|
<a name="M000001"></a><b>deactivate!</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -156,12 +160,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show</a>
|
Source: <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0da41d92a7ad99b3e2f3dd640f34520a3bd711ea/lib/fakefs/base.rb#L19" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/7444ef50b3ffbb8a534182b2a3af6a0b6073b32f/lib/fakefs/base.rb#L19" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000003_source" class="dyn-source">
|
<div id="M000001_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/base.rb, line 19</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/base.rb, line 19</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">deactivate!</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">deactivate!</span>
|
||||||
<span class="ruby-constant">Object</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
|
<span class="ruby-constant">Object</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
<li><a href="#M000014">chroot</a>,</li>
|
<li><a href="#M000014">chroot</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000001">close</a></li>
|
<li><a href="#M000004">close</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -80,9 +80,9 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000004">each</a>,</li>
|
<li><a href="#M000005">each</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000017">entries</a></li>
|
<li><a href="#M000016">entries</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -91,7 +91,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000020">foreach</a></li>
|
<li><a href="#M000017">foreach</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -100,7 +100,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000021">glob</a></li>
|
<li><a href="#M000018">glob</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -109,7 +109,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000023">mkdir</a></li>
|
<li><a href="#M000019">mkdir</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -118,7 +118,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000000">new</a></li>
|
<li><a href="#M000003">new</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -136,13 +136,13 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000005">path</a>,</li>
|
<li><a href="#M000006">path</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000006">pos</a>,</li>
|
<li><a href="#M000007">pos</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000007">pos=</a>,</li>
|
<li><a href="#M000008">pos=</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000027">pwd</a></li>
|
<li><a href="#M000026">pwd</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -151,7 +151,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000008">read</a>,</li>
|
<li><a href="#M000009">read</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000010">rewind</a></li>
|
<li><a href="#M000010">rewind</a></li>
|
||||||
|
|
||||||
@ -171,7 +171,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000026">tmpdir</a></li>
|
<li><a href="#M000025">tmpdir</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -218,7 +218,7 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show</a>
|
Source: <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L55" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L55" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000012_source" class="dyn-source">
|
<div id="M000012_source" class="dyn-source">
|
||||||
@ -245,7 +245,7 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show</a>
|
Source: <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L59" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L59" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000013_source" class="dyn-source">
|
<div id="M000013_source" class="dyn-source">
|
||||||
@ -272,7 +272,7 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show</a>
|
Source: <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L63" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L63" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000014_source" class="dyn-source">
|
<div id="M000014_source" class="dyn-source">
|
||||||
@ -299,7 +299,7 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show</a>
|
Source: <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L67" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L67" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000015_source" class="dyn-source">
|
<div id="M000015_source" class="dyn-source">
|
||||||
@ -313,10 +313,38 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000016">
|
||||||
|
|
||||||
|
<a name="M000016"></a><b>entries</b>(dirname)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L72" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000016_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 72</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">entries</span>(<span class="ruby-identifier">dirname</span>)
|
||||||
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">SystemCallError</span>, <span class="ruby-identifier">dirname</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">dirname</span>)
|
||||||
|
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">dirname</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file</span>) }
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000017">
|
<div class="title" id="M000017">
|
||||||
|
|
||||||
<a name="M000017"></a><b>entries</b>(dirname)
|
<a name="M000017"></a><b>foreach</b>(dirname, &block)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -327,38 +355,10 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show</a>
|
Source: <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L72" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L77" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000017_source" class="dyn-source">
|
<div id="M000017_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 72</span>
|
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">entries</span>(<span class="ruby-identifier">dirname</span>)
|
|
||||||
<span class="ruby-identifier">raise</span> <span class="ruby-constant">SystemCallError</span>, <span class="ruby-identifier">dirname</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">dirname</span>)
|
|
||||||
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">dirname</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-identifier">file</span> }
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="method">
|
|
||||||
<div class="title" id="M000020">
|
|
||||||
|
|
||||||
<a name="M000020"></a><b>foreach</b>(dirname, &block)
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="sourcecode">
|
|
||||||
<p class="source-link">
|
|
||||||
Source: <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show</a>
|
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L77" target="_blank" class="github_url">on GitHub</a>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div id="M000020_source" class="dyn-source">
|
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 77</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 77</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">foreach</span>(<span class="ruby-identifier">dirname</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">foreach</span>(<span class="ruby-identifier">dirname</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
||||||
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">dirname</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">file</span> }
|
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">dirname</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">file</span> }
|
||||||
@ -369,9 +369,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000021">
|
<div class="title" id="M000018">
|
||||||
|
|
||||||
<a name="M000021"></a><b>glob</b>(pattern)
|
<a name="M000018"></a><b>glob</b>(pattern)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -380,12 +380,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show</a>
|
Source: <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L81" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L81" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000021_source" class="dyn-source">
|
<div id="M000018_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 81</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 81</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">pattern</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">pattern</span>)
|
||||||
[<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">pattern</span>) <span class="ruby-operator">||</span> []].<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>}.<span class="ruby-identifier">sort</span>
|
[<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">pattern</span>) <span class="ruby-operator">||</span> []].<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>}.<span class="ruby-identifier">sort</span>
|
||||||
@ -396,9 +396,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000023">
|
<div class="title" id="M000019">
|
||||||
|
|
||||||
<a name="M000023"></a><b>mkdir</b>(string, integer = 0)
|
<a name="M000019"></a><b>mkdir</b>(string, integer = 0)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -407,12 +407,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show</a>
|
Source: <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L85" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L85" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000023_source" class="dyn-source">
|
<div id="M000019_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 85</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 85</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">integer</span> = <span class="ruby-value">0</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">integer</span> = <span class="ruby-value">0</span>)
|
||||||
<span class="ruby-identifier">parent</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>)
|
<span class="ruby-identifier">parent</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>)
|
||||||
@ -426,9 +426,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000000">
|
<div class="title" id="M000003">
|
||||||
|
|
||||||
<a name="M000000"></a><b>new</b>(string)
|
<a name="M000003"></a><b>new</b>(string)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -437,12 +437,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
|
Source: <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000000_source" class="dyn-source">
|
<div id="M000003_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 5</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 5</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">string</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">string</span>)
|
||||||
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span>, <span class="ruby-identifier">string</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">string</span>)
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span>, <span class="ruby-identifier">string</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">string</span>)
|
||||||
@ -470,7 +470,7 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show</a>
|
Source: <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L92" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L92" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000024_source" class="dyn-source">
|
<div id="M000024_source" class="dyn-source">
|
||||||
@ -487,37 +487,10 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
|
||||||
<div class="title" id="M000027">
|
|
||||||
|
|
||||||
<a name="M000027"></a><b>pwd</b>()
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="sourcecode">
|
|
||||||
<p class="source-link">
|
|
||||||
Source: <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show</a>
|
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L104" target="_blank" class="github_url">on GitHub</a>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div id="M000027_source" class="dyn-source">
|
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 104</span>
|
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">pwd</span>
|
|
||||||
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">current_dir</span>.<span class="ruby-identifier">to_s</span>
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000026">
|
<div class="title" id="M000026">
|
||||||
|
|
||||||
<a name="M000026"></a><b>tmpdir</b>()
|
<a name="M000026"></a><b>pwd</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -528,10 +501,37 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000026_source')" id="l_M000026_source">show</a>
|
Source: <a href="javascript:toggleSource('M000026_source')" id="l_M000026_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L100" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L104" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000026_source" class="dyn-source">
|
<div id="M000026_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 104</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">pwd</span>
|
||||||
|
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">current_dir</span>.<span class="ruby-identifier">to_s</span>
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000025">
|
||||||
|
|
||||||
|
<a name="M000025"></a><b>tmpdir</b>()
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L100" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000025_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 100</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 100</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tmpdir</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tmpdir</span>
|
||||||
<span class="ruby-value str">'/tmp'</span>
|
<span class="ruby-value str">'/tmp'</span>
|
||||||
@ -544,9 +544,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000001">
|
<div class="title" id="M000004">
|
||||||
|
|
||||||
<a name="M000001"></a><b>close</b>()
|
<a name="M000004"></a><b>close</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -555,12 +555,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show</a>
|
Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L13" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L13" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000001_source" class="dyn-source">
|
<div id="M000004_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 13</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 13</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
||||||
<span class="ruby-ivar">@open</span> = <span class="ruby-keyword kw">false</span>
|
<span class="ruby-ivar">@open</span> = <span class="ruby-keyword kw">false</span>
|
||||||
@ -574,9 +574,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000004">
|
<div class="title" id="M000005">
|
||||||
|
|
||||||
<a name="M000004"></a><b>each</b>(&block)
|
<a name="M000005"></a><b>each</b>(&block)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -585,12 +585,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
|
Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L20" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L20" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000004_source" class="dyn-source">
|
<div id="M000005_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 20</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 20</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
||||||
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">f</span> = <span class="ruby-identifier">read</span>
|
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">f</span> = <span class="ruby-identifier">read</span>
|
||||||
@ -602,37 +602,10 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
|
||||||
<div class="title" id="M000005">
|
|
||||||
|
|
||||||
<a name="M000005"></a><b>path</b>()
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="sourcecode">
|
|
||||||
<p class="source-link">
|
|
||||||
Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
|
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L26" target="_blank" class="github_url">on GitHub</a>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div id="M000005_source" class="dyn-source">
|
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 26</span>
|
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span>
|
|
||||||
<span class="ruby-ivar">@path</span>
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000006">
|
<div class="title" id="M000006">
|
||||||
|
|
||||||
<a name="M000006"></a><b>pos</b>()
|
<a name="M000006"></a><b>path</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -643,13 +616,13 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
|
Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L30" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L26" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000006_source" class="dyn-source">
|
<div id="M000006_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 30</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 26</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pos</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span>
|
||||||
<span class="ruby-ivar">@pointer</span>
|
<span class="ruby-ivar">@path</span>
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -659,7 +632,7 @@
|
|||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000007">
|
<div class="title" id="M000007">
|
||||||
|
|
||||||
<a name="M000007"></a><b>pos=</b>(integer)
|
<a name="M000007"></a><b>pos</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -670,13 +643,13 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show</a>
|
Source: <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L34" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L30" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000007_source" class="dyn-source">
|
<div id="M000007_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 34</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 30</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pos=</span>(<span class="ruby-identifier">integer</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pos</span>
|
||||||
<span class="ruby-ivar">@pointer</span> = <span class="ruby-identifier">integer</span>
|
<span class="ruby-ivar">@pointer</span>
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -686,7 +659,7 @@
|
|||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000008">
|
<div class="title" id="M000008">
|
||||||
|
|
||||||
<a name="M000008"></a><b>read</b>()
|
<a name="M000008"></a><b>pos=</b>(integer)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -697,10 +670,37 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000008_source')" id="l_M000008_source">show</a>
|
Source: <a href="javascript:toggleSource('M000008_source')" id="l_M000008_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L38" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L34" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000008_source" class="dyn-source">
|
<div id="M000008_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 34</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pos=</span>(<span class="ruby-identifier">integer</span>)
|
||||||
|
<span class="ruby-ivar">@pointer</span> = <span class="ruby-identifier">integer</span>
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000009">
|
||||||
|
|
||||||
|
<a name="M000009"></a><b>read</b>()
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000009_source')" id="l_M000009_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L38" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000009_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 38</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/dir.rb, line 38</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>
|
||||||
<span class="ruby-identifier">raise</span> <span class="ruby-constant">IOError</span>, <span class="ruby-value str">"closed directory"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@pointer</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">IOError</span>, <span class="ruby-value str">"closed directory"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@pointer</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
||||||
@ -727,7 +727,7 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show</a>
|
Source: <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L45" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L45" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000010_source" class="dyn-source">
|
<div id="M000010_source" class="dyn-source">
|
||||||
@ -754,7 +754,7 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show</a>
|
Source: <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0124b3ab89ed01ae21088cea0497b3ee60bbdfa8/lib/fakefs/dir.rb#L49" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/838274f965d5a9182f424c5bdbcbf58f2bc08be6/lib/fakefs/dir.rb#L49" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000011_source" class="dyn-source">
|
<div id="M000011_source" class="dyn-source">
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000022">clone</a></li>
|
<li><a href="#M000023">clone</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -67,7 +67,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000018">entry</a></li>
|
<li><a href="#M000021">entry</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -76,7 +76,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000019">inspect</a></li>
|
<li><a href="#M000022">inspect</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000016">new</a></li>
|
<li><a href="#M000020">new</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -94,7 +94,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000025">to_s</a></li>
|
<li><a href="#M000027">to_s</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -137,9 +137,9 @@
|
|||||||
<div class="sectiontitle">Class Public methods</div>
|
<div class="sectiontitle">Class Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000016">
|
<div class="title" id="M000020">
|
||||||
|
|
||||||
<a name="M000016"></a><b>new</b>(name = nil, parent = nil)
|
<a name="M000020"></a><b>new</b>(name = nil, parent = nil)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -148,12 +148,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show</a>
|
Source: <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000016_source" class="dyn-source">
|
<div id="M000020_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 5</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 5</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
|
||||||
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
||||||
@ -167,9 +167,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000022">
|
<div class="title" id="M000023">
|
||||||
|
|
||||||
<a name="M000022"></a><b>clone</b>(parent = nil)
|
<a name="M000023"></a><b>clone</b>(parent = nil)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -178,12 +178,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show</a>
|
Source: <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L18" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L18" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000022_source" class="dyn-source">
|
<div id="M000023_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 18</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 18</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>(<span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>(<span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
|
||||||
<span class="ruby-identifier">clone</span> = <span class="ruby-constant">Marshal</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">Marshal</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-keyword kw">self</span>))
|
<span class="ruby-identifier">clone</span> = <span class="ruby-constant">Marshal</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">Marshal</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-keyword kw">self</span>))
|
||||||
@ -230,9 +230,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000018">
|
<div class="title" id="M000021">
|
||||||
|
|
||||||
<a name="M000018"></a><b>entry</b>()
|
<a name="M000021"></a><b>entry</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -241,12 +241,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show</a>
|
Source: <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L10" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L10" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000018_source" class="dyn-source">
|
<div id="M000021_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 10</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 10</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entry</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entry</span>
|
||||||
<span class="ruby-keyword kw">self</span>
|
<span class="ruby-keyword kw">self</span>
|
||||||
@ -257,9 +257,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000019">
|
<div class="title" id="M000022">
|
||||||
|
|
||||||
<a name="M000019"></a><b>inspect</b>()
|
<a name="M000022"></a><b>inspect</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -268,12 +268,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show</a>
|
Source: <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L14" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L14" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000019_source" class="dyn-source">
|
<div id="M000022_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 14</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 14</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
||||||
<span class="ruby-node">"(FakeDir name:#{name.inspect} parent:#{parent.to_s.inspect} size:#{size})"</span>
|
<span class="ruby-node">"(FakeDir name:#{name.inspect} parent:#{parent.to_s.inspect} size:#{size})"</span>
|
||||||
@ -284,9 +284,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000025">
|
<div class="title" id="M000027">
|
||||||
|
|
||||||
<a name="M000025"></a><b>to_s</b>()
|
<a name="M000027"></a><b>to_s</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -295,12 +295,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show</a>
|
Source: <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L27" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/dir.rb#L27" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000025_source" class="dyn-source">
|
<div id="M000027_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 27</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/dir.rb, line 27</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
||||||
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'.'</span>
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'.'</span>
|
||||||
|
@ -49,11 +49,11 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000043">clone</a>,</li>
|
<li><a href="#M000044">clone</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000039">content</a>,</li>
|
<li><a href="#M000040">content</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000040">content=</a></li>
|
<li><a href="#M000041">content=</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -62,7 +62,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000047">delete</a></li>
|
<li><a href="#M000048">delete</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -71,7 +71,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000044">entry</a></li>
|
<li><a href="#M000045">entry</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -80,7 +80,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000045">inspect</a></li>
|
<li><a href="#M000046">inspect</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -89,9 +89,9 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000042">link</a>,</li>
|
<li><a href="#M000043">link</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000041">links</a></li>
|
<li><a href="#M000042">links</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -100,7 +100,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000033">new</a></li>
|
<li><a href="#M000037">new</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -109,7 +109,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000046">to_s</a></li>
|
<li><a href="#M000047">to_s</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -152,6 +152,22 @@
|
|||||||
<td class='attr-desc'></td>
|
<td class='attr-desc'></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr valign='top'>
|
||||||
|
<td class='attr-rw'>
|
||||||
|
[RW]
|
||||||
|
</td>
|
||||||
|
<td class='attr-name'>content</td>
|
||||||
|
<td class='attr-desc'></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr valign='top'>
|
||||||
|
<td class='attr-rw'>
|
||||||
|
[RW]
|
||||||
|
</td>
|
||||||
|
<td class='attr-name'>mtime</td>
|
||||||
|
<td class='attr-desc'></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<td class='attr-rw'>
|
<td class='attr-rw'>
|
||||||
[RW]
|
[RW]
|
||||||
@ -167,9 +183,9 @@
|
|||||||
<div class="sectiontitle">Class Public methods</div>
|
<div class="sectiontitle">Class Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000033">
|
<div class="title" id="M000037">
|
||||||
|
|
||||||
<a name="M000033"></a><b>new</b>(name = nil, parent = nil)
|
<a name="M000037"></a><b>new</b>(name = nil, parent = nil)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -178,17 +194,18 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show</a>
|
Source: <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L24" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L30" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000033_source" class="dyn-source">
|
<div id="M000037_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 24</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 30</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
|
||||||
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
||||||
<span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span>
|
<span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span>
|
||||||
<span class="ruby-ivar">@inode</span> = <span class="ruby-constant">Inode</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
|
<span class="ruby-ivar">@inode</span> = <span class="ruby-constant">Inode</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
|
||||||
|
<span class="ruby-ivar">@mtime</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -198,9 +215,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000043">
|
<div class="title" id="M000044">
|
||||||
|
|
||||||
<a name="M000043"></a><b>clone</b>(parent = nil)
|
<a name="M000044"></a><b>clone</b>(parent = nil)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -209,13 +226,13 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show</a>
|
Source: <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L48" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L55" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000043_source" class="dyn-source">
|
<div id="M000044_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 48</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 55</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>(<span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>(<span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
|
||||||
<span class="ruby-identifier">clone</span> = <span class="ruby-keyword kw">super</span>()
|
<span class="ruby-identifier">clone</span> = <span class="ruby-keyword kw">super</span>()
|
||||||
<span class="ruby-identifier">clone</span>.<span class="ruby-identifier">parent</span> = <span class="ruby-identifier">parent</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
|
<span class="ruby-identifier">clone</span>.<span class="ruby-identifier">parent</span> = <span class="ruby-identifier">parent</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
|
||||||
@ -227,37 +244,10 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
|
||||||
<div class="title" id="M000039">
|
|
||||||
|
|
||||||
<a name="M000039"></a><b>content</b>()
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="sourcecode">
|
|
||||||
<p class="source-link">
|
|
||||||
Source: <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show</a>
|
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L32" target="_blank" class="github_url">on GitHub</a>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div id="M000039_source" class="dyn-source">
|
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 32</span>
|
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content</span>
|
|
||||||
<span class="ruby-ivar">@inode</span>.<span class="ruby-identifier">content</span>
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000040">
|
<div class="title" id="M000040">
|
||||||
|
|
||||||
<a name="M000040"></a><b>content=</b>(str)
|
<a name="M000040"></a><b>content</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -268,122 +258,13 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">show</a>
|
Source: <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L36" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L39" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000040_source" class="dyn-source">
|
<div id="M000040_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 36</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 39</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content=</span>(<span class="ruby-identifier">str</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content</span>
|
||||||
<span class="ruby-ivar">@inode</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">str</span>
|
<span class="ruby-ivar">@inode</span>.<span class="ruby-identifier">content</span>
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="method">
|
|
||||||
<div class="title" id="M000047">
|
|
||||||
|
|
||||||
<a name="M000047"></a><b>delete</b>()
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="sourcecode">
|
|
||||||
<p class="source-link">
|
|
||||||
Source: <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show</a>
|
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L67" target="_blank" class="github_url">on GitHub</a>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div id="M000047_source" class="dyn-source">
|
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 67</span>
|
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>
|
|
||||||
<span class="ruby-identifier">inode</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-keyword kw">self</span>)
|
|
||||||
<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-keyword kw">self</span>)
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="method">
|
|
||||||
<div class="title" id="M000044">
|
|
||||||
|
|
||||||
<a name="M000044"></a><b>entry</b>()
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="sourcecode">
|
|
||||||
<p class="source-link">
|
|
||||||
Source: <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show</a>
|
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L55" target="_blank" class="github_url">on GitHub</a>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div id="M000044_source" class="dyn-source">
|
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 55</span>
|
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entry</span>
|
|
||||||
<span class="ruby-keyword kw">self</span>
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="method">
|
|
||||||
<div class="title" id="M000045">
|
|
||||||
|
|
||||||
<a name="M000045"></a><b>inspect</b>()
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="sourcecode">
|
|
||||||
<p class="source-link">
|
|
||||||
Source: <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show</a>
|
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L59" target="_blank" class="github_url">on GitHub</a>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div id="M000045_source" class="dyn-source">
|
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 59</span>
|
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
|
||||||
<span class="ruby-node">"(FakeFile name:#{name.inspect} parent:#{parent.to_s.inspect} size:#{content.size})"</span>
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="method">
|
|
||||||
<div class="title" id="M000042">
|
|
||||||
|
|
||||||
<a name="M000042"></a><b>link</b>(other_file)
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="sourcecode">
|
|
||||||
<p class="source-link">
|
|
||||||
Source: <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">show</a>
|
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L44" target="_blank" class="github_url">on GitHub</a>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<div id="M000042_source" class="dyn-source">
|
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 44</span>
|
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link</span>(<span class="ruby-identifier">other_file</span>)
|
|
||||||
<span class="ruby-ivar">@inode</span>.<span class="ruby-identifier">link</span>(<span class="ruby-identifier">other_file</span>)
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -393,7 +274,7 @@
|
|||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000041">
|
<div class="title" id="M000041">
|
||||||
|
|
||||||
<a name="M000041"></a><b>links</b>()
|
<a name="M000041"></a><b>content=</b>(str)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -404,13 +285,68 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show</a>
|
Source: <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L40" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L43" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000041_source" class="dyn-source">
|
<div id="M000041_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 40</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 43</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">links</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content=</span>(<span class="ruby-identifier">str</span>)
|
||||||
<span class="ruby-ivar">@inode</span>.<span class="ruby-identifier">links</span>
|
<span class="ruby-ivar">@inode</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">str</span>
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000048">
|
||||||
|
|
||||||
|
<a name="M000048"></a><b>delete</b>()
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L74" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000048_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 74</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>
|
||||||
|
<span class="ruby-identifier">inode</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-keyword kw">self</span>)
|
||||||
|
<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-keyword kw">self</span>)
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000045">
|
||||||
|
|
||||||
|
<a name="M000045"></a><b>entry</b>()
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L62" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000045_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 62</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entry</span>
|
||||||
|
<span class="ruby-keyword kw">self</span>
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -420,7 +356,7 @@
|
|||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000046">
|
<div class="title" id="M000046">
|
||||||
|
|
||||||
<a name="M000046"></a><b>to_s</b>()
|
<a name="M000046"></a><b>inspect</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -431,11 +367,92 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">show</a>
|
Source: <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L63" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L66" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000046_source" class="dyn-source">
|
<div id="M000046_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 63</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 66</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
||||||
|
<span class="ruby-node">"(FakeFile name:#{name.inspect} parent:#{parent.to_s.inspect} size:#{content.size})"</span>
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000043">
|
||||||
|
|
||||||
|
<a name="M000043"></a><b>link</b>(other_file)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L51" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000043_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 51</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link</span>(<span class="ruby-identifier">other_file</span>)
|
||||||
|
<span class="ruby-ivar">@inode</span>.<span class="ruby-identifier">link</span>(<span class="ruby-identifier">other_file</span>)
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000042">
|
||||||
|
|
||||||
|
<a name="M000042"></a><b>links</b>()
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L47" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000042_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 47</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">links</span>
|
||||||
|
<span class="ruby-ivar">@inode</span>.<span class="ruby-identifier">links</span>
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000047">
|
||||||
|
|
||||||
|
<a name="M000047"></a><b>to_s</b>()
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L70" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000047_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 70</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
||||||
<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">name</span>)
|
<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">name</span>)
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
@ -45,11 +45,20 @@
|
|||||||
<div class="sectiontitle">Methods</div>
|
<div class="sectiontitle">Methods</div>
|
||||||
<dl class="methods">
|
<dl class="methods">
|
||||||
|
|
||||||
|
<dt>C</dt>
|
||||||
|
<dd>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="#M000036">clone</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dt>L</dt>
|
<dt>L</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000030">link</a></li>
|
<li><a href="#M000034">link</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -67,7 +76,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000032">unlink</a></li>
|
<li><a href="#M000035">unlink</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -123,7 +132,7 @@
|
|||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show</a>
|
Source: <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L6" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L6" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000029_source" class="dyn-source">
|
<div id="M000029_source" class="dyn-source">
|
||||||
@ -140,9 +149,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000030">
|
<div class="title" id="M000036">
|
||||||
|
|
||||||
<a name="M000030"></a><b>link</b>(file)
|
<a name="M000036"></a><b>clone</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -151,12 +160,41 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show</a>
|
Source: <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L14" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L23" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000030_source" class="dyn-source">
|
<div id="M000036_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 23</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>
|
||||||
|
<span class="ruby-identifier">clone</span> = <span class="ruby-keyword kw">super</span>
|
||||||
|
<span class="ruby-identifier">clone</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">content</span>.<span class="ruby-identifier">dup</span>
|
||||||
|
<span class="ruby-identifier">clone</span>
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000034">
|
||||||
|
|
||||||
|
<a name="M000034"></a><b>link</b>(file)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L14" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000034_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 14</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 14</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link</span>(<span class="ruby-identifier">file</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link</span>(<span class="ruby-identifier">file</span>)
|
||||||
<span class="ruby-identifier">links</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">file</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">links</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">file</span>)
|
<span class="ruby-identifier">links</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">file</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">links</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">file</span>)
|
||||||
@ -168,9 +206,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000032">
|
<div class="title" id="M000035">
|
||||||
|
|
||||||
<a name="M000032"></a><b>unlink</b>(file)
|
<a name="M000035"></a><b>unlink</b>(file)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -179,12 +217,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show</a>
|
Source: <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/file.rb#L19" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1d410d49554e15391abbd443839c4c380ea8a3e8/lib/fakefs/fake/file.rb#L19" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000032_source" class="dyn-source">
|
<div id="M000035_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 19</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/file.rb, line 19</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">file</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">file</span>)
|
||||||
<span class="ruby-identifier">links</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">file</span>)
|
<span class="ruby-identifier">links</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">file</span>)
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000036">delete</a></li>
|
<li><a href="#M000033">delete</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -58,7 +58,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000035">entry</a></li>
|
<li><a href="#M000032">entry</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -67,7 +67,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000034">inspect</a></li>
|
<li><a href="#M000031">inspect</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -76,7 +76,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000031">new</a></li>
|
<li><a href="#M000030">new</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000037">respond_to?</a></li>
|
<li><a href="#M000038">respond_to?</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -128,9 +128,9 @@
|
|||||||
<div class="sectiontitle">Class Public methods</div>
|
<div class="sectiontitle">Class Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000031">
|
<div class="title" id="M000030">
|
||||||
|
|
||||||
<a name="M000031"></a><b>new</b>(target)
|
<a name="M000030"></a><b>new</b>(target)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -139,12 +139,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show</a>
|
Source: <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L6" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L6" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000031_source" class="dyn-source">
|
<div id="M000030_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 6</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 6</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">target</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">target</span>)
|
||||||
<span class="ruby-ivar">@target</span> = <span class="ruby-identifier">target</span>
|
<span class="ruby-ivar">@target</span> = <span class="ruby-identifier">target</span>
|
||||||
@ -157,9 +157,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000036">
|
<div class="title" id="M000033">
|
||||||
|
|
||||||
<a name="M000036"></a><b>delete</b>()
|
<a name="M000033"></a><b>delete</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -168,12 +168,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show</a>
|
Source: <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L18" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L18" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000036_source" class="dyn-source">
|
<div id="M000033_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 18</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 18</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>
|
||||||
<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-keyword kw">self</span>)
|
<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-keyword kw">self</span>)
|
||||||
@ -184,9 +184,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000035">
|
<div class="title" id="M000032">
|
||||||
|
|
||||||
<a name="M000035"></a><b>entry</b>()
|
<a name="M000032"></a><b>entry</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -195,12 +195,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">show</a>
|
Source: <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L14" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L14" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000035_source" class="dyn-source">
|
<div id="M000032_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 14</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 14</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entry</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entry</span>
|
||||||
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">target</span>)
|
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">target</span>)
|
||||||
@ -211,9 +211,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000034">
|
<div class="title" id="M000031">
|
||||||
|
|
||||||
<a name="M000034"></a><b>inspect</b>()
|
<a name="M000031"></a><b>inspect</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -222,12 +222,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show</a>
|
Source: <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L10" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L10" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000034_source" class="dyn-source">
|
<div id="M000031_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 10</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 10</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
||||||
<span class="ruby-node">"symlink(#{target.split('/').last})"</span>
|
<span class="ruby-node">"symlink(#{target.split('/').last})"</span>
|
||||||
@ -238,9 +238,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000037">
|
<div class="title" id="M000038">
|
||||||
|
|
||||||
<a name="M000037"></a><b>respond_to?</b>(method)
|
<a name="M000038"></a><b>respond_to?</b>(method)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -249,12 +249,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show</a>
|
Source: <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L22" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/fake/symlink.rb#L22" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000037_source" class="dyn-source">
|
<div id="M000038_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 22</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fake/symlink.rb, line 22</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method</span>)
|
||||||
<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method</span>)
|
<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method</span>)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -49,7 +49,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000082">directory?</a></li>
|
<li><a href="#M000086">directory?</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -58,9 +58,9 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000080">new</a>,</li>
|
<li><a href="#M000083">new</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000083">nlink</a></li>
|
<li><a href="#M000087">nlink</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -69,7 +69,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000081">symlink?</a></li>
|
<li><a href="#M000085">symlink?</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -91,9 +91,9 @@
|
|||||||
<div class="sectiontitle">Class Public methods</div>
|
<div class="sectiontitle">Class Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000080">
|
<div class="title" id="M000083">
|
||||||
|
|
||||||
<a name="M000080"></a><b>new</b>(file)
|
<a name="M000083"></a><b>new</b>(file)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -102,13 +102,13 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show</a>
|
Source: <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file.rb#L165" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/bfffa910e9a8d5caf1628d7707ef19b7c4e5e1f0/lib/fakefs/file.rb#L184" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000080_source" class="dyn-source">
|
<div id="M000083_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file.rb, line 165</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file.rb, line 184</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file</span>)
|
||||||
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">file</span>)
|
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">file</span>)
|
||||||
<span class="ruby-identifier">raise</span>(<span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span>, <span class="ruby-node">"No such file or directory - #{file}"</span>)
|
<span class="ruby-identifier">raise</span>(<span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span>, <span class="ruby-node">"No such file or directory - #{file}"</span>)
|
||||||
@ -124,9 +124,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000082">
|
<div class="title" id="M000086">
|
||||||
|
|
||||||
<a name="M000082"></a><b>directory?</b>()
|
<a name="M000086"></a><b>directory?</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -135,13 +135,13 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show</a>
|
Source: <a href="javascript:toggleSource('M000086_source')" id="l_M000086_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file.rb#L177" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/bfffa910e9a8d5caf1628d7707ef19b7c4e5e1f0/lib/fakefs/file.rb#L196" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000082_source" class="dyn-source">
|
<div id="M000086_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file.rb, line 177</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file.rb, line 196</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory?</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory?</span>
|
||||||
<span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-ivar">@file</span>)
|
<span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-ivar">@file</span>)
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
@ -151,9 +151,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000083">
|
<div class="title" id="M000087">
|
||||||
|
|
||||||
<a name="M000083"></a><b>nlink</b>()
|
<a name="M000087"></a><b>nlink</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -162,13 +162,13 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show</a>
|
Source: <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file.rb#L181" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/bfffa910e9a8d5caf1628d7707ef19b7c4e5e1f0/lib/fakefs/file.rb#L200" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000083_source" class="dyn-source">
|
<div id="M000087_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file.rb, line 181</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file.rb, line 200</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nlink</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nlink</span>
|
||||||
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-ivar">@file</span>).<span class="ruby-identifier">links</span>.<span class="ruby-identifier">size</span>
|
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-ivar">@file</span>).<span class="ruby-identifier">links</span>.<span class="ruby-identifier">size</span>
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
@ -178,9 +178,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000081">
|
<div class="title" id="M000085">
|
||||||
|
|
||||||
<a name="M000081"></a><b>symlink?</b>()
|
<a name="M000085"></a><b>symlink?</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -189,13 +189,13 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show</a>
|
Source: <a href="javascript:toggleSource('M000085_source')" id="l_M000085_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file.rb#L173" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/bfffa910e9a8d5caf1628d7707ef19b7c4e5e1f0/lib/fakefs/file.rb#L192" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000081_source" class="dyn-source">
|
<div id="M000085_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file.rb, line 173</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file.rb, line 192</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symlink?</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symlink?</span>
|
||||||
<span class="ruby-constant">File</span>.<span class="ruby-identifier">symlink?</span>(<span class="ruby-ivar">@file</span>)
|
<span class="ruby-constant">File</span>.<span class="ruby-identifier">symlink?</span>(<span class="ruby-ivar">@file</span>)
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000056">add</a></li>
|
<li><a href="#M000062">add</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -52,13 +52,13 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000069">chdir</a>,</li>
|
<li><a href="#M000073">chdir</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000050">clear</a>,</li>
|
<li><a href="#M000055">clear</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000061">clone</a>,</li>
|
<li><a href="#M000065">clone</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000076">current_dir</a></li>
|
<li><a href="#M000079">current_dir</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -67,9 +67,9 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000068">delete</a>,</li>
|
<li><a href="#M000070">delete</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000048">dir_levels</a></li>
|
<li><a href="#M000053">dir_levels</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -78,11 +78,11 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000054">files</a>,</li>
|
<li><a href="#M000056">files</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000055">find</a>,</li>
|
<li><a href="#M000057">find</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000049">fs</a></li>
|
<li><a href="#M000054">fs</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -91,7 +91,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000073">normalize_path</a></li>
|
<li><a href="#M000077">normalize_path</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -100,7 +100,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000071">path_parts</a></li>
|
<li><a href="#M000076">path_parts</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -122,9 +122,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000056">
|
<div class="title" id="M000062">
|
||||||
|
|
||||||
<a name="M000056"></a><b>add</b>(path, object=FakeDir.new)
|
<a name="M000062"></a><b>add</b>(path, object=FakeDir.new)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -133,12 +133,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show</a>
|
Source: <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L35" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L35" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000056_source" class="dyn-source">
|
<div id="M000062_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 35</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 35</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">object</span>=<span class="ruby-constant">FakeDir</span>.<span class="ruby-identifier">new</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">object</span>=<span class="ruby-constant">FakeDir</span>.<span class="ruby-identifier">new</span>)
|
||||||
<span class="ruby-identifier">parts</span> = <span class="ruby-identifier">path_parts</span>(<span class="ruby-identifier">normalize_path</span>(<span class="ruby-identifier">path</span>))
|
<span class="ruby-identifier">parts</span> = <span class="ruby-identifier">path_parts</span>(<span class="ruby-identifier">normalize_path</span>(<span class="ruby-identifier">path</span>))
|
||||||
@ -157,9 +157,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000069">
|
<div class="title" id="M000073">
|
||||||
|
|
||||||
<a name="M000069"></a><b>chdir</b>(dir, &blk)
|
<a name="M000073"></a><b>chdir</b>(dir, &blk)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -168,12 +168,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show</a>
|
Source: <a href="javascript:toggleSource('M000073_source')" id="l_M000073_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L74" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L74" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000069_source" class="dyn-source">
|
<div id="M000073_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 74</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 74</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
||||||
<span class="ruby-identifier">new_dir</span> = <span class="ruby-identifier">find</span>(<span class="ruby-identifier">dir</span>)
|
<span class="ruby-identifier">new_dir</span> = <span class="ruby-identifier">find</span>(<span class="ruby-identifier">dir</span>)
|
||||||
@ -192,9 +192,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000050">
|
<div class="title" id="M000055">
|
||||||
|
|
||||||
<a name="M000050"></a><b>clear</b>()
|
<a name="M000055"></a><b>clear</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -203,12 +203,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show</a>
|
Source: <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L13" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L13" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000050_source" class="dyn-source">
|
<div id="M000055_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 13</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 13</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
|
||||||
<span class="ruby-ivar">@dir_levels</span> = <span class="ruby-keyword kw">nil</span>
|
<span class="ruby-ivar">@dir_levels</span> = <span class="ruby-keyword kw">nil</span>
|
||||||
@ -220,9 +220,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000061">
|
<div class="title" id="M000065">
|
||||||
|
|
||||||
<a name="M000061"></a><b>clone</b>(path)
|
<a name="M000065"></a><b>clone</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -238,12 +238,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show</a>
|
Source: <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L49" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L49" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000061_source" class="dyn-source">
|
<div id="M000065_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 49</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 49</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>(<span class="ruby-identifier">path</span>)
|
||||||
<span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>)
|
||||||
@ -269,9 +269,9 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000076">
|
<div class="title" id="M000079">
|
||||||
|
|
||||||
<a name="M000076"></a><b>current_dir</b>()
|
<a name="M000079"></a><b>current_dir</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -280,12 +280,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show</a>
|
Source: <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L99" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L99" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000076_source" class="dyn-source">
|
<div id="M000079_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 99</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 99</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_dir</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_dir</span>
|
||||||
<span class="ruby-identifier">find</span>(<span class="ruby-identifier">normalize_path</span>(<span class="ruby-value str">'.'</span>))
|
<span class="ruby-identifier">find</span>(<span class="ruby-identifier">normalize_path</span>(<span class="ruby-value str">'.'</span>))
|
||||||
@ -296,9 +296,9 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000068">
|
<div class="title" id="M000070">
|
||||||
|
|
||||||
<a name="M000068"></a><b>delete</b>(path)
|
<a name="M000070"></a><b>delete</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -307,12 +307,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show</a>
|
Source: <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L68" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L68" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000068_source" class="dyn-source">
|
<div id="M000070_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 68</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 68</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">path</span>)
|
||||||
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node</span> = <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node</span> = <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">path</span>)
|
||||||
@ -325,9 +325,9 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000048">
|
<div class="title" id="M000053">
|
||||||
|
|
||||||
<a name="M000048"></a><b>dir_levels</b>()
|
<a name="M000053"></a><b>dir_levels</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -336,12 +336,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show</a>
|
Source: <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000048_source" class="dyn-source">
|
<div id="M000053_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 5</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 5</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir_levels</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir_levels</span>
|
||||||
<span class="ruby-ivar">@dir_levels</span> <span class="ruby-operator">||=</span> []
|
<span class="ruby-ivar">@dir_levels</span> <span class="ruby-operator">||=</span> []
|
||||||
@ -352,9 +352,9 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000054">
|
<div class="title" id="M000056">
|
||||||
|
|
||||||
<a name="M000054"></a><b>files</b>()
|
<a name="M000056"></a><b>files</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -363,12 +363,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show</a>
|
Source: <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L18" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L18" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000054_source" class="dyn-source">
|
<div id="M000056_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 18</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 18</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>
|
||||||
<span class="ruby-identifier">fs</span>.<span class="ruby-identifier">values</span>
|
<span class="ruby-identifier">fs</span>.<span class="ruby-identifier">values</span>
|
||||||
@ -379,9 +379,9 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000055">
|
<div class="title" id="M000057">
|
||||||
|
|
||||||
<a name="M000055"></a><b>find</b>(path)
|
<a name="M000057"></a><b>find</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -390,12 +390,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show</a>
|
Source: <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L22" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L22" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000055_source" class="dyn-source">
|
<div id="M000057_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 22</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 22</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">path</span>)
|
||||||
<span class="ruby-identifier">parts</span> = <span class="ruby-identifier">path_parts</span>(<span class="ruby-identifier">normalize_path</span>(<span class="ruby-identifier">path</span>))
|
<span class="ruby-identifier">parts</span> = <span class="ruby-identifier">path_parts</span>(<span class="ruby-identifier">normalize_path</span>(<span class="ruby-identifier">path</span>))
|
||||||
@ -415,9 +415,9 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000049">
|
<div class="title" id="M000054">
|
||||||
|
|
||||||
<a name="M000049"></a><b>fs</b>()
|
<a name="M000054"></a><b>fs</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -426,12 +426,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">show</a>
|
Source: <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L9" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L9" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000049_source" class="dyn-source">
|
<div id="M000054_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 9</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 9</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fs</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fs</span>
|
||||||
<span class="ruby-ivar">@fs</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">FakeDir</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'.'</span>)
|
<span class="ruby-ivar">@fs</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">FakeDir</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'.'</span>)
|
||||||
@ -442,9 +442,9 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000073">
|
<div class="title" id="M000077">
|
||||||
|
|
||||||
<a name="M000073"></a><b>normalize_path</b>(path)
|
<a name="M000077"></a><b>normalize_path</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -453,12 +453,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000073_source')" id="l_M000073_source">show</a>
|
Source: <a href="javascript:toggleSource('M000077_source')" id="l_M000077_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L90" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L90" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000073_source" class="dyn-source">
|
<div id="M000077_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 90</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 90</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">normalize_path</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">normalize_path</span>(<span class="ruby-identifier">path</span>)
|
||||||
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">absolute?</span>
|
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">absolute?</span>
|
||||||
@ -474,9 +474,9 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000071">
|
<div class="title" id="M000076">
|
||||||
|
|
||||||
<a name="M000071"></a><b>path_parts</b>(path)
|
<a name="M000076"></a><b>path_parts</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -485,12 +485,12 @@ copies directories and files from the real filesystem into our fake one
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000071_source')" id="l_M000071_source">show</a>
|
Source: <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/c00d4506623d16a928fb37ae66084d2c632970a1/lib/fakefs/file_system.rb#L86" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/1c6825fb9b4d5c8c73fee01a8fbd328cea2b78fa/lib/fakefs/file_system.rb#L86" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000071_source" class="dyn-source">
|
<div id="M000076_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 86</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/file_system.rb, line 86</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path_parts</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path_parts</span>(<span class="ruby-identifier">path</span>)
|
||||||
<span class="ruby-identifier">path</span>.<span class="ruby-identifier">split</span>(<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">PATH_SEPARATOR</span>).<span class="ruby-identifier">reject</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">part</span><span class="ruby-operator">|</span> <span class="ruby-identifier">part</span>.<span class="ruby-identifier">empty?</span> }
|
<span class="ruby-identifier">path</span>.<span class="ruby-identifier">split</span>(<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">PATH_SEPARATOR</span>).<span class="ruby-identifier">reject</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">part</span><span class="ruby-operator">|</span> <span class="ruby-identifier">part</span>.<span class="ruby-identifier">empty?</span> }
|
||||||
|
@ -43,17 +43,17 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000115">cd</a>,</li>
|
<li><a href="#M000122">cd</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000116">chdir</a>,</li>
|
<li><a href="#M000123">chdir</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000112">chown</a>,</li>
|
<li><a href="#M000117">chown</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000113">chown_R</a>,</li>
|
<li><a href="#M000118">chown_R</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000100">cp</a>,</li>
|
<li><a href="#M000114">cp</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000102">cp_r</a></li>
|
<li><a href="#M000115">cp_r</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -62,7 +62,9 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000099">ln_s</a></li>
|
<li><a href="#M000112">ln_s</a>,</li>
|
||||||
|
|
||||||
|
<li><a href="#M000113">ln_sf</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -71,11 +73,11 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000084">mkdir_p</a>,</li>
|
<li><a href="#M000105">mkdir_p</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000086">mkpath</a>,</li>
|
<li><a href="#M000106">mkpath</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000111">mv</a></li>
|
<li><a href="#M000116">mv</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -84,13 +86,15 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000092">rm</a>,</li>
|
<li><a href="#M000108">rm</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000098">rm_r</a>,</li>
|
<li><a href="#M000111">rm_f</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000093">rm_rf</a>,</li>
|
<li><a href="#M000110">rm_r</a>,</li>
|
||||||
|
|
||||||
<li><a href="#M000087">rmdir</a></li>
|
<li><a href="#M000109">rm_rf</a>,</li>
|
||||||
|
|
||||||
|
<li><a href="#M000107">rmdir</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -99,7 +103,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000114">touch</a></li>
|
<li><a href="#M000119">touch</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -121,9 +125,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000115">
|
<div class="title" id="M000122">
|
||||||
|
|
||||||
<a name="M000115"></a><b>cd</b>(dir)
|
<a name="M000122"></a><b>cd</b>(dir)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -131,7 +135,7 @@
|
|||||||
<div class="aka">
|
<div class="aka">
|
||||||
This method is also aliased as
|
This method is also aliased as
|
||||||
|
|
||||||
<a href="FileUtils.html#M000116">chdir</a>
|
<a href="FileUtils.html#M000123">chdir</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -139,13 +143,13 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show</a>
|
Source: <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L117" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L124" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000115_source" class="dyn-source">
|
<div id="M000122_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 117</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 124</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cd</span>(<span class="ruby-identifier">dir</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cd</span>(<span class="ruby-identifier">dir</span>)
|
||||||
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">dir</span>)
|
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">dir</span>)
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
@ -155,15 +159,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000116">
|
<div class="title" id="M000123">
|
||||||
|
|
||||||
<a name="M000116"></a><b>chdir</b>(dir)
|
<a name="M000123"></a><b>chdir</b>(dir)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<p>
|
<p>
|
||||||
Alias for <a href="FileUtils.html#M000115">cd</a>
|
Alias for <a href="FileUtils.html#M000122">cd</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -173,9 +177,9 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000112">
|
<div class="title" id="M000117">
|
||||||
|
|
||||||
<a name="M000112"></a><b>chown</b>(user, group, list, options={})
|
<a name="M000117"></a><b>chown</b>(user, group, list, options={})
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -184,13 +188,13 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show</a>
|
Source: <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L91" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L98" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000112_source" class="dyn-source">
|
<div id="M000117_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 91</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 98</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>={})
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>={})
|
||||||
<span class="ruby-identifier">list</span> = <span class="ruby-constant">Array</span>(<span class="ruby-identifier">list</span>)
|
<span class="ruby-identifier">list</span> = <span class="ruby-constant">Array</span>(<span class="ruby-identifier">list</span>)
|
||||||
<span class="ruby-identifier">list</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
<span class="ruby-identifier">list</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
||||||
@ -206,9 +210,9 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000113">
|
<div class="title" id="M000118">
|
||||||
|
|
||||||
<a name="M000113"></a><b>chown_R</b>(user, group, list, options={})
|
<a name="M000118"></a><b>chown_R</b>(user, group, list, options={})
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -217,13 +221,13 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">show</a>
|
Source: <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L101" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L108" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000113_source" class="dyn-source">
|
<div id="M000118_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 101</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 108</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown_R</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>={})
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown_R</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>={})
|
||||||
<span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>={})
|
<span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>={})
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
@ -233,9 +237,9 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000100">
|
<div class="title" id="M000114">
|
||||||
|
|
||||||
<a name="M000100"></a><b>cp</b>(src, dest)
|
<a name="M000114"></a><b>cp</b>(src, dest)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -244,13 +248,13 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show</a>
|
Source: <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L34" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L41" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000100_source" class="dyn-source">
|
<div id="M000114_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 34</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 41</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>)
|
||||||
<span class="ruby-identifier">dst_file</span> = <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">dest</span>)
|
<span class="ruby-identifier">dst_file</span> = <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">dest</span>)
|
||||||
<span class="ruby-identifier">src_file</span> = <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">src</span>)
|
<span class="ruby-identifier">src_file</span> = <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">src</span>)
|
||||||
@ -276,9 +280,9 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000102">
|
<div class="title" id="M000115">
|
||||||
|
|
||||||
<a name="M000102"></a><b>cp_r</b>(src, dest)
|
<a name="M000115"></a><b>cp_r</b>(src, dest)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -287,13 +291,13 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show</a>
|
Source: <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L54" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L61" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000102_source" class="dyn-source">
|
<div id="M000115_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 54</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 61</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp_r</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp_r</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>)
|
||||||
<span class="ruby-comment cmt"># This error sucks, but it conforms to the original Ruby</span>
|
<span class="ruby-comment cmt"># This error sucks, but it conforms to the original Ruby</span>
|
||||||
<span class="ruby-comment cmt"># method.</span>
|
<span class="ruby-comment cmt"># method.</span>
|
||||||
@ -327,9 +331,9 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000099">
|
<div class="title" id="M000112">
|
||||||
|
|
||||||
<a name="M000099"></a><b>ln_s</b>(target, path)
|
<a name="M000112"></a><b>ln_s</b>(target, path, options = {})
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -338,15 +342,16 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show</a>
|
Source: <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L29" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L30" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000099_source" class="dyn-source">
|
<div id="M000112_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 29</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 30</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln_s</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln_s</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">options</span> = {})
|
||||||
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">EEXIST</span>, <span class="ruby-identifier">path</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-identifier">options</span> = { <span class="ruby-identifier">:force</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span> }.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>)
|
||||||
|
(<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">path</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-operator">!</span><span class="ruby-identifier">options</span>[<span class="ruby-identifier">:force</span>]) <span class="ruby-operator">?</span> <span class="ruby-identifier">raise</span>(<span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">EEXIST</span>, <span class="ruby-identifier">path</span>) <span class="ruby-operator">:</span> <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">path</span>)
|
||||||
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>, <span class="ruby-constant">FakeSymlink</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">target</span>))
|
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>, <span class="ruby-constant">FakeSymlink</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">target</span>))
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
</div>
|
</div>
|
||||||
@ -355,9 +360,36 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000084">
|
<div class="title" id="M000113">
|
||||||
|
|
||||||
<a name="M000084"></a><b>mkdir_p</b>(path)
|
<a name="M000113"></a><b>ln_sf</b>(target, path)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L35" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000113_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 35</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln_sf</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">path</span>)
|
||||||
|
<span class="ruby-identifier">ln_s</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">path</span>, { <span class="ruby-identifier">:force</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> })
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000105">
|
||||||
|
|
||||||
|
<a name="M000105"></a><b>mkdir_p</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -365,7 +397,7 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
<div class="aka">
|
<div class="aka">
|
||||||
This method is also aliased as
|
This method is also aliased as
|
||||||
|
|
||||||
<a href="FileUtils.html#M000086">mkpath</a>
|
<a href="FileUtils.html#M000106">mkpath</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -373,12 +405,12 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000084_source')" id="l_M000084_source">show</a>
|
Source: <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000084_source" class="dyn-source">
|
<div id="M000105_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 5</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 5</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">path</span>)
|
||||||
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>, <span class="ruby-constant">FakeDir</span>.<span class="ruby-identifier">new</span>)
|
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>, <span class="ruby-constant">FakeDir</span>.<span class="ruby-identifier">new</span>)
|
||||||
@ -389,15 +421,15 @@ Alias for <a href="FileUtils.html#M000115">cd</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000086">
|
<div class="title" id="M000106">
|
||||||
|
|
||||||
<a name="M000086"></a><b>mkpath</b>(path)
|
<a name="M000106"></a><b>mkpath</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<p>
|
<p>
|
||||||
Alias for <a href="FileUtils.html#M000084">mkdir_p</a>
|
Alias for <a href="FileUtils.html#M000105">mkdir_p</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -407,9 +439,9 @@ Alias for <a href="FileUtils.html#M000084">mkdir_p</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000111">
|
<div class="title" id="M000116">
|
||||||
|
|
||||||
<a name="M000111"></a><b>mv</b>(src, dest)
|
<a name="M000116"></a><b>mv</b>(src, dest)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -418,13 +450,13 @@ Alias for <a href="FileUtils.html#M000084">mkdir_p</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show</a>
|
Source: <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L82" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L89" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000111_source" class="dyn-source">
|
<div id="M000116_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 82</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 89</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mv</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mv</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>)
|
||||||
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">target</span> = <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">src</span>)
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">target</span> = <span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">src</span>)
|
||||||
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">dest</span>, <span class="ruby-identifier">target</span>.<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">clone</span>)
|
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">dest</span>, <span class="ruby-identifier">target</span>.<span class="ruby-identifier">entry</span>.<span class="ruby-identifier">clone</span>)
|
||||||
@ -439,9 +471,9 @@ Alias for <a href="FileUtils.html#M000084">mkdir_p</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000092">
|
<div class="title" id="M000108">
|
||||||
|
|
||||||
<a name="M000092"></a><b>rm</b>(path)
|
<a name="M000108"></a><b>rm</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -449,9 +481,11 @@ Alias for <a href="FileUtils.html#M000084">mkdir_p</a>
|
|||||||
<div class="aka">
|
<div class="aka">
|
||||||
This method is also aliased as
|
This method is also aliased as
|
||||||
|
|
||||||
<a href="FileUtils.html#M000093">rm_rf</a>
|
<a href="FileUtils.html#M000109">rm_rf</a>
|
||||||
|
|
||||||
<a href="FileUtils.html#M000098">rm_r</a>
|
<a href="FileUtils.html#M000110">rm_r</a>
|
||||||
|
|
||||||
|
<a href="FileUtils.html#M000111">rm_f</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -459,12 +493,12 @@ Alias for <a href="FileUtils.html#M000084">mkdir_p</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show</a>
|
Source: <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L22" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L22" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000092_source" class="dyn-source">
|
<div id="M000108_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 22</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 22</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm</span>(<span class="ruby-identifier">path</span>)
|
||||||
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">path</span>)
|
<span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">path</span>)
|
||||||
@ -475,15 +509,15 @@ Alias for <a href="FileUtils.html#M000084">mkdir_p</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000098">
|
<div class="title" id="M000111">
|
||||||
|
|
||||||
<a name="M000098"></a><b>rm_r</b>(path)
|
<a name="M000111"></a><b>rm_f</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<p>
|
<p>
|
||||||
Alias for <a href="FileUtils.html#M000092">rm</a>
|
Alias for <a href="FileUtils.html#M000108">rm</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -493,15 +527,15 @@ Alias for <a href="FileUtils.html#M000092">rm</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000093">
|
<div class="title" id="M000110">
|
||||||
|
|
||||||
<a name="M000093"></a><b>rm_rf</b>(path)
|
<a name="M000110"></a><b>rm_r</b>(path)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<p>
|
<p>
|
||||||
Alias for <a href="FileUtils.html#M000092">rm</a>
|
Alias for <a href="FileUtils.html#M000108">rm</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -511,9 +545,27 @@ Alias for <a href="FileUtils.html#M000092">rm</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000087">
|
<div class="title" id="M000109">
|
||||||
|
|
||||||
<a name="M000087"></a><b>rmdir</b>(list, options = {})
|
<a name="M000109"></a><b>rm_rf</b>(path)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<p>
|
||||||
|
Alias for <a href="FileUtils.html#M000108">rm</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000107">
|
||||||
|
|
||||||
|
<a name="M000107"></a><b>rmdir</b>(list, options = {})
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -522,12 +574,12 @@ Alias for <a href="FileUtils.html#M000092">rm</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">show</a>
|
Source: <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L10" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L10" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000087_source" class="dyn-source">
|
<div id="M000107_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 10</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 10</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rmdir</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span> = {})
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rmdir</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span> = {})
|
||||||
<span class="ruby-identifier">list</span> = [ <span class="ruby-identifier">list</span> ] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">list</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
<span class="ruby-identifier">list</span> = [ <span class="ruby-identifier">list</span> ] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">list</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
||||||
@ -546,9 +598,9 @@ Alias for <a href="FileUtils.html#M000092">rm</a>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000114">
|
<div class="title" id="M000119">
|
||||||
|
|
||||||
<a name="M000114"></a><b>touch</b>(list, options={})
|
<a name="M000119"></a><b>touch</b>(list, options={})
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -557,13 +609,13 @@ Alias for <a href="FileUtils.html#M000092">rm</a>
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show</a>
|
Source: <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/25e47887b0091d1afc9b87d832d0a61e40c6a7c3/lib/fakefs/fileutils.rb#L105" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/e5d7b716ed2e8419cd3c58fabdd8f8c3f1810794/lib/fakefs/fileutils.rb#L112" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000114_source" class="dyn-source">
|
<div id="M000119_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 105</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/fileutils.rb, line 112</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">touch</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>={})
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">touch</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>={})
|
||||||
<span class="ruby-constant">Array</span>(<span class="ruby-identifier">list</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
<span class="ruby-constant">Array</span>(<span class="ruby-identifier">list</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
||||||
<span class="ruby-identifier">directory</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">f</span>)
|
<span class="ruby-identifier">directory</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">f</span>)
|
||||||
|
178
classes/FakeFS/SpecHelpers.html
Normal file
178
classes/FakeFS/SpecHelpers.html
Normal file
@ -0,0 +1,178 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<title>FakeFS::SpecHelpers</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
|
||||||
|
<link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
|
||||||
|
<script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="banner">
|
||||||
|
<h1>
|
||||||
|
<span class="type">Module</span>
|
||||||
|
FakeFS::SpecHelpers
|
||||||
|
|
||||||
|
</h1>
|
||||||
|
<ul class="files">
|
||||||
|
|
||||||
|
<li><a href="../../files/lib/fakefs/spec_helpers_rb.html">lib/fakefs/spec_helpers.rb</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div id="bodyContent">
|
||||||
|
<div id="content">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sectiontitle">Methods</div>
|
||||||
|
<dl class="methods">
|
||||||
|
|
||||||
|
<dt>E</dt>
|
||||||
|
<dd>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="#M000120">extended</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>I</dt>
|
||||||
|
<dd>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="#M000121">included</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt>U</dt>
|
||||||
|
<dd>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><a href="#M000124">use_fakefs</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sectiontitle">Class Public methods</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000120">
|
||||||
|
|
||||||
|
<a name="M000120"></a><b>extended</b>(example_group)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/85d4fa117317385f8e2aa5c441b23ff5f84239c3/lib/fakefs/spec_helpers.rb#L27" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000120_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/spec_helpers.rb, line 27</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">extended</span>(<span class="ruby-identifier">example_group</span>)
|
||||||
|
<span class="ruby-identifier">example_group</span>.<span class="ruby-identifier">use_fakefs</span>(<span class="ruby-identifier">example_group</span>)
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000121">
|
||||||
|
|
||||||
|
<a name="M000121"></a><b>included</b>(example_group)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/85d4fa117317385f8e2aa5c441b23ff5f84239c3/lib/fakefs/spec_helpers.rb#L31" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000121_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/spec_helpers.rb, line 31</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">example_group</span>)
|
||||||
|
<span class="ruby-identifier">example_group</span>.<span class="ruby-identifier">extend</span> <span class="ruby-keyword kw">self</span>
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
|
<div class="method">
|
||||||
|
<div class="title" id="M000124">
|
||||||
|
|
||||||
|
<a name="M000124"></a><b>use_fakefs</b>(describe_block)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sourcecode">
|
||||||
|
<p class="source-link">
|
||||||
|
Source: <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">show</a>
|
||||||
|
|
||||||
|
| <a href="http://github.com/defunkt/fakefs/blob/85d4fa117317385f8e2aa5c441b23ff5f84239c3/lib/fakefs/spec_helpers.rb#L35" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<div id="M000124_source" class="dyn-source">
|
||||||
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/spec_helpers.rb, line 35</span>
|
||||||
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_fakefs</span>(<span class="ruby-identifier">describe_block</span>)
|
||||||
|
<span class="ruby-identifier">describe_block</span>.<span class="ruby-identifier">before</span> <span class="ruby-identifier">:each</span> <span class="ruby-keyword kw">do</span>
|
||||||
|
<span class="ruby-constant">FakeFS</span>.<span class="ruby-identifier">activate!</span>
|
||||||
|
<span class="ruby-keyword kw">end</span>
|
||||||
|
|
||||||
|
<span class="ruby-identifier">describe_block</span>.<span class="ruby-identifier">after</span> <span class="ruby-identifier">:each</span> <span class="ruby-keyword kw">do</span>
|
||||||
|
<span class="ruby-constant">FakeFS</span>.<span class="ruby-identifier">deactivate!</span>
|
||||||
|
<span class="ruby-constant">FakeFS</span><span class="ruby-operator">::</span><span class="ruby-constant">FileSystem</span>.<span class="ruby-identifier">clear</span>
|
||||||
|
<span class="ruby-keyword kw">end</span>
|
||||||
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -43,7 +43,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000117">to_s</a></li>
|
<li><a href="#M000125">to_s</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -64,7 +64,7 @@
|
|||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<td class="attr-name">VERSION</td>
|
<td class="attr-name">VERSION</td>
|
||||||
<td>=</td>
|
<td>=</td>
|
||||||
<td class="attr-value">"0.1.1"</td>
|
<td class="attr-value">"0.2.1"</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@ -77,9 +77,9 @@
|
|||||||
<div class="sectiontitle">Class Public methods</div>
|
<div class="sectiontitle">Class Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000117">
|
<div class="title" id="M000125">
|
||||||
|
|
||||||
<a name="M000117"></a><b>to_s</b>()
|
<a name="M000125"></a><b>to_s</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -88,12 +88,12 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show</a>
|
Source: <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/1eb0b972079a524c91d9379bdd38da7727551376/lib/fakefs/version.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/7ede661879a701eeab012ef2755493622565e8c1/lib/fakefs/version.rb#L5" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000117_source" class="dyn-source">
|
<div id="M000125_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/version.rb, line 5</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/version.rb, line 5</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span>
|
||||||
<span class="ruby-constant">VERSION</span>
|
<span class="ruby-constant">VERSION</span>
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="#M000009">FakeFS</a></li>
|
<li><a href="#M000002">FakeFS</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
@ -69,9 +69,9 @@
|
|||||||
<div class="sectiontitle">Instance Public methods</div>
|
<div class="sectiontitle">Instance Public methods</div>
|
||||||
|
|
||||||
<div class="method">
|
<div class="method">
|
||||||
<div class="title" id="M000009">
|
<div class="title" id="M000002">
|
||||||
|
|
||||||
<a name="M000009"></a><b>FakeFS</b>()
|
<a name="M000002"></a><b>FakeFS</b>()
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -80,19 +80,19 @@
|
|||||||
|
|
||||||
<div class="sourcecode">
|
<div class="sourcecode">
|
||||||
<p class="source-link">
|
<p class="source-link">
|
||||||
Source: <a href="javascript:toggleSource('M000009_source')" id="l_M000009_source">show</a>
|
Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
|
||||||
|
|
||||||
| <a href="http://github.com/defunkt/fakefs/blob/0da41d92a7ad99b3e2f3dd640f34520a3bd711ea/lib/fakefs/base.rb#L31" target="_blank" class="github_url">on GitHub</a>
|
| <a href="http://github.com/defunkt/fakefs/blob/7444ef50b3ffbb8a534182b2a3af6a0b6073b32f/lib/fakefs/base.rb#L31" target="_blank" class="github_url">on GitHub</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div id="M000009_source" class="dyn-source">
|
<div id="M000002_source" class="dyn-source">
|
||||||
<pre><span class="ruby-comment cmt"># File lib/fakefs/base.rb, line 31</span>
|
<pre><span class="ruby-comment cmt"># File lib/fakefs/base.rb, line 31</span>
|
||||||
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">FakeFS</span>
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">FakeFS</span>
|
||||||
<span class="ruby-keyword kw">return</span> <span class="ruby-operator">::</span><span class="ruby-constant">FakeFS</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span>
|
<span class="ruby-keyword kw">return</span> <span class="ruby-operator">::</span><span class="ruby-constant">FakeFS</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span>
|
||||||
<span class="ruby-operator">::</span><span class="ruby-constant">FakeFS</span>.<span class="ruby-identifier">activate!</span>
|
<span class="ruby-operator">::</span><span class="ruby-constant">FakeFS</span>.<span class="ruby-identifier">activate!</span>
|
||||||
<span class="ruby-identifier">result</span> = <span class="ruby-keyword kw">yield</span>
|
<span class="ruby-keyword kw">yield</span>
|
||||||
|
<span class="ruby-keyword kw">ensure</span>
|
||||||
<span class="ruby-operator">::</span><span class="ruby-constant">FakeFS</span>.<span class="ruby-identifier">deactivate!</span>
|
<span class="ruby-operator">::</span><span class="ruby-constant">FakeFS</span>.<span class="ruby-identifier">deactivate!</span>
|
||||||
<span class="ruby-identifier">result</span>
|
|
||||||
<span class="ruby-keyword kw">end</span></pre>
|
<span class="ruby-keyword kw">end</span></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1 +1 @@
|
|||||||
Tue, 06 Oct 2009 21:44:00 -0700
|
Fri, 30 Oct 2009 10:03:17 -0700
|
||||||
|
94
files/CONTRIBUTORS.html
Normal file
94
files/CONTRIBUTORS.html
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<title>CONTRIBUTORS</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
|
||||||
|
<link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
|
||||||
|
<script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="banner">
|
||||||
|
<h1>
|
||||||
|
CONTRIBUTORS
|
||||||
|
</h1>
|
||||||
|
<ul class="files">
|
||||||
|
<li>CONTRIBUTORS</li>
|
||||||
|
<li>Last modified: Wed Oct 07 01:37:58 -0700 2009</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="bodyContent">
|
||||||
|
<div id="content">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<ul>
|
||||||
|
<li>Chris Wanstrath
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Jeff Hodges
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Scott Taylor
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Pat Nakajima
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Myles Eftos
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Matt Freels
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Nick Quaranto
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Tymon Tobolski
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>msassak
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Rob Sanheim
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>Jon Yurek
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>David Reese
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>LICENSE</li>
|
<li>LICENSE</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Tue Oct 06 21:44:09 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>README.markdown</li>
|
<li>README.markdown</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Wed Oct 28 11:02:19 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,12 +75,24 @@ FakeFS do
|
|||||||
end
|
end
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
|
<h2>RSpec</h2>
|
||||||
|
|
||||||
|
<p>The above approach works with RSpec as well. In addition to this you may use the
|
||||||
|
'use_fakefs' macro to turn FakeFS on and off in a given example group. See
|
||||||
|
lib/spec_helpers for more details on it's usage.</p>
|
||||||
|
|
||||||
<h2>How is this different than MockFS?</h2>
|
<h2>How is this different than MockFS?</h2>
|
||||||
|
|
||||||
<p>FakeFS provides a test suite and works with symlinks. It's also strictly a
|
<p>FakeFS provides a test suite and works with symlinks. It's also strictly a
|
||||||
test-time dependency: your actual library does not need to use or know about
|
test-time dependency: your actual library does not need to use or know about
|
||||||
FakeFS.</p>
|
FakeFS.</p>
|
||||||
|
|
||||||
|
<h2>Caveats</h2>
|
||||||
|
|
||||||
|
<p>FakeFS internally uses the <code>Pathname</code> and <code>FileUtils</code> constants. If you use
|
||||||
|
these in your app, be certain you're properly requiring them and not counting
|
||||||
|
on FakeFS' own require.</p>
|
||||||
|
|
||||||
<h2>Speed?</h2>
|
<h2>Speed?</h2>
|
||||||
|
|
||||||
<p><a href="http://gist.github.com/156091">http://gist.github.com/156091</a></p>
|
<p><a href="http://gist.github.com/156091">http://gist.github.com/156091</a></p>
|
||||||
@ -97,27 +109,11 @@ FakeFS.</p>
|
|||||||
<pre><code>$ rip install git://github.com/defunkt/fakefs.git
|
<pre><code>$ rip install git://github.com/defunkt/fakefs.git
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<h2>Contributors</h2>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>Chris Wanstrath</li>
|
|
||||||
<li>David Reese</li>
|
|
||||||
<li>Jeff Hodges</li>
|
|
||||||
<li>Jon Yurek</li>
|
|
||||||
<li>Matt Freels</li>
|
|
||||||
<li>Myles Eftos</li>
|
|
||||||
<li>Pat Nakajima</li>
|
|
||||||
<li>Rob Sanheim</li>
|
|
||||||
<li>Scott Taylor</li>
|
|
||||||
<li>Tymon Tobolski</li>
|
|
||||||
<li>msassak</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
<h2>Meta</h2>
|
<h2>Meta</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Code: <code>git clone git://github.com/defunkt/fakefs.git</code></li>
|
<li>Code: <code>git clone git://github.com/defunkt/fakefs.git</code></li>
|
||||||
|
<li>Home: <a href="http://github.com/defunkt/fakefs">http://github.com/defunkt/fakefs</a></li>
|
||||||
<li>Docs: <a href="http://defunkt.github.com/fakefs">http://defunkt.github.com/fakefs</a></li>
|
<li>Docs: <a href="http://defunkt.github.com/fakefs">http://defunkt.github.com/fakefs</a></li>
|
||||||
<li>Bugs: <a href="http://github.com/defunkt/fakefs/issues">http://github.com/defunkt/fakefs/issues</a></li>
|
<li>Bugs: <a href="http://github.com/defunkt/fakefs/issues">http://github.com/defunkt/fakefs/issues</a></li>
|
||||||
<li>List: <a href="http://groups.google.com/group/fakefs">http://groups.google.com/group/fakefs</a></li>
|
<li>List: <a href="http://groups.google.com/group/fakefs">http://groups.google.com/group/fakefs</a></li>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/base.rb</li>
|
<li>lib/fakefs/base.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Wed Oct 28 09:41:53 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/dir.rb</li>
|
<li>lib/fakefs/dir.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Wed Oct 28 09:41:53 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/fake/dir.rb</li>
|
<li>lib/fakefs/fake/dir.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Tue Oct 06 21:44:09 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/fake/file.rb</li>
|
<li>lib/fakefs/fake/file.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Thu Oct 29 09:14:12 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/fake/symlink.rb</li>
|
<li>lib/fakefs/fake/symlink.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Tue Oct 06 21:44:09 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/file.rb</li>
|
<li>lib/fakefs/file.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Fri Oct 30 09:53:39 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/file_system.rb</li>
|
<li>lib/fakefs/file_system.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Thu Oct 29 09:39:32 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/fileutils.rb</li>
|
<li>lib/fakefs/fileutils.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Wed Oct 28 09:41:53 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/safe.rb</li>
|
<li>lib/fakefs/safe.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Tue Oct 06 21:44:09 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
104
files/lib/fakefs/spec_helpers_rb.html
Normal file
104
files/lib/fakefs/spec_helpers_rb.html
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<title>spec_helpers.rb</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
|
||||||
|
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
|
||||||
|
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="banner">
|
||||||
|
<h1>
|
||||||
|
spec_helpers.rb
|
||||||
|
</h1>
|
||||||
|
<ul class="files">
|
||||||
|
<li>lib/fakefs/spec_helpers.rb</li>
|
||||||
|
<li>Last modified: Fri Oct 30 09:54:42 -0700 2009</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="bodyContent">
|
||||||
|
<div id="content">
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<p>
|
||||||
|
<a href="../../../classes/FakeFS/SpecHelpers.html">FakeFS::SpecHelpers</a>
|
||||||
|
provides a simple macro for RSpec example groups to turn <a
|
||||||
|
href="../../../classes/FakeFS.html">FakeFS</a> on and off. To use it simply
|
||||||
|
require ‘fakefs/spec_helpers’, then include <a
|
||||||
|
href="../../../classes/FakeFS/SpecHelpers.html">FakeFS::SpecHelpers</a>
|
||||||
|
into any example groups that you wish to use <a
|
||||||
|
href="../../../classes/FakeFS.html">FakeFS</a> in. For example:
|
||||||
|
</p>
|
||||||
|
<pre>
|
||||||
|
require 'fakefs/spec_helpers'
|
||||||
|
|
||||||
|
describe "Some specs that deal with files" do
|
||||||
|
include FakeFS::SpecHelpers
|
||||||
|
...
|
||||||
|
end
|
||||||
|
</pre>
|
||||||
|
<p>
|
||||||
|
Alternatively, you can include <a
|
||||||
|
href="../../../classes/FakeFS/SpecHelpers.html">FakeFS::SpecHelpers</a> in
|
||||||
|
all your example groups using RSpec’s configuration block in your
|
||||||
|
spec helper:
|
||||||
|
</p>
|
||||||
|
<pre>
|
||||||
|
require 'fakefs/spec_helpers'
|
||||||
|
|
||||||
|
Spec::Runner.configure do |config|
|
||||||
|
config.include FakeFS::SpecHelpers
|
||||||
|
end
|
||||||
|
</pre>
|
||||||
|
<p>
|
||||||
|
If you do the above then use_fakefs will be available in all of your
|
||||||
|
example groups.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sectiontitle">Required Files</div>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>fakefs/safe</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sectiontitle">Classes and Modules</div>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li><span class="type">MODULE</span> <a href="../../../classes/FakeFS.html">FakeFS</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs/version.rb</li>
|
<li>lib/fakefs/version.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Fri Oct 30 09:56:05 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
<li>lib/fakefs.rb</li>
|
<li>lib/fakefs.rb</li>
|
||||||
<li>Last modified: Tue Oct 06 21:17:21 -0700 2009</li>
|
<li>Last modified: Tue Oct 06 21:44:09 -0700 2009</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
var tree = [["","","files",[["LICENSE","files/LICENSE.html","",[]],["README.markdown","files/README_markdown.html","",[]],["","","lib",[["","","fakefs",[["base.rb","files/lib/fakefs/base_rb.html","",[]],["dir.rb","files/lib/fakefs/dir_rb.html","",[]],["","","fake",[["dir.rb","files/lib/fakefs/fake/dir_rb.html","",[]],["file.rb","files/lib/fakefs/fake/file_rb.html","",[]],["symlink.rb","files/lib/fakefs/fake/symlink_rb.html","",[]]]],["file.rb","files/lib/fakefs/file_rb.html","",[]],["file_system.rb","files/lib/fakefs/file_system_rb.html","",[]],["fileutils.rb","files/lib/fakefs/fileutils_rb.html","",[]],["safe.rb","files/lib/fakefs/safe_rb.html","",[]],["version.rb","files/lib/fakefs/version_rb.html","",[]]]],["fakefs.rb","files/lib/fakefs_rb.html","",[]]]]]],["FakeFS","classes/FakeFS.html","",[["Dir","classes/FakeFS/Dir.html"," < Object",[]],["FakeDir","classes/FakeFS/FakeDir.html"," < Hash",[]],["FakeFile","classes/FakeFS/FakeFile.html"," < Object",[["Inode","classes/FakeFS/FakeFile/Inode.html"," < Object",[]]]],["FakeSymlink","classes/FakeFS/FakeSymlink.html"," < Object",[]],["File","classes/FakeFS/File.html"," < Object",[["Stat","classes/FakeFS/File/Stat.html"," < Object",[]]]],["FileSystem","classes/FakeFS/FileSystem.html","",[]],["FileUtils","classes/FakeFS/FileUtils.html","",[]],["Version","classes/FakeFS/Version.html","",[]]]],["Object","classes/Object.html"," < Object",[]]]
|
var tree = [["","","files",[["CONTRIBUTORS","files/CONTRIBUTORS.html","",[]],["LICENSE","files/LICENSE.html","",[]],["README.markdown","files/README_markdown.html","",[]],["","","lib",[["","","fakefs",[["base.rb","files/lib/fakefs/base_rb.html","",[]],["dir.rb","files/lib/fakefs/dir_rb.html","",[]],["","","fake",[["dir.rb","files/lib/fakefs/fake/dir_rb.html","",[]],["file.rb","files/lib/fakefs/fake/file_rb.html","",[]],["symlink.rb","files/lib/fakefs/fake/symlink_rb.html","",[]]]],["file.rb","files/lib/fakefs/file_rb.html","",[]],["file_system.rb","files/lib/fakefs/file_system_rb.html","",[]],["fileutils.rb","files/lib/fakefs/fileutils_rb.html","",[]],["safe.rb","files/lib/fakefs/safe_rb.html","",[]],["spec_helpers.rb","files/lib/fakefs/spec_helpers_rb.html","",[]],["version.rb","files/lib/fakefs/version_rb.html","",[]]]],["fakefs.rb","files/lib/fakefs_rb.html","",[]]]]]],["FakeFS","classes/FakeFS.html","",[["Dir","classes/FakeFS/Dir.html"," < Object",[]],["FakeDir","classes/FakeFS/FakeDir.html"," < Hash",[]],["FakeFile","classes/FakeFS/FakeFile.html"," < Object",[["Inode","classes/FakeFS/FakeFile/Inode.html"," < Object",[]]]],["FakeSymlink","classes/FakeFS/FakeSymlink.html"," < Object",[]],["File","classes/FakeFS/File.html"," < Object",[["Stat","classes/FakeFS/File/Stat.html"," < Object",[]]]],["FileSystem","classes/FakeFS/FileSystem.html","",[]],["FileUtils","classes/FakeFS/FileUtils.html","",[]],["SpecHelpers","classes/FakeFS/SpecHelpers.html","",[]],["Version","classes/FakeFS/Version.html","",[]]]],["Object","classes/Object.html"," < Object",[]]]
|
Loading…
Reference in New Issue
Block a user