# File lib/dm-serializer/to_yaml.rb, line 49
    def encode_with(coder, options = {})
      coder.tag   = to_yaml_type  if coder.respond_to?(:tag=)
      coder.style = to_yaml_style if coder.respond_to?(:style=)

      methods = []

      methods.concat properties_to_serialize(options).map { |property| property.name }
      methods.concat Array(options[:methods])

      methods.each do |method|
        coder.add(method.to_s, __send__(method))
      end
    end