lib/message_queue.rb
# Internal: Load an adapter by name
#
# Returns the adapter or nil if it can't find it
Load an adapter by name
Returns the adapter or nil if it can't find it
Load an adapter by name Returns the adapter or nil if it can ' t find it
def load_adapter(name)
    ADAPTERS.each do |a|
      if a.to_s == name.to_s
        require_relative "message_queue/adapters/#{name}"
        klass_name = klass_name_for(name)
        return MessageQueue::Adapters.const_get(klass_name)
      end
    end
    nil
  end
def load_adapter ( name ) ADAPTERS . each do | a | if a . to_s == name . to_s require_relative "message_queue/adapters/#{name}" klass_name = klass_name_for ( name ) return MessageQueue :: Adapters . const_get ( klass_name ) end end nil end
Internal: Load an adapter by name
Returns the adapter or nil if it can't find it
Internal : Load an adapter by name Returns the adapter or nil if it can ' t find it
name
<not_specific>