Module: AMQP
- Defined in:
- lib/moqueue/overloads.rb
Class Attribute Summary collapse
-
.closing ⇒ Object
(also: closing?)
readonly
Returns the value of attribute closing.
Class Method Summary collapse
Class Attribute Details
.closing ⇒ Object (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 |
.stop ⇒ Object
52 53 54 55 56 |
# File 'lib/moqueue/overloads.rb', line 52 def self.stop @closing = true yield if block_given? @closing = false end |