diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-07 20:09:50 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-07 20:12:22 -0800 |
commit | 7d07c36f1da30af054d78deed5e87f29832d6f6b (patch) | |
tree | 5b466654f6439dffc751889f624124d9121827cc /lib/rainbows/ev_core.rb | |
parent | 31fe6e621ac3d84a091b468f26118d2226716e9b (diff) | |
download | rainbows-7d07c36f1da30af054d78deed5e87f29832d6f6b.tar.gz |
It'll make development of future ev_core-derived things easier, hopefully.
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r-- | lib/rainbows/ev_core.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index 244e726..017fe5c 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -8,6 +8,10 @@ module Rainbows include Rainbows::Const G = Rainbows::G + def self.setup(klass) + klass.const_set(:APP, G.server.app) + end + def post_init @remote_addr = ::TCPSocket === @_io ? @_io.peeraddr.last : LOCALHOST @env = {} |