Module: AMQP::ProtocolMethodHandlers

Included in:
Channel, Consumer, Exchange, Queue, Session
Defined in:
lib/amqp/entity.rb

Overview

RegisterEntityMixin

Instance Method Summary collapse

Instance Method Details

#handle(klass, &block) ⇒ Object


20
21
22
# File 'lib/amqp/entity.rb', line 20

def handle(klass, &block)
  HandlersRegistry.register(klass, &block)
end

#handlersObject


24
25
26
# File 'lib/amqp/entity.rb', line 24

def handlers
  HandlersRegistry.handlers
end