Module: Ragnar

Defined in:
lib/ragnar/connector.rb,
lib/ragnar.rb,
lib/ragnar/version.rb,
lib/ragnar/exchange.rb

Overview

Provide a simple connector piece that runs EM and passes through AMQP connection options

Defined Under Namespace

Classes: Connector, Exchange

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.exchange(type, name, options = {}) {|x| ... } ⇒ Object

Yields:

  • (x)


8
9
10
11
12
# File 'lib/ragnar.rb', line 8

def exchange type, name, options={}
  x = Ragnar::Exchange.new(type, name, options)
  yield(x) if block_given?
  x
end