Module: ActiveMessaging::Adapters::Kestrel

Defined in:
lib/active_messaging/adapters/kestrel.rb

Overview

This module contains code to integrate the ActiveMessaging framework with a kestrel message queue server.

Defined Under Namespace

Classes: Connection, Message, SimpleRetry

Constant Summary collapse

QUEUE_NAME_NORMALIZATIONS =
{
  '/' => '__4S__',
  '.' => '__D0T__',
  '~' => '__T1L__'
}

Instance Method Summary collapse

Instance Method Details

#to_class(class_name, initial_scope = Kernel) ⇒ Object

Resolve the provided string into a class object



22
23
24
# File 'lib/active_messaging/adapters/kestrel.rb', line 22

def to_class(class_name, initial_scope = Kernel)
  class_name.split('::').inject(initial_scope) { |scope, const_name| scope.const_get(const_name) }
end