Sha256: 8a43bbd0ac5b24d66f59d3cf34136eeaba8c7e22d3563dca5e1ebac34403109b
Contents?: true
Size: 1.48 KB
Versions: 4
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 160</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">"#{HOST}/scripts.json"</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">"name"</span>] <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
js-get-0.1.7 | doc/classes/App.src/M000013.html |
js-get-0.1.6 | doc/classes/App.src/M000013.html |
js-get-0.1.5 | doc/classes/App.src/M000013.html |
js-get-0.1.4 | doc/classes/App.src/M000013.html |