Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #8 from mhat/6c6df1b9e9ff461f438356e4551cbe9f4f92b1d3

Fanouts
  • Loading branch information...
commit f0ba667069e2a508e2c1244fb69c9937c166d4c5 2 parents 54ce227 + 6c6df1b
@famoseagle authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/carrot.rb
View
4 lib/carrot.rb
@@ -61,6 +61,10 @@ def headers(name = 'amq.match', opts = {})
exchanges[name] ||= AMQP::Exchange.new(self, :headers, name, opts)
end
+ def fanout(name = 'amq.fanout', opts = {})
+ exchanges[name] ||= AMQP::Exchange.new(self, :fanout, name, opts)
+ end
+
def exchanges
@exchanges ||= {}
end
Please sign in to comment.
Something went wrong with that request. Please try again.