doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000037.html in mongrel-0.3.13.4 vs doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000037.html in mongrel-1.0
- old
+ new
@@ -3,19 +3,21 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>log_threads_waiting_for (Mongrel::Rails::RailsHandler)</title>
+ <title>new (Mongrel::Rails::RailsHandler)</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/rails.rb, line 98</span>
- 98: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_threads_waiting_for</span>(<span class="ruby-identifier">event</span>)
- 99: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@tick</span> <span class="ruby-operator">></span> <span class="ruby-value">10</span>
-100: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{Time.now}: #{@guard.sync_waiting.length} threads sync_waiting for #{event}, #{self.listener.workers.list.length} still active in mongrel."</span>
-101: <span class="ruby-ivar">@tick</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
-102: <span class="ruby-keyword kw">end</span>
-103: <span class="ruby-keyword kw">end</span></pre>
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/rails.rb, line 37</span>
+37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">mime_map</span> = {})
+38: <span class="ruby-ivar">@files</span> = <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">DirHandler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">dir</span>,<span class="ruby-keyword kw">false</span>)
+39: <span class="ruby-ivar">@guard</span> = <span class="ruby-constant">Mutex</span>.<span class="ruby-identifier">new</span>
+40: <span class="ruby-ivar">@tick</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
+41:
+42: <span class="ruby-comment cmt"># Register the requested MIME types</span>
+43: <span class="ruby-identifier">mime_map</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">DirHandler</span><span class="ruby-operator">::</span><span class="ruby-identifier">add_mime_type</span>(<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span>) }
+44: <span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file