fakefs/classes/Object.html

105 lines
3.3 KiB
HTML
Raw Normal View History

2009-10-07 04:44:05 +00:00
<?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>
2010-12-18 19:14:00 +00:00
<li><a href="#M000004">FakeFS</a></li>
2009-10-07 04:44:05 +00:00
</ul>
</dd>
</dl>
<div class="sectiontitle">Instance Public methods</div>
<div class="method">
2010-12-18 19:14:00 +00:00
<div class="title" id="M000004">
2009-10-07 04:44:05 +00:00
2010-12-18 19:14:00 +00:00
<a name="M000004"></a><b>FakeFS</b>()
2009-10-07 04:44:05 +00:00
</div>
<div class="sourcecode">
<p class="source-link">
2010-12-18 19:14:00 +00:00
Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
2009-10-07 04:44:05 +00:00
2010-12-18 19:14:23 +00:00
| <a href="http://github.com/defunkt/fakefs/blob/491da764d1500fbfcbf8f9e2242c07593af57a29/lib/fakefs/base.rb#L38" target="_blank" class="github_url">on GitHub</a>
2009-10-07 04:44:05 +00:00
</p>
2010-12-18 19:14:00 +00:00
<div id="M000004_source" class="dyn-source">
<pre><span class="ruby-comment cmt"># File lib/fakefs/base.rb, line 38</span>
2009-10-07 04:44:05 +00:00
<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>
2009-10-30 17:03:19 +00:00
<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>
2009-10-07 04:44:05 +00:00
<span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
</div>
</div>
</body>
</html>