module Psych::Streaming

def register target, obj

def register target, obj
end

def start encoding = Nodes::Stream::UTF8

Start streaming using +encoding+
##
def start encoding = Nodes::Stream::UTF8
  super.tap { yield self if block_given?  }
ensure
  finish if block_given?
end