class Psych::TreeBuilder

def end_document implicit_end = !streaming?

See Psych::Handler#start_document

and +implicit+ styling.
Handles end_document events with +version+, +tag_directives+,
##
def end_document implicit_end = !streaming?
  @last.implicit_end = implicit_end
  pop
end