Module: AMQP

Defined in:
lib/moqueue/overloads.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.closingObject (readonly) Also known as: closing?

Returns the value of attribute closing.



44
45
46
# File 'lib/moqueue/overloads.rb', line 44

def closing
  @closing
end

Class Method Details

.connect(*args) ⇒ Object



58
59
# File 'lib/moqueue/overloads.rb', line 58

def self.connect(*args)
end

.start(opts = {}, &block) ⇒ Object



48
49
50
# File 'lib/moqueue/overloads.rb', line 48

def self.start(opts={},&block)
  EM.run(&block)
end

.stopObject



52
53
54
55
56
# File 'lib/moqueue/overloads.rb', line 52

def self.stop
  @closing = true
  yield if block_given?
  @closing = false
end