Sha256: eec9423e2484085b9193069553366cc8a7db52085c7390146c3b3579d8dc539b

Contents?: true

Size: 265 Bytes

Versions: 9

Compression:

Stored size: 265 Bytes

Contents

module ModernTimes
  module MarshalStrategy
    module YAML
      extend self

      def marshal_type
        :text
      end

      def marshal(object)
        object.to_yaml
      end

      def unmarshal(msg)
        ::YAML.load(msg)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
modern_times-0.2.11 lib/modern_times/marshal_strategy/yaml.rb
modern_times-0.2.10 lib/modern_times/marshal_strategy/yaml.rb
modern_times-0.2.9 lib/modern_times/marshal_strategy/yaml.rb
modern_times-0.2.8 lib/modern_times/marshal_strategy/yaml.rb
modern_times-0.2.7 lib/modern_times/marshal_strategy/yaml.rb
modern_times-0.2.6 lib/modern_times/marshal_strategy/yaml.rb
modern_times-0.2.5 lib/modern_times/marshal_strategy/yaml.rb
modern_times-0.2.4 lib/modern_times/marshal_strategy/yaml.rb
modern_times-0.2.3 lib/modern_times/marshal_strategy/yaml.rb