fakefs/classes/Object.html
Chris Wanstrath bda25083fc update docs
2009-10-30 10:03:19 -07:00

105 lines
3.3 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>Object</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>
Object
<span class="parent">&lt;
<a href="Object.html">Object</a>
</span>
</h1>
<ul class="files">
</ul>
</div>
<div id="bodyContent">
<div id="content">
<div class="sectiontitle">Methods</div>
<dl class="methods">
<dt>F</dt>
<dd>
<ul>
<li><a href="#M000002">FakeFS</a></li>
</ul>
</dd>
</dl>
<div class="sectiontitle">Instance Public methods</div>
<div class="method">
<div class="title" id="M000002">
<a name="M000002"></a><b>FakeFS</b>()
</div>
<div class="sourcecode">
<p class="source-link">
Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
| <a href="http://github.com/defunkt/fakefs/blob/7444ef50b3ffbb8a534182b2a3af6a0b6073b32f/lib/fakefs/base.rb#L31" target="_blank" class="github_url">on GitHub</a>
</p>
<div id="M000002_source" class="dyn-source">
<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">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-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-keyword kw">end</span></pre>
</div>
</div>
</div>
</div>
</div>
</body>
</html>