Module: AMQP::ProtocolMethodHandlers
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 |
#handlers ⇒ Object
24 25 26 |
# File 'lib/amqp/entity.rb', line 24 def handlers HandlersRegistry.handlers end |