Sha256: 4136b6b5790bc11ad8a0b70a13480fbc587ebac1fdfe2f655646f729105db4eb

Contents?: true

Size: 339 Bytes

Versions: 7

Compression:

Stored size: 339 Bytes

Contents

module Qwirk
  module MarshalStrategy
    module YAML
      extend self

      def marshal_type
        :text
      end

      def to_sym
        :yaml
      end

      def marshal(object)
        object.to_yaml
      end

      def unmarshal(msg)
        ::YAML.load(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/yaml.rb
qwirk-0.2.3 lib/qwirk/marshal_strategy/yaml.rb
qwirk-0.2.2 lib/qwirk/marshal_strategy/yaml.rb
qwirk-0.2.1 lib/qwirk/marshal_strategy/yaml.rb
qwirk-0.2.0 lib/qwirk/marshal_strategy/yaml.rb
qwirk-0.1.0 lib/qwirk/marshal_strategy/yaml.rb
qwirk-0.0.1 lib/qwirk/marshal_strategy/yaml.rb