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