Sha256: 010ee7203b384053b0bed0fc5786cad9712f3451dd9128b14f3f03e4c272ddb3

Contents?: true

Size: 368 Bytes

Versions: 6

Compression:

Stored size: 368 Bytes

Contents

module Qwirk
  module MarshalStrategy
    # Should only be used with InMemory strategy
    module None
      extend self

      def marshal_type
        :bytes
      end

      def to_sym
        :none
      end

      def marshal(object)
        object
      end

      def unmarshal(msg)
        msg
      end

      MarshalStrategy.register(self)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qwirk-0.2.4 lib/qwirk/marshal_strategy/none.rb
qwirk-0.2.3 lib/qwirk/marshal_strategy/none.rb
qwirk-0.2.2 lib/qwirk/marshal_strategy/none.rb
qwirk-0.2.1 lib/qwirk/marshal_strategy/none.rb
qwirk-0.2.0 lib/qwirk/marshal_strategy/none.rb
qwirk-0.1.0 lib/qwirk/marshal_strategy/none.rb