class Psych::Stream
end
em.push(:foo => ‘bar’)
stream.start do |em|
stream = Psych::Stream.new($stdout)
is called, so you can do this form:
Psych::Stream#start will take a block and ensure that Psych::Stream#finish
YAML will be immediately emitted to $stdout with no buffering.
stream.finish
stream.push({:foo => ‘bar’})
stream.start
stream = Psych::Stream.new($stdout)
Here is an example use:
but send it straight to an IO.
Psych::Stream is a streaming YAML emitter. It will not buffer your YAML,
##