doc/classes/Cachetastic/Connection.html in cachetastic-1.7.4 vs doc/classes/Cachetastic/Connection.html in cachetastic-2.0.0

- old
+ new

@@ -53,12 +53,12 @@ <td class="class-name-in-header">Cachetastic::Connection</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> - <a href="../../files/lib/cachetastic_connection_rb.html"> - lib/cachetastic_connection.rb + <a href="../../files/lib/cachetastic/connection_rb.html"> + lib/cachetastic/connection.rb </a> <br /> </td> </tr> @@ -149,11 +149,11 @@ <div class="method-description"> <p><a class="source-toggle" href="#" onclick="toggleCode('M000072-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000072-source"> <pre> - <span class="ruby-comment cmt"># File lib/cachetastic_connection.rb, line 7</span> + <span class="ruby-comment cmt"># File lib/cachetastic/connection.rb, line 7</span> 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> 8: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connections</span> = {} 9: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -180,15 +180,15 @@ </p> <p><a class="source-toggle" href="#" onclick="toggleCode('M000073-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000073-source"> <pre> - <span class="ruby-comment cmt"># File lib/cachetastic_connection.rb, line 14</span> + <span class="ruby-comment cmt"># File lib/cachetastic/connection.rb, line 14</span> 14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">name</span>) 15: <span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span> 16: <span class="ruby-identifier">conn</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connections</span>[<span class="ruby-identifier">name</span>] 17: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">conn</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">conn</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">conn</span>.<span class="ruby-identifier">valid?</span> -18: <span class="ruby-identifier">adapter</span> = <span class="ruby-constant">Cachetastic</span><span class="ruby-operator">::</span><span class="ruby-constant">Adapters</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">get_options</span>(<span class="ruby-identifier">name</span>)[<span class="ruby-value str">&quot;adapter&quot;</span>].<span class="ruby-identifier">camelcase</span> +18: <span class="ruby-identifier">adapter</span> = <span class="ruby-constant">Cachetastic</span><span class="ruby-operator">::</span><span class="ruby-constant">Adapters</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">configuration</span>(<span class="ruby-identifier">name</span>).<span class="ruby-identifier">adapter</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">camelcase</span> 19: <span class="ruby-identifier">conn</span> = <span class="ruby-node">&quot;Cachetastic::Adapters::#{adapter}&quot;</span>.<span class="ruby-identifier">constantize</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>) 20: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connections</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">conn</span> 21: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">conn</span> 22: <span class="ruby-keyword kw">end</span> </pre> \ No newline at end of file