Object
@private
# File lib/amqp/deprecated/rpc.rb, line 131 131: def initialize(channel, queue_name, impl) 132: @channel = channel 133: @exchange = AMQP::Exchange.default(@channel) 134: @queue = @channel.queue(queue_name) 135: @impl = impl 136: 137: @handlers = Hash.new 138: @id = "client_identifier_#{rand(1_000_000)}" 139: 140: @queue.subscribe(:ack => true) do |header, payload| 141: selector, *args = Marshal.load(payload) 142: result = @impl.__send__(selector, *args) 143: 144: respond_to(header, result) if header.to_hash[:reply_to] 145: header.ack 146: end 147: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.