lib/message_queue.rb
# Internal: Load a serializer by name
#
# Returns the serializer or nil if it can't find it
Load a serializer by name
Returns the serializer or nil if it can't find it
Load a serializer by name Returns the serializer or nil if it can ' t find it
def load_serializer(name)
    SERIALIZERS.each do |s|
      if s.to_s == name.to_s
        require_relative "message_queue/serializers/#{name}"
        klass_name = klass_name_for(name)
        return MessageQueue::Serializers.const_get(klass_name)
      end
    end
    nil
  end
def load_serializer ( name ) SERIALIZERS . each do | s | if s . to_s == name . to_s require_relative "message_queue/serializers/#{name}" klass_name = klass_name_for ( name ) return MessageQueue :: Serializers . const_get ( klass_name ) end end nil end
Internal: Load a serializer by name
Returns the serializer or nil if it can't find it
Internal : Load a serializer by name Returns the serializer or nil if it can ' t find it
name
<not_specific>