module VCR::Cassette::Serializers::Psych
The Psych serializer. Psych is the new YAML engine in ruby 1.9.
Constants
- ENCODING_ERRORS
-
@private
Public Instance Methods
Source
# File lib/vcr/cassette/serializers/psych.rb, line 39 def deserialize(string) handle_encoding_errors do ::Psych.load(string) end end
Source
# File lib/vcr/cassette/serializers/psych.rb, line 21 def file_extension "yml" end
The file extension to use for this serializer.
@return [String] “yml”
Source
# File lib/vcr/cassette/serializers/psych.rb, line 29 def serialize(hash) handle_encoding_errors do ::Psych.dump(hash) end end