Sha256: 54d87d210f5293bbe441c65c83b4538f722a3ef5c677bfab3aa2c915dd405f7e

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

require 'yaml'

module VCR
  class Cassette
    class Serializers
      module YAML
        extend self

        def file_extension
          "yml"
        end

        def serialize(hash)
          ::YAML.dump(hash)
        end

        def deserialize(string)
          ::YAML.load(string)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vcr-2.0.0.rc1 lib/vcr/cassette/serializers/yaml.rb
vcr-2.0.0.beta2 lib/vcr/cassette/serializers/yaml.rb