class Psych::Handlers::DocumentStream

:nodoc:

def end_document implicit_end = !streaming?

def end_document implicit_end = !streaming?
  @last.implicit_end = implicit_end
  @block.call pop
end

def initialize &block

:nodoc:
def initialize &block
  super
  @block = block
end

def start_document version, tag_directives, implicit

def start_document version, tag_directives, implicit
  n = Nodes::Document.new version, tag_directives, implicit
  push n
end