Sha256: b85b7405284b2c5fca8ecaeba4e642b9ca483eaadea87cf57bce37c1cd554f6d

Contents?: true

Size: 1.91 KB

Versions: 3

Compression:

Stored size: 1.91 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>resolve_add (FileList)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/facet/filelist.rb, line 169</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resolve_add</span>(<span class="ruby-identifier">fn</span>)
    <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">fn</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-constant">NilClass</span>
      <span class="ruby-comment cmt"># ignore</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
      <span class="ruby-identifier">fn</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-keyword kw">self</span>.<span class="ruby-identifier">resolve_add</span>(<span class="ruby-identifier">f</span>) }
    <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">%r{[*?]}</span>
      <span class="ruby-identifier">add_matching</span>(<span class="ruby-identifier">fn</span>)
    <span class="ruby-keyword kw">else</span>
      <span class="ruby-keyword kw">self</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">fn</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exists?</span>( <span class="ruby-identifier">fn</span> )
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-0.7.0 doc/main-rdoc/classes/FileList.src/M000377.html
facets-0.7.1 doc/main-rdoc/classes/FileList.src/M000377.html
facets-0.7.2 doc/main-rdoc/classes/FileList.src/M000391.html