Sha256: 60cf00ba145ede0db609cb035347bdd6e556ab41b08aad6c44667889ab682e2b

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 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>get_uri_from_cache (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 47</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_uri_from_cache</span>(<span class="ruby-identifier">uri</span>)
        <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@uri_cache</span>[<span class="ruby-identifier">uri</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span>
                <span class="ruby-ivar">@@uri_cache</span>[<span class="ruby-identifier">uri</span>]=<span class="ruby-identifier">open</span>(<span class="ruby-identifier">uri</span>).<span class="ruby-identifier">read</span>
        <span class="ruby-keyword kw">end</span>
        <span class="ruby-ivar">@@uri_cache</span>[<span class="ruby-identifier">uri</span>]
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dsktool-0.2.1 doc/files/bin/dskexplorer_rb.src/M000001.html
dsktool-0.4.1 doc/files/bin/dskexplorer_rb.src/M000001.html