/htdocs/ruby-stdlib/Shell/Concat.html
HTML | 283 lines | 149 code | 134 blank | 0 comment | 0 complexity | 2fe31a406419e0021294fd7f1b900c04 MD5 | raw file
- <!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: Shell::Concat</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 (C)</a> »
- <span class='title'><span class='object_link'><a href="../Shell.html" title="Shell (class)">Shell</a></span></span>
- »
- <span class="title">Concat</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: Shell::Concat
-
-
-
- </h1>
- <dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName"><span class='object_link'><a href="BuiltInCommand.html" title="Shell::BuiltInCommand (class)">BuiltInCommand</a></span></span>
-
- <ul class="fullTree">
- <li><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></li>
-
- <li class="next"><span class='object_link'><a href="Filter.html" title="Shell::Filter (class)">Filter</a></span></li>
-
- <li class="next"><span class='object_link'><a href="BuiltInCommand.html" title="Shell::BuiltInCommand (class)">BuiltInCommand</a></span></li>
-
- <li class="next">Shell::Concat</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/shell/builtin-command.rb</dd>
-
- </dl>
- <div class="clear"></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <h2>
- Instance Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#each-instance_method" title="#each (instance method)">- (Object) <strong>each</strong>(rs = nil) </a>
-
-
- </span>
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
- </li>
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Concat) <strong>initialize</strong>(sh, *jobs) </a>
-
-
- </span>
-
- <span class="note title constructor">constructor</span>
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'><p>
- A new instance of Concat.
- </p>
- </div></span>
-
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="BuiltInCommand.html" title="Shell::BuiltInCommand (class)">BuiltInCommand</a></span></h3>
- <p class="inherited"><span class='object_link'><a href="BuiltInCommand.html#active%3F-instance_method" title="Shell::BuiltInCommand#active? (method)">#active?</a></span>, <span class='object_link'><a href="BuiltInCommand.html#wait%3F-instance_method" title="Shell::BuiltInCommand#wait? (method)">#wait?</a></span></p>
-
-
-
-
-
-
-
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Filter.html" title="Shell::Filter (class)">Filter</a></span></h3>
- <p class="inherited"><span class='object_link'><a href="Filter.html#%2B-instance_method" title="Shell::Filter#+ (method)">#+</a></span>, <span class='object_link'><a href="Filter.html#%3C-instance_method" title="Shell::Filter#< (method)">#<</a></span>, <span class='object_link'><a href="Filter.html#%3E-instance_method" title="Shell::Filter#> (method)">#></a></span>, <span class='object_link'><a href="Filter.html#%3E%3E-instance_method" title="Shell::Filter#>> (method)">#>></a></span>, <span class='object_link'><a href="Filter.html#inspect-instance_method" title="Shell::Filter#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="Filter.html#to_a-instance_method" title="Shell::Filter#to_a (method)">#to_a</a></span>, <span class='object_link'><a href="Filter.html#to_s-instance_method" title="Shell::Filter#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="Filter.html#%7C-instance_method" title="Shell::Filter#| (method)">#|</a></span></p>
-
-
-
-
-
-
-
- <h3 class="inherited">Methods included from <span class='object_link'><a href="../Enumerable.html" title="Enumerable (module)">Enumerable</a></span></h3>
- <p class="inherited"><span class='object_link'><a href="../Enumerable.html#to_set-instance_method" title="Enumerable#to_set (method)">#to_set</a></span></p>
- <div id="constructor_details" class="method_details_list">
- <h2>Constructor Details</h2>
-
- <div class="method_details first">
- <p class="signature first" id="initialize-instance_method">
-
- - (<tt><span class='object_link'><a href="" title="Shell::Concat (class)">Concat</a></span></tt>) <strong>initialize</strong>(sh, *jobs)
-
-
- </p><div class="docstring">
- <div class="discussion">
- <p>
- A new instance of Concat
- </p>
- </div>
- </div>
- <div class="tags">
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
- 149
- 150
- 151
- 152</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/shell/builtin-command.rb', line 149</span>
- <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id sh'>sh</span><span class='comma'>,</span> <span class='op'>*</span><span class='id jobs'>jobs</span><span class='rparen'>)</span>
- <span class='kw'>super</span><span class='lparen'>(</span><span class='id sh'>sh</span><span class='rparen'>)</span>
- <span class='ivar'>@jobs</span> <span class='op'>=</span> <span class='id jobs'>jobs</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- </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="each-instance_method">
-
- - (<tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>) <strong>each</strong>(rs = nil)
-
-
- </p><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
- 154
- 155
- 156
- 157
- 158</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/shell/builtin-command.rb', line 154</span>
- <span class='kw'>def</span> <span class='id each'>each</span><span class='lparen'>(</span><span class='id rs'>rs</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
- <span class='kw'>while</span> <span class='id job'>job</span> <span class='op'>=</span> <span class='ivar'>@jobs</span><span class='period'>.</span><span class='id shift'>shift</span>
- <span class='id job'>job</span><span class='period'>.</span><span class='id each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id l'>l</span><span class='op'>|</span> <span class='kw'>yield</span> <span class='id l'>l</span><span class='rbrace'>}</span>
- <span class='kw'>end</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
- </div>
-
- <div id="footer">
- Generated on Thu Oct 14 00:02:09 2010 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.6.1 (ruby-1.9.2).
- </div>
- </body>
- </html>