3 # RbYAML::Stream -- for emitting many documents
8 attr_accessor :documents, :options
9 def initialize(opts = {})
23 @documents[ doc_num ] = doc
27 @documents.each(&block)
34 opts[:UseHeader] = true if @documents.length > 1
36 out = Emitter.new( opts )
41 v.to_yaml( :Emitter => out )