commit 056c91e7b927247d65bcbff0629f31267882b3c7
parent c003b9a3dfcebda36c396ea29d96de84926d09dc
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date: Sat, 5 Jun 2010 16:27:28 -0700
declare redwood module
Diffstat:
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/lib/sup/client.rb b/lib/sup/client.rb
@@ -1,6 +1,8 @@
require 'sup/protocol'
-class Redwood::Client < EM::P::RedwoodClient
+module Redwood
+
+class Client < EM::P::RedwoodClient
def initialize *a
@next_tag = 1
@cbs = {}
@@ -86,3 +88,5 @@ class Redwood::Client < EM::P::RedwoodClient
cb[type, tag, args]
end
end
+
+end
diff --git a/lib/sup/server.rb b/lib/sup/server.rb
@@ -1,6 +1,8 @@
require 'sup/protocol'
-class Redwood::Server < EM::P::RedwoodServer
+module Redwood
+
+class Server < EM::P::RedwoodServer
def receive_message type, tag, params
if respond_to? :"request_#{type}"
send :"request_#{type}", tag, params
@@ -108,3 +110,5 @@ private
end
end
end
+
+end