Class: AMQP::HandlersRegistry

Inherits:
Object
  • Object
show all
Defined in:
lib/amqp/handlers_registry.rb

Class Method Summary collapse

Class Method Details

.find(klass) ⇒ Object



19
20
21
# File 'lib/amqp/handlers_registry.rb', line 19

def self.find(klass)
  @@handlers[klass]
end

.handlersObject



23
24
25
# File 'lib/amqp/handlers_registry.rb', line 23

def self.handlers
  @@handlers
end

.register(klass, &block) ⇒ Object Also known as: handle



12
13
14
# File 'lib/amqp/handlers_registry.rb', line 12

def self.register(klass, &block)
  @@handlers[klass] = block
end