about summary refs log tree commit homepage
path: root/lib/rainbows/rev.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-26 03:09:47 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-26 03:15:50 +0000
commit68accc9930b0653b702553790d4ccd626a8dfdfe (patch)
tree2c51b14e785a8f7d8c06dbe8b7308b38b4a6880f /lib/rainbows/rev.rb
parenta35fd37ff0c81ca8130c18b7b77957bafe686f83 (diff)
downloadrainbows-68accc9930b0653b702553790d4ccd626a8dfdfe.tar.gz
One file per class/module should be easier for new
hackers to find.  Unindent rainbows/rev/core while
we're at it, too.
Diffstat (limited to 'lib/rainbows/rev.rb')
-rw-r--r--lib/rainbows/rev.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb
index 71bcfcc..47ee17f 100644
--- a/lib/rainbows/rev.rb
+++ b/lib/rainbows/rev.rb
@@ -1,6 +1,4 @@
 # -*- encoding: binary -*-
-require 'rainbows/rev/core'
-require 'rainbows/rev/client'
 
 # Implements a basic single-threaded event model with
 # {Rev}[http://rev.rubyforge.org/].  It is capable of handling
@@ -21,7 +19,6 @@ require 'rainbows/rev/client'
 # temporary file before the application is entered.
 
 module Rainbows::Rev
-
   # :stopdoc:
   # keep-alive timeout scoreboard
   KATO = {}
@@ -33,9 +30,11 @@ module Rainbows::Rev
     CONN.compare_by_identity
     KATO.compare_by_identity
   end
-
-  include Rainbows::Rev::Core
   # :startdoc:
 end
+# :enddoc:
+require 'rainbows/rev/core'
+require 'rainbows/rev/client'
+Rainbows::Rev.__send__ :include, Rainbows::Rev::Core
 require 'rainbows/rev/deferred_response'
 require 'rainbows/rev/deferred_chunk_response'