Sha256: 4c12a3a57b857193c44ffc3ae932733e1a595952e3aefebfad6628b7f7be74e3
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 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>update! (APILookup)</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/lookup.rb, line 11</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update!</span> <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Updating API, this may take a minute or two. Please be patient!"</span> [<span class="ruby-constant">Constant</span>, <span class="ruby-constant">Entry</span>, <span class="ruby-constant">Api</span>].<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">klass</span><span class="ruby-operator">|</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">delete_all</span> } <span class="ruby-identifier">update_api!</span>(<span class="ruby-value str">"Rails"</span>, <span class="ruby-value str">"http://api.rubyonrails.org"</span>) <span class="ruby-identifier">update_api!</span>(<span class="ruby-value str">"Ruby 1.8.7"</span>, <span class="ruby-value str">"http://www.ruby-doc.org/core"</span>) <span class="ruby-identifier">update_api!</span>(<span class="ruby-value str">"Ruby 1.9"</span>, <span class="ruby-value str">"http://ruby-doc.org/ruby-1.9"</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lookup-1.0.0.beta1 | doc/classes/APILookup.src/M000003.html |