This class works in conjunction with Psych::Parser to build an in-memory parse tree that represents a YAML document.
Example
parser = Psych::Parser.new Psych::TreeBuilder.new
parser.parse('--- foo')
tree = parser.handler.root
See Psych::Handler for documentation on the event methods used in this class.
Methods
    - A
 - E
 - N
 - S
 
Attributes
      | [R] | root | Returns the root node for the built tree  | 
          
Class Public methods
      
        
            
              new()
            
            Link
          
          
          
            Create a new TreeBuilder instance
Instance Public methods
      
        
            
              alias(anchor)
            
            Link
          
          
          
            
            
              end_document(implicit_end = !streaming?)
            
            Link
          
          
          
            Handles #end_document
events with version, tag_directives, and
implicit styling.
            
              end_stream()
            
            Link
          
          
          
            
            
              scalar(value, anchor, tag, plain, quoted, style)
            
            Link
          
          
          
            
            
              start_document(version, tag_directives, implicit)
            
            Link
          
          
          
            Handles #start_document events
with version, tag_directives, and
implicit styling.