Module DataMapper::Serializer::ValidationErrors::ToYaml
In: lib/dm-serializer/to_yaml.rb

Methods

Public Instance methods

A callback to encode the errors in the YAML stream

@param [add] coder

  handles adding the values to the output

@return [undefined]

@api public

Serialize the errors to YAML

@example

  yaml = errors.to_yaml  # => a valid YAML string

@param [Hash] options

@return [String]

@api public

[Validate]