doc/rdoc/classes/Folio/Prompt.html in folio-0.1.0 vs doc/rdoc/classes/Folio/Prompt.html in folio-0.2.0
- old
+ new
@@ -80,43 +80,45 @@
<div class="sectiontitle">Methods</div>
<ul>
- <li><a href="#M000039">+</a></li>
- <li><a href="#M000040">/</a></li>
- <li><a href="#M000066">[]</a></li>
- <li><a href="#M000047">cd</a></li>
- <li><a href="#M000061">chmod</a></li>
- <li><a href="#M000062">chmod_r</a></li>
- <li><a href="#M000063">chown</a></li>
- <li><a href="#M000064">chown_r</a></li>
- <li><a href="#M000054">cp</a></li>
- <li><a href="#M000055">cp_r</a></li>
- <li><a href="#M000044">directories</a></li>
- <li><a href="#M000042">entries</a></li>
- <li><a href="#M000038">file</a></li>
- <li><a href="#M000045">files</a></li>
- <li><a href="#M000046">glob</a></li>
- <li><a href="#M000060">install</a></li>
- <li><a href="#M000051">ln</a></li>
- <li><a href="#M000052">ln_s</a></li>
- <li><a href="#M000053">ln_sf</a></li>
- <li><a href="#M000043">ls</a></li>
- <li><a href="#M000048">mkdir</a></li>
- <li><a href="#M000049">mkdir_p</a></li>
- <li><a href="#M000035">mode</a></li>
- <li><a href="#M000056">mv</a></li>
- <li><a href="#M000034">new</a></li>
- <li><a href="#M000041">paths</a></li>
- <li><a href="#M000037">pwd</a></li>
- <li><a href="#M000057">rm</a></li>
- <li><a href="#M000058">rm_r</a></li>
- <li><a href="#M000059">rm_rf</a></li>
- <li><a href="#M000050">rmdir</a></li>
- <li><a href="#M000036">to_s</a></li>
- <li><a href="#M000065">touch</a></li>
+ <li><a href="#M000043">+</a></li>
+ <li><a href="#M000044">/</a></li>
+ <li><a href="#M000072">[]</a></li>
+ <li><a href="#M000042">[]</a></li>
+ <li><a href="#M000053">cd</a></li>
+ <li><a href="#M000067">chmod</a></li>
+ <li><a href="#M000068">chmod_r</a></li>
+ <li><a href="#M000069">chown</a></li>
+ <li><a href="#M000070">chown_r</a></li>
+ <li><a href="#M000060">cp</a></li>
+ <li><a href="#M000061">cp_r</a></li>
+ <li><a href="#M000051">directories</a></li>
+ <li><a href="#M000047">directory_entries</a></li>
+ <li><a href="#M000048">document_entries</a></li>
+ <li><a href="#M000050">documents</a></li>
+ <li><a href="#M000045">entries</a></li>
+ <li><a href="#M000041">file</a></li>
+ <li><a href="#M000049">files</a></li>
+ <li><a href="#M000052">glob</a></li>
+ <li><a href="#M000066">install</a></li>
+ <li><a href="#M000057">ln</a></li>
+ <li><a href="#M000058">ln_s</a></li>
+ <li><a href="#M000059">ln_sf</a></li>
+ <li><a href="#M000046">ls</a></li>
+ <li><a href="#M000054">mkdir</a></li>
+ <li><a href="#M000055">mkdir_p</a></li>
+ <li><a href="#M000039">mode</a></li>
+ <li><a href="#M000062">mv</a></li>
+ <li><a href="#M000038">new</a></li>
+ <li><a href="#M000063">rm</a></li>
+ <li><a href="#M000064">rm_r</a></li>
+ <li><a href="#M000065">rm_rf</a></li>
+ <li><a href="#M000056">rmdir</a></li>
+ <li><a href="#M000040">to_s</a></li>
+ <li><a href="#M000071">touch</a></li>
</ul>
@@ -125,41 +127,45 @@
<table border='0' cellpadding='5'>
<tr valign='top'>
<td class='attr-rw'>
[R]
</td>
- <td class='attr-name'>path</td>
- <td class='attr-desc'></td>
+ <td class='attr-name'>work</td>
+ <td class='attr-desc'>
+@work store the present working directory as a <a
+href="Directory.html">Directory</a> object.
+
+</td>
</tr>
</table>
<div class="sectiontitle">Public Class methods</div>
<div class="method">
<div class="title">
- <a name="M000066"></a><b>[]</b>(path)
+ <a name="M000072"></a><b>[]</b>(path)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show source</a> ]</p>
- <div id="M000066_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000072_source')" id="l_M000072_source">show source</a> ]</p>
+ <div id="M000072_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 232</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 244</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-operator">[]</span>(<span class="ruby-identifier">path</span>)
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000034"></a><b>new</b>(*path)
+ <a name="M000038"></a><b>new</b>(*path)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show source</a> ]</p>
- <div id="M000034_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p>
+ <div id="M000038_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 10</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 20</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">path</span>)
<span class="ruby-identifier">opts</span> = (<span class="ruby-constant">Hash</span><span class="ruby-operator">===</span><span class="ruby-identifier">path</span>.<span class="ruby-identifier">last</span> <span class="ruby-value">? </span><span class="ruby-identifier">path</span>.<span class="ruby-identifier">pop</span> <span class="ruby-operator">:</span> {})
<span class="ruby-identifier">mode</span>(<span class="ruby-identifier">opts</span>)
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">empty?</span>
@@ -178,151 +184,161 @@
</div>
</div>
<div class="sectiontitle">Public Instance methods</div>
<div class="method">
<div class="title">
- <a name="M000039"></a><b>+</b>(fname)
+ <a name="M000043"></a><b>+</b>(fname)
</div>
<div class="description">
<p>
-Join <a href="Prompt.html#M000041">paths</a>.
+Join paths.
</p>
</div>
<div class="aka">
This method is also aliased as
- <a href="Prompt.html#M000040">/</a>
+ <a href="Prompt.html#M000044">/</a>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show source</a> ]</p>
- <div id="M000039_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show source</a> ]</p>
+ <div id="M000043_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 55</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 62</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">fname</span>)
- <span class="ruby-ivar">@path</span> =<span class="ruby-operator">+</span> <span class="ruby-identifier">fname</span>
+ <span class="ruby-ivar">@work</span> =<span class="ruby-operator">+</span> <span class="ruby-identifier">fname</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000040"></a><b>/</b>(fname)
+ <a name="M000044"></a><b>/</b>(fname)
</div>
<div class="description">
<p>
Alias for #+
</p>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000047"></a><b>cd</b>(dir, &block)
+ <a name="M000042"></a><b>[]</b>(name)
</div>
+ <div class="description">
+ <p>
+Alias for <a href="Prompt.html#M000041">file</a>
+</p>
+ </div>
+</div>
+<div class="method">
+ <div class="title">
+ <a name="M000053"></a><b>cd</b>(dir, &block)
+ </div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show source</a> ]</p>
- <div id="M000047_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show source</a> ]</p>
+ <div id="M000053_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 88</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 99</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cd</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
<span class="ruby-comment cmt">#dir = localize(dir)</span>
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
- <span class="ruby-ivar">@path</span>.<span class="ruby-identifier">cd</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
+ <span class="ruby-ivar">@work</span>.<span class="ruby-identifier">cd</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
<span class="ruby-keyword kw">else</span>
- <span class="ruby-ivar">@path</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">dir</span>
+ <span class="ruby-ivar">@work</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">dir</span>
<span class="ruby-keyword kw">end</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000061"></a><b>chmod</b>(mode, list, options)
+ <a name="M000067"></a><b>chmod</b>(mode, list, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p>
- <div id="M000061_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show source</a> ]</p>
+ <div id="M000067_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 178</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 189</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000062"></a><b>chmod_r</b>(mode, list, options)
+ <a name="M000068"></a><b>chmod_r</b>(mode, list, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p>
- <div id="M000062_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show source</a> ]</p>
+ <div id="M000068_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 183</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 194</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chmod_r</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">chmod_r</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000063"></a><b>chown</b>(user, group, list, options)
+ <a name="M000069"></a><b>chown</b>(user, group, list, options)
</div>
<div class="description">
<p>
-alias_method :chmod_R, :<a href="Prompt.html#M000062">chmod_r</a>
+alias_method :chmod_R, :<a href="Prompt.html#M000068">chmod_r</a>
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p>
- <div id="M000063_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show source</a> ]</p>
+ <div id="M000069_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 189</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 200</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000064"></a><b>chown_r</b>(user, group, list, options)
+ <a name="M000070"></a><b>chown_r</b>(user, group, list, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show source</a> ]</p>
- <div id="M000064_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show source</a> ]</p>
+ <div id="M000070_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 194</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 205</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown_r</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">chown_r</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000054"></a><b>cp</b>(src, dest, options)
+ <a name="M000060"></a><b>cp</b>(src, dest, options)
</div>
<div class="description">
<p>
-<a href="Prompt.html#M000054">cp</a>(list, dir, options)
+<a href="Prompt.html#M000060">cp</a>(list, dir, options)
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p>
- <div id="M000054_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p>
+ <div id="M000060_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 137</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 148</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">src</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">src</span>)
<span class="ruby-identifier">dest</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dest</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">cp</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
@@ -330,22 +346,22 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000055"></a><b>cp_r</b>(src, dest, options)
+ <a name="M000061"></a><b>cp_r</b>(src, dest, options)
</div>
<div class="description">
<p>
-<a href="Prompt.html#M000055">cp_r</a>(list, dir, options)
+<a href="Prompt.html#M000061">cp_r</a>(list, dir, options)
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p>
- <div id="M000055_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p>
+ <div id="M000061_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 144</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 155</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp_r</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">src</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">src</span>)
<span class="ruby-identifier">dest</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dest</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">cp_r</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
@@ -353,113 +369,175 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000044"></a><b>directories</b>()
+ <a name="M000051"></a><b>directories</b>()
</div>
<div class="description">
<p>
-<a href="Directory.html">Directory</a> <a
-href="Prompt.html#M000042">entries</a>.
+Returns <a href="../Enumerator.html">Enumerator</a> of <a
+href="Prompt.html#M000050">documents</a>.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show source</a> ]</p>
- <div id="M000044_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show source</a> ]</p>
+ <div id="M000051_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 72</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directories</span>
- <span class="ruby-identifier">path</span>.<span class="ruby-identifier">paths</span>.<span class="ruby-identifier">select</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">directory?</span> }
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 90</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directories</span> ; <span class="ruby-identifier">work</span>.<span class="ruby-identifier">directories</span> ; <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+</div>
+</div>
+<div class="method">
+ <div class="title">
+ <a name="M000047"></a><b>directory_entries</b>()
+ </div>
+ <div class="description">
+ <p>
+Lists directory <a href="Prompt.html#M000045">entries</a>.
+</p>
+ </div>
+<div class="sourcecode">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show source</a> ]</p>
+ <div id="M000047_source" class="dyn-source">
+<pre>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 74</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory_entries</span>
+ <span class="ruby-identifier">work</span>.<span class="ruby-identifier">directory_entries</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000042"></a><b>entries</b>()
+ <a name="M000048"></a><b>document_entries</b>()
</div>
<div class="description">
<p>
-<a href="Directory.html">Directory</a> <a
-href="Prompt.html#M000042">entries</a>.
+Lists directory <a href="Prompt.html#M000045">entries</a>.
</p>
</div>
+<div class="sourcecode">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show source</a> ]</p>
+ <div id="M000048_source" class="dyn-source">
+<pre>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 79</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">document_entries</span>
+ <span class="ruby-identifier">work</span>.<span class="ruby-identifier">document_entries</span>
+ <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+</div>
+</div>
+<div class="method">
+ <div class="title">
+ <a name="M000050"></a><b>documents</b>()
+ </div>
+ <div class="description">
+ <p>
+Returns <a href="../Enumerator.html">Enumerator</a> of <a
+href="Prompt.html#M000051">directories</a>.
+</p>
+ </div>
+<div class="sourcecode">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p>
+ <div id="M000050_source" class="dyn-source">
+<pre>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 87</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">documents</span> ; <span class="ruby-identifier">work</span>.<span class="ruby-identifier">documents</span> ; <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+</div>
+</div>
+<div class="method">
+ <div class="title">
+ <a name="M000045"></a><b>entries</b>()
+ </div>
+ <div class="description">
+ <p>
+Lists all <a href="Prompt.html#M000045">entries</a>.
+</p>
+ </div>
<div class="aka">
This method is also aliased as
- <a href="Prompt.html#M000043">ls</a>
+ <a href="Prompt.html#M000046">ls</a>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">show source</a> ]</p>
- <div id="M000042_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show source</a> ]</p>
+ <div id="M000045_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 66</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 68</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entries</span>
- <span class="ruby-identifier">path</span>.<span class="ruby-identifier">entries</span>
+ <span class="ruby-identifier">work</span>.<span class="ruby-identifier">entries</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000038"></a><b>file</b>(name)
+ <a name="M000041"></a><b>file</b>(name)
</div>
<div class="description">
<p>
-Get the <a href="FileObject.html">FileObject</a>.
+Get the <a href="FileObject.html">FileObject</a> for the given <a
+href="Prompt.html#M000041">file</a> name.
</p>
</div>
+<div class="aka">
+ This method is also aliased as
+ <a href="Prompt.html#M000042">[]</a>
+</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p>
- <div id="M000038_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show source</a> ]</p>
+ <div id="M000041_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 46</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 56</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-constant">FileObject</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000045"></a><b>files</b>()
+ <a name="M000049"></a><b>files</b>()
</div>
<div class="description">
<p>
-<a href="Directory.html">Directory</a> <a
-href="Prompt.html#M000042">entries</a>.
+Returns <a href="../Enumerator.html">Enumerator</a> of <a
+href="Prompt.html#M000049">files</a> objects.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show source</a> ]</p>
- <div id="M000045_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">show source</a> ]</p>
+ <div id="M000049_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 77</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>
- <span class="ruby-identifier">path</span>.<span class="ruby-identifier">paths</span>.<span class="ruby-identifier">select</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">file?</span> }
- <span class="ruby-keyword kw">end</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 84</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span> ; <span class="ruby-identifier">work</span>.<span class="ruby-identifier">files</span> ; <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000046"></a><b>glob</b>(*patterns)
+ <a name="M000052"></a><b>glob</b>(*patterns)
</div>
<div class="description">
<p>
Glob pattern.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">show source</a> ]</p>
- <div id="M000046_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show source</a> ]</p>
+ <div id="M000052_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 82</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 93</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">glob</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">patterns</span>)
<span class="ruby-identifier">opts</span> = (<span class="ruby-operator">::</span><span class="ruby-constant">Integer</span><span class="ruby-operator">===</span><span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">last</span> <span class="ruby-value">? </span><span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">pop</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>)
<span class="ruby-identifier">pattern</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">pattern</span>)
<span class="ruby-operator">::</span><span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">opts</span>).<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">FileObject</span>[<span class="ruby-identifier">f</span>] }
<span class="ruby-keyword kw">end</span>
@@ -467,17 +545,17 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000060"></a><b>install</b>(src, dest, mode, options)
+ <a name="M000066"></a><b>install</b>(src, dest, mode, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p>
- <div id="M000060_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show source</a> ]</p>
+ <div id="M000066_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 172</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 183</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">src</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">src</span>)
<span class="ruby-identifier">dest</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dest</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">install</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
@@ -485,22 +563,22 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000051"></a><b>ln</b>(old, new, options)
+ <a name="M000057"></a><b>ln</b>(old, new, options)
</div>
<div class="description">
<p>
-<a href="Prompt.html#M000051">ln</a>(list, destdir, options)
+<a href="Prompt.html#M000057">ln</a>(list, destdir, options)
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show source</a> ]</p>
- <div id="M000051_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p>
+ <div id="M000057_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 117</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 128</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">old</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">old</span>)
<span class="ruby-identifier">new</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">new</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">ln</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
@@ -508,22 +586,22 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000052"></a><b>ln_s</b>(old, new, options)
+ <a name="M000058"></a><b>ln_s</b>(old, new, options)
</div>
<div class="description">
<p>
-<a href="Prompt.html#M000052">ln_s</a>(list, destdir, options)
+<a href="Prompt.html#M000058">ln_s</a>(list, destdir, options)
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show source</a> ]</p>
- <div id="M000052_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p>
+ <div id="M000058_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 124</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 135</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln_s</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">old</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">old</span>)
<span class="ruby-identifier">new</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">new</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">ln_s</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
@@ -531,17 +609,17 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000053"></a><b>ln_sf</b>(old, new, options)
+ <a name="M000059"></a><b>ln_sf</b>(old, new, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show source</a> ]</p>
- <div id="M000053_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p>
+ <div id="M000059_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 130</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 141</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln_sf</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">old</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">old</span>)
<span class="ruby-identifier">new</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">new</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">ln_sf</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
@@ -549,66 +627,67 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000043"></a><b>ls</b>()
+ <a name="M000046"></a><b>ls</b>()
</div>
<div class="description">
<p>
-Alias for <a href="Prompt.html#M000042">entries</a>
+Alias for <a href="Prompt.html#M000045">entries</a>
</p>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000048"></a><b>mkdir</b>(dir, options)
+ <a name="M000054"></a><b>mkdir</b>(dir, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show source</a> ]</p>
- <div id="M000048_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p>
+ <div id="M000054_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 101</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 112</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">dir</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dir</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000049"></a><b>mkdir_p</b>(dir, options)
+ <a name="M000055"></a><b>mkdir_p</b>(dir, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">show source</a> ]</p>
- <div id="M000049_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p>
+ <div id="M000055_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 106</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 117</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">dir</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dir</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000035"></a><b>mode</b>(opts=nil)
+ <a name="M000039"></a><b>mode</b>(opts=nil)
</div>
<div class="description">
<p>
-opertaton <a href="Prompt.html#M000035">mode</a>
+Opertaton <a href="Prompt.html#M000039">mode</a>. This can be :noop,
+:verbose or :dryrun. The later is the same as the first two combined.
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">show source</a> ]</p>
- <div id="M000035_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show source</a> ]</p>
+ <div id="M000039_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 27</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 38</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mode</span>(<span class="ruby-identifier">opts</span>=<span class="ruby-keyword kw">nil</span>)
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@mode</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">opts</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
<span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">val</span>
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">key</span>
@@ -625,22 +704,22 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000056"></a><b>mv</b>(src, dest, options)
+ <a name="M000062"></a><b>mv</b>(src, dest, options)
</div>
<div class="description">
<p>
-<a href="Prompt.html#M000056">mv</a>(list, dir, options)
+<a href="Prompt.html#M000062">mv</a>(list, dir, options)
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show source</a> ]</p>
- <div id="M000056_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p>
+ <div id="M000062_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 151</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 162</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mv</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">src</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">src</span>)
<span class="ruby-identifier">dest</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dest</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">mv</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
@@ -648,139 +727,103 @@
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000041"></a><b>paths</b>()
+ <a name="M000063"></a><b>rm</b>(list, options)
</div>
- <div class="description">
- <p>
-<a href="Directory.html">Directory</a> <a
-href="Prompt.html#M000042">entries</a>.
-</p>
- </div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show source</a> ]</p>
- <div id="M000041_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p>
+ <div id="M000063_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 61</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paths</span>
- <span class="ruby-identifier">path</span>.<span class="ruby-identifier">paths</span>
- <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
-</div>
-</div>
-<div class="method">
- <div class="title">
- <a name="M000037"></a><b>pwd</b>()
- </div>
-<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show source</a> ]</p>
- <div id="M000037_source" class="dyn-source">
-<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 43</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pwd</span> ; <span class="ruby-identifier">path</span> ; <span class="ruby-keyword kw">end</span>
-</pre>
- </div>
-</div>
-</div>
-<div class="method">
- <div class="title">
- <a name="M000057"></a><b>rm</b>(list, options)
- </div>
-<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p>
- <div id="M000057_source" class="dyn-source">
-<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 157</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 168</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">rm</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000058"></a><b>rm_r</b>(list, options)
+ <a name="M000064"></a><b>rm_r</b>(list, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p>
- <div id="M000058_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show source</a> ]</p>
+ <div id="M000064_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 162</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 173</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm_r</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">rm_f</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000059"></a><b>rm_rf</b>(list, options)
+ <a name="M000065"></a><b>rm_rf</b>(list, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p>
- <div id="M000059_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show source</a> ]</p>
+ <div id="M000065_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 167</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 178</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm_rf</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">rm_rf</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000050"></a><b>rmdir</b>(dir, options)
+ <a name="M000056"></a><b>rmdir</b>(dir, options)
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p>
- <div id="M000050_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show source</a> ]</p>
+ <div id="M000056_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 111</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 122</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rmdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">dir</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dir</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">rmdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000036"></a><b>to_s</b>()
+ <a name="M000040"></a><b>to_s</b>()
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show source</a> ]</p>
- <div id="M000036_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">show source</a> ]</p>
+ <div id="M000040_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 42</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-identifier">path</span>.<span class="ruby-identifier">to_s</span> ; <span class="ruby-keyword kw">end</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 53</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-identifier">work</span>.<span class="ruby-identifier">to_s</span> ; <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div class="method">
<div class="title">
- <a name="M000065"></a><b>touch</b>(list, options)
+ <a name="M000071"></a><b>touch</b>(list, options)
</div>
<div class="description">
<p>
-alias_method :chown_R, :<a href="Prompt.html#M000064">chown_r</a>
+alias_method :chown_R, :<a href="Prompt.html#M000070">chown_r</a>
</p>
</div>
<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show source</a> ]</p>
- <div id="M000065_source" class="dyn-source">
+ <p class="source-link">[ <a href="javascript:toggleSource('M000071_source')" id="l_M000071_source">show source</a> ]</p>
+ <div id="M000071_source" class="dyn-source">
<pre>
-<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 200</span>
+<span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 211</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">touch</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">touch</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
<span class="ruby-keyword kw">end</span>
</pre>
\ No newline at end of file