Method: Bunny::Channel#topic
- Defined in:
- lib/bunny/channel.rb
#topic(name, opts = {}) ⇒ Bunny::Exchange
Declares a topic exchange or looks it up in the cache of previously declared exchanges.
390 391 392 |
# File 'lib/bunny/channel.rb', line 390 def topic(name, opts = {}) find_exchange(name) || Exchange.new(self, :topic, name, opts) end |