require "singleton" module MessageQueue module Serializers class Serializer include Singleton class << self def load(string, options = {}) instance.load(string, options) end def dump(object, options = {}) instance.dump(object, options) end end end end end