# File lib/amqp/deprecated/rpc.rb, line 68 def initialize(channel, queue, obj = nil) @name = queue @channel = channel @channel.register_rpc(self) if @obj = normalize(obj) @delegate = Server.new(channel, queue, @obj) else @delegate = Client.new(channel, queue) end end