Sha256: b90c2b54560bfd575d1a5258307ce4f8c59a7fb68bcdd37e32d9ed0d3f99ceab

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

module Qwirk
  module MarshalStrategy
    module String
      extend self

      def marshal_type
        :text
      end

      def to_sym
        :string
      end

      def marshal(object)
        object.to_s
      end

      def unmarshal(msg)
        msg
      end

      MarshalStrategy.register(self)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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