diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-09 04:39:54 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-10 08:20:27 +0000 |
commit | 704f843054f3ca32941d42972a1c7d1b144d06ad (patch) | |
tree | 2e7fea212988a9a67b7cdfab3ef939a221448e65 /lib/rainbows/fiber | |
parent | 598525843ee1d120fd9878011ca2b6328c2cf95f (diff) | |
download | rainbows-704f843054f3ca32941d42972a1c7d1b144d06ad.tar.gz |
There's actually no reason we can't have these methods in Rainbows::Configurator where it's easier to document nowadays.
Diffstat (limited to 'lib/rainbows/fiber')
-rw-r--r-- | lib/rainbows/fiber/base.rb | 1 | ||||
-rw-r--r-- | lib/rainbows/fiber/coolio/methods.rb | 1 | ||||
-rw-r--r-- | lib/rainbows/fiber/io.rb | 1 |
3 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/fiber/base.rb b/lib/rainbows/fiber/base.rb index a4f2341..00af214 100644 --- a/lib/rainbows/fiber/base.rb +++ b/lib/rainbows/fiber/base.rb @@ -64,6 +64,7 @@ module Rainbows::Fiber::Base end def self.setup(klass, app) + Rainbows::Client.__send__(:include, Rainbows::Fiber::IO::Methods) require 'rainbows/fiber/body' Rainbows::Client.__send__(:include, Rainbows::Fiber::Body) self.const_set(:APP, app) diff --git a/lib/rainbows/fiber/coolio/methods.rb b/lib/rainbows/fiber/coolio/methods.rb index 64b0ee6..2e664ff 100644 --- a/lib/rainbows/fiber/coolio/methods.rb +++ b/lib/rainbows/fiber/coolio/methods.rb @@ -38,7 +38,6 @@ end [ Rainbows::Fiber::IO, - Rainbows::Client, # the next two trigger autoload, ugh, oh well... Rainbows::Fiber::IO::Socket, Rainbows::Fiber::IO::Pipe diff --git a/lib/rainbows/fiber/io.rb b/lib/rainbows/fiber/io.rb index 3005d96..0eed4ad 100644 --- a/lib/rainbows/fiber/io.rb +++ b/lib/rainbows/fiber/io.rb @@ -101,7 +101,6 @@ end # :stopdoc: require 'rainbows/fiber/io/methods' require 'rainbows/fiber/io/compat' -Rainbows::Client.__send__(:include, Rainbows::Fiber::IO::Methods) class Rainbows::Fiber::IO include Rainbows::Fiber::IO::Compat include Rainbows::Fiber::IO::Methods |