Sha256: dd27841023de2f1cf7624a5c16b8ede2cdd112f525e89b6a4d6eb91d46a21e8c

Contents?: true

Size: 301 Bytes

Versions: 13

Compression:

Stored size: 301 Bytes

Contents

module ModernTimes
  module MarshalStrategy
    module String
      extend self

      def marshal_type
        :text
      end

      def marshal(object)
        object.to_s
      end

      def unmarshal(msg)
        msg
      end

      MarshalStrategy.register(:string => self)

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
modern_times-0.3.12 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.11 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.10 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.9 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.8 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.7 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.6 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.5 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.4 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.3 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.2 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.1 lib/modern_times/marshal_strategy/string.rb
modern_times-0.3.0 lib/modern_times/marshal_strategy/string.rb