lib/mq/rpc.rb in amqp-0.5.2 vs lib/mq/rpc.rb in amqp-0.5.3

- old
+ new

@@ -1,16 +1,9 @@ -unless defined?(BlankSlate) - class BlankSlate < BasicObject; end if defined?(BasicObject) - - class BlankSlate - instance_methods.each { |m| undef_method m unless m =~ /^__/ } - end -end - class MQ class RPC < BlankSlate def initialize mq, queue, obj = nil @mq = mq + @mq.rpcs[queue] ||= self if obj @obj = case obj when ::Class obj.new \ No newline at end of file