Method: AMQP::Queue#publish
- Defined in:
- lib/amqp/queue.rb
#publish(data, opts = {}) ⇒ Object
Deprecated.
Note:
This method will be removed before 1.0 release
Don’t use this method. It is a leftover from very early days and it ruins the whole point of exchanges/queue separation.
860 861 862 |
# File 'lib/amqp/queue.rb', line 860 def publish(data, opts = {}) exchange.publish(data, opts.merge(:routing_key => self.name)) end |