<!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> <meta name="Content-Type" content="text/html; charset=utf-8" /> <title>Class: Rumai::IXP::Stat</title> <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" /> <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" /> <script type="text/javascript" charset="utf-8"> relpath = '../..'; if (relpath != '') relpath += '/'; </script> <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script> <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script> </head> <body> <script type="text/javascript" charset="utf-8"> if (window.top.frames.main) document.body.className = 'frames'; </script> <div id="header"> <div id="menu"> <a href="../../_index.html">Index (S)</a> » <span class='title'><a href="../../Rumai.html" title="Rumai (module)">Rumai</a></span> » <span class='title'><a href="../IXP.html" title="Rumai::IXP (module)">IXP</a></span> » <span class="title">Stat</span> <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div> </div> <div id="search"> <a id="class_list_link" href="#">Class List</a> <a id="method_list_link" href="#">Method List</a> <a id ="file_list_link" href="#">File List</a> </div> <div class="clear"></div> </div> <iframe id="search_frame"></iframe> <div id="content"><h1>Class: Rumai::IXP::Stat </h1> <dl class="box"> <dt class="r1">Inherits:</dt> <dd class="r1"> <span class="inheritName"><a href="../../Object.html" title="Object (class)">Object</a></span> <ul class="fullTree"> <li><a href="../../Object.html" title="Object (class)">Object</a></li> <li class="next">Rumai::IXP::Stat</li> </ul> <a href="#" class="inheritanceTree">show all</a> </dd> <dt class="r2">Includes:</dt> <dd class="r2"><a href="Struct.html" title="Rumai::IXP::Struct (module)">Struct</a></dd> <dt class="r1 last">Defined in:</dt> <dd class="r1 last">lib/rumai/ixp/message.rb</dd> </dl> <div class="clear"></div> <h2>Overview</h2><div class="docstring"> <div class="discussion"> <p> Holds information about a file on a 9P2000 server. </p> <p> See <a href="http://cm.bell-labs.com/magic/man2html/5/stat">cm.bell-labs.com/magic/man2html/5/stat</a> </p> </div> </div> <div class="tags"> </div> <h2>Constant Summary</h2> <dl class="constants"> <dt id="DMDIR-constant" class="">DMDIR = <div class="docstring"> <div class="discussion"> <p> The following constant definitions originate from: <a href="http://swtch.com/usr/local/plan9/include/libc.h">swtch.com/usr/local/plan9/include/libc.h</a> </p> </div> </div> <div class="tags"> </div> </dt> <dd><pre class="code"><span class='int'>0x80000000</span></pre></dd> <dt id="DMAPPEND-constant" class="">DMAPPEND = </dt> <dd><pre class="code"><span class='int'>0x40000000</span></pre></dd> <dt id="DMEXCL-constant" class="">DMEXCL = </dt> <dd><pre class="code"><span class='int'>0x20000000</span></pre></dd> <dt id="DMMOUNT-constant" class="">DMMOUNT = </dt> <dd><pre class="code"><span class='int'>0x10000000</span></pre></dd> <dt id="DMAUTH-constant" class="">DMAUTH = </dt> <dd><pre class="code"><span class='int'>0x08000000</span></pre></dd> <dt id="DMTMP-constant" class="">DMTMP = </dt> <dd><pre class="code"><span class='int'>0x04000000</span></pre></dd> <dt id="DMSYMLINK-constant" class="">DMSYMLINK = </dt> <dd><pre class="code"><span class='int'>0x02000000</span></pre></dd> <dt id="DMDEVICE-constant" class="">DMDEVICE = </dt> <dd><pre class="code"><span class='int'>0x00800000</span></pre></dd> <dt id="DMNAMEDPIPE-constant" class="">DMNAMEDPIPE = </dt> <dd><pre class="code"><span class='int'>0x00200000</span></pre></dd> <dt id="DMSOCKET-constant" class="">DMSOCKET = </dt> <dd><pre class="code"><span class='int'>0x00100000</span></pre></dd> <dt id="DMSETUID-constant" class="">DMSETUID = </dt> <dd><pre class="code"><span class='int'>0x00080000</span></pre></dd> <dt id="DMSETGID-constant" class="">DMSETGID = </dt> <dd><pre class="code"><span class='int'>0x00040000</span></pre></dd> <dt id="DMREAD-constant" class="">DMREAD = </dt> <dd><pre class="code"><span class='int'>0x4</span></pre></dd> <dt id="DMWRITE-constant" class="">DMWRITE = </dt> <dd><pre class="code"><span class='int'>0x2</span></pre></dd> <dt id="DMEXEC-constant" class="">DMEXEC = <div class="docstring"> <div class="discussion"> <p> mode bit for directories mode bit for append only files mode bit for exclusive use files mode bit for mounted channel mode bit for authentication file mode bit for non-backed-up file mode bit for symbolic link (Unix, 9P2000.u) mode bit for device file (Unix, 9P2000.u) mode bit for named pipe (Unix, 9P2000.u) mode bit for socket (Unix, 9P2000.u) mode bit for setuid (Unix, 9P2000.u) mode bit for setgid (Unix, 9P2000.u) mode bit for read permission mode bit for write permission mode bit for execute permission </p> </div> </div> <div class="tags"> </div> </dt> <dd><pre class="code"><span class='int'>0x1</span></pre></dd> </dl> <h2>Instance Method Summary</h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> <a href="#directory%3F-instance_method" title="#directory? (instance method)">- (Boolean) <strong>directory?</strong> </a> </span> <span class="summary_desc"><div class='inline'><p> Tests if this file is a directory. </p> </div></span> </li> </ul> <h3 class="inherited">Methods included from <a href="Struct.html" title="Rumai::IXP::Struct (module)">Struct</a></h3> <p class="inherited"><a href="Struct.html#included-class_method" title="Rumai::IXP::Struct.included (method)">included</a>, <a href="Struct.html#initialize-instance_method" title="Rumai::IXP::Struct#initialize (method)">#initialize</a>, <a href="Struct.html#load_9p-instance_method" title="Rumai::IXP::Struct#load_9p (method)">#load_9p</a>, <a href="Struct.html#to_9p-instance_method" title="Rumai::IXP::Struct#to_9p (method)">#to_9p</a></p> <div id="constructor_details" class="method_details_list"> <h2>Constructor Details</h2> <p class="notice">This class inherits a constructor from <a href="Struct.html#initialize-instance_method" title="Rumai::IXP::Struct#initialize (method)">Rumai::IXP::Struct</a></p> </div> <div id="instance_method_details" class="method_details_list"> <h2>Instance Method Details</h2> <div class="method_details first"> <p class="signature first" id="directory?-instance_method"> - (<tt>Boolean</tt>) <strong>directory?</strong> </p><div class="docstring"> <div class="discussion"> <p> Tests if this file is a directory. </p> </div> </div> <div class="tags"> <h3>Returns:</h3> <ul class="return"> <li> <span class='type'>(<tt>Boolean</tt>)</span> </li> </ul> </div><table class="source_code"> <tr> <td> <pre class="lines"> 377 378 379</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/rumai/ixp/message.rb', line 377</span> <span class='kw'>def</span> <span class='id directory?'>directory?</span> <span class='id mode'>mode</span> <span class='op'>&</span> <span class='const'>DMDIR</span> <span class='op'>></span> <span class='int'>0</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> </div> </div> <div id="footer"> Generated on Thu Apr 1 00:30:58 2010 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a> 0.5.4 (ruby-1.9.1). </div> </body> </html>