Sha256: 4af1f8038eb0635bea4dabea0b1c56d5a440014c048217b2bc8bb36abe14ecc6

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
message_queue-0.0.4 lib/message_queue/serializer.rb
message_queue-0.0.3 lib/message_queue/serializer.rb
message_queue-0.0.2 lib/message_queue/serializer.rb