module VCR::Cassette::Serializers::YAML

def deserialize(string)

Returns:
  • (Hash) - the deserialized object

Parameters:
  • string (String) -- the YAML string
def deserialize(string)
  handle_encoding_errors do
    handle_syntax_errors do
      if ::YAML.respond_to?(:unsafe_load)
        ::YAML.unsafe_load(string)
      else
        ::YAML.load(string)
      end
    end
  end
end