# File lib/mq/queue.rb, line 109 def bind exchange, opts = {} exchange = exchange.respond_to?(:name) ? exchange.name : exchange @bindings[exchange] = opts @mq.callback{ @mq.send Protocol::Queue::Bind.new({ :queue => name, :exchange => exchange, :routing_key => opts[:key], :nowait => true }.merge(opts)) } self end