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

Methods

Public Instance methods

A callback to encode the collection in the YAML stream

@param [add] coder

  handles adding the values to the output

@return [undefined]

@api public

Serialize the collection to YAML

@example

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

@param [Hash] options

@return [String]

@api public

[Validate]