module AMQP::Entity
AMQ entities, as implemented by AMQP, have callbacks and can run them when necessary.
@note Exchanges and queues implementation is based on this class.
@abstract
Attributes
callbacks[R]
@return [Array<#call>]
Public Class Methods
new(connection)
click to toggle source
# File lib/amqp/entity.rb, line 53 def initialize(connection) @connection = connection # Be careful with default values for #ruby hashes: h = Hash.new(Array.new); h[:key] ||= 1 # won't assign anything to :key. MK. @callbacks = Hash.new end