270 lines
9.4 KiB
HTML
270 lines
9.4 KiB
HTML
<?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::FakeSymlink</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">Class</span>
|
|
FakeFS::FakeSymlink
|
|
|
|
<span class="parent"><
|
|
|
|
<a href="../Object.html">Object</a>
|
|
|
|
</span>
|
|
|
|
</h1>
|
|
<ul class="files">
|
|
|
|
<li><a href="../../files/lib/fakefs/fake/symlink_rb.html">lib/fakefs/fake/symlink.rb</a></li>
|
|
|
|
</ul>
|
|
</div>
|
|
<div id="bodyContent">
|
|
<div id="content">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sectiontitle">Methods</div>
|
|
<dl class="methods">
|
|
|
|
<dt>D</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="#M000046">delete</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt>E</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="#M000045">entry</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt>I</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="#M000044">inspect</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt>N</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="#M000043">new</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt>R</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="#M000047">respond_to?</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sectiontitle">Attributes</div>
|
|
<table border='0' cellpadding='5'>
|
|
|
|
<tr valign='top'>
|
|
<td class='attr-rw'>
|
|
[RW]
|
|
</td>
|
|
<td class='attr-name'>name</td>
|
|
<td class='attr-desc'></td>
|
|
</tr>
|
|
|
|
<tr valign='top'>
|
|
<td class='attr-rw'>
|
|
[RW]
|
|
</td>
|
|
<td class='attr-name'>target</td>
|
|
<td class='attr-desc'></td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="sectiontitle">Class Public methods</div>
|
|
|
|
<div class="method">
|
|
<div class="title" id="M000043">
|
|
|
|
<a name="M000043"></a><b>new</b>(target)
|
|
|
|
</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/2877f7d4c19cb4f18a3d43dc79bc8189976e3634/lib/fakefs/fake/symlink.rb#L6" 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/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-ivar">@target</span> = <span class="ruby-identifier">target</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="M000046">
|
|
|
|
<a name="M000046"></a><b>delete</b>()
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="sourcecode">
|
|
<p class="source-link">
|
|
Source: <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">show</a>
|
|
|
|
| <a href="http://github.com/defunkt/fakefs/blob/2877f7d4c19cb4f18a3d43dc79bc8189976e3634/lib/fakefs/fake/symlink.rb#L18" target="_blank" class="github_url">on GitHub</a>
|
|
|
|
</p>
|
|
<div id="M000046_source" class="dyn-source">
|
|
<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-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/2877f7d4c19cb4f18a3d43dc79bc8189976e3634/lib/fakefs/fake/symlink.rb#L14" 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/symlink.rb, line 14</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-keyword kw">end</span></pre>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="method">
|
|
<div class="title" id="M000044">
|
|
|
|
<a name="M000044"></a><b>inspect</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/2877f7d4c19cb4f18a3d43dc79bc8189976e3634/lib/fakefs/fake/symlink.rb#L10" 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/symlink.rb, line 10</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-keyword kw">end</span></pre>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="method">
|
|
<div class="title" id="M000047">
|
|
|
|
<a name="M000047"></a><b>respond_to?</b>(method)
|
|
|
|
</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/2877f7d4c19cb4f18a3d43dc79bc8189976e3634/lib/fakefs/fake/symlink.rb#L22" 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/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-identifier">entry</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method</span>)
|
|
<span class="ruby-keyword kw">end</span></pre>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |