Sha256: 3638b87a764af8bff7c78bc5d812f0821a44b09f59a9c4c7c3f08e25b0467fbd

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 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>list (App)</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/js-get, line 158</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>
      <span class="ruby-comment cmt"># List Libraries</span>
      <span class="ruby-identifier">libraries</span> = <span class="ruby-constant">Crack</span><span class="ruby-operator">::</span><span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">&quot;#{HOST}/scripts&quot;</span>))
      <span class="ruby-identifier">libraries</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">lib</span><span class="ruby-operator">|</span>
        <span class="ruby-identifier">puts</span> <span class="ruby-identifier">lib</span>[<span class="ruby-value str">&quot;name&quot;</span>]
      <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
js-get-0.1.3 doc/classes/App.src/M000013.html