{
    "mode": "ri",
    "parameter": "Psych::TreeBuilder",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/ri/Psych%3A%3ATreeBuilder/json",
    "generated": "2026-06-15T14:58:31Z",
    "sections": {
        "Psych::TreeBuilder < Psych::Handler": {
            "content": "(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",
            "subsections": [
                {
                    "name": "Example",
                    "content": "parser = 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------------------------------------------------------------------------"
                }
            ]
        },
        "Class methods:": {
            "content": "new\n",
            "subsections": []
        },
        "Instance methods:": {
            "content": "alias\nenddocument\nendstream\neventlocation\npop\npush\nroot\nscalar\nsetendlocation\nsetlocation\nsetstartlocation\nstartdocument\nstartstream\n",
            "subsections": []
        },
        "Attributes:": {
            "content": "attrreader root\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}