module VCR::Cassette::Serializers::YAML
The YAML serializer. This will use either Psych or Syck, which ever your ruby interpreter defaults to. You can also force VCR to use Psych or Syck by using one of those serializers.
Constants
- ENCODING_ERRORS
-
@private
Public Instance Methods
Source
# File lib/vcr/cassette/serializers/yaml.rb, line 41 def deserialize(string) handle_encoding_errors do ::YAML.load(string) end end
Source
# File lib/vcr/cassette/serializers/yaml.rb, line 23 def file_extension "yml" end
The file extension to use for this serializer.
@return [String] “yml”
Source
# File lib/vcr/cassette/serializers/yaml.rb, line 31 def serialize(hash) handle_encoding_errors do ::YAML.dump(hash) end end