Sha256: 5b2766d2d8325fcdc9a2d73db151d060cd1450d10b10c43992df841c0eea9a1c

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 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_api! (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 21</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_api!</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">url</span>)
      <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Updating API for #{name}...&quot;</span>
      <span class="ruby-identifier">api</span> = <span class="ruby-constant">Api</span>.<span class="ruby-identifier">find_or_create_by_name_and_url</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">url</span>)
      <span class="ruby-identifier">api</span>.<span class="ruby-identifier">update_methods!</span>
      <span class="ruby-identifier">api</span>.<span class="ruby-identifier">update_classes!</span>
      <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;DONE (with #{name})!&quot;</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/M000004.html