Sha256: 62ba8cbb4076870898a76671fe8f9e13ebcfa611f12c044aa2c4fdcf9c36288b
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 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>layout (Configure::Views)</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/mongrel_config/app.rb, line 65</span> 65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">layout</span> 66: <span class="ruby-identifier">body_content</span> = <span class="ruby-keyword kw">yield</span> 67: <span class="ruby-identifier">currently_running</span> = <span class="ruby-identifier">_running?</span> 68: <span class="ruby-identifier">pid</span> = <span class="ruby-identifier">_pid</span> 69: <span class="ruby-identifier">open</span>(<span class="ruby-constant">GemPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Manager</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">resource</span>(<span class="ruby-value str">"mongrel_config"</span>, <span class="ruby-value str">"/index.html"</span>)) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> 70: <span class="ruby-identifier">template</span> = <span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>) 71: <span class="ruby-keyword kw">self</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">template</span>.<span class="ruby-identifier">result</span>(<span class="ruby-identifier">binding</span>) 72: <span class="ruby-keyword kw">end</span> 73: <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongrel_config-0.3 | doc/rdoc/classes/Configure/Views.src/M000011.html |