{
    "content": [
        {
            "type": "text",
            "text": "# Psych::TreeBuilder (ri)\n\n## Section Outline\n\n- **Psych::TreeBuilder < Psych::Handler** (5 lines) — 1 subsections\n  - Example (7 lines)\n- **Class methods:** (2 lines)\n- **Instance methods:** (14 lines)\n- **Attributes:** (2 lines)\n\n## Full Content\n\n### Psych::TreeBuilder < Psych::Handler\n\n(from gem psych-5.4.0)\n------------------------------------------------------------------------\nThis class works in conjunction with Psych::Parser to build an in-memory\nparse tree that represents a YAML document.\n\n#### Example\n\nparser = Psych::Parser.new Psych::TreeBuilder.new\nparser.parse('--- foo')\ntree = parser.handler.root\n\nSee Psych::Handler for documentation on the event methods used in this\nclass.\n------------------------------------------------------------------------\n\n### Class methods:\n\nnew\n\n### Instance methods:\n\nalias\nenddocument\nendstream\neventlocation\npop\npush\nroot\nscalar\nsetendlocation\nsetlocation\nsetstartlocation\nstartdocument\nstartstream\n\n### Attributes:\n\nattrreader root\n\n"
        }
    ],
    "structuredContent": {
        "command": "Psych::TreeBuilder",
        "section": "",
        "mode": "ri",
        "summary": null,
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "Psych::TreeBuilder < Psych::Handler",
                "lines": 5,
                "subsections": [
                    {
                        "name": "Example",
                        "lines": 7
                    }
                ]
            },
            {
                "name": "Class methods:",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "Instance methods:",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "Attributes:",
                "lines": 2,
                "subsections": []
            }
        ]
    }
}