Sha256: 462a463980acc6bde62975e23190b6891b689432e87dc60f5fcfd75dc3c9b605
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 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>connection_adapter= (SimpleMapper::Base)</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/simple_mapper/base.rb, line 10</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connection_adapter=</span>(<span class="ruby-identifier">adapter</span>,<span class="ruby-identifier">debug</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) <span class="ruby-comment cmt"># Should complain if the adapter doesn't exist.</span> <span class="ruby-ivar">@connection_adapter</span> = <span class="ruby-identifier">adapter</span> <span class="ruby-identifier">require</span> <span class="ruby-node">"#{File.dirname(__FILE__)}/adapters/#{@connection_adapter}_adapter"</span> <span class="ruby-ivar">@connection_init</span> = <span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span> <span class="ruby-ivar">@connection_debug</span> = <span class="ruby-identifier">debug</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simplemapper-0.0.1 | doc/classes/SimpleMapper/Base.src/M000066.html |