{
    "content": [
        {
            "type": "text",
            "text": "# RDoc::Parser (ri)\n\n## Section Outline\n\n- **RDoc::Parser < Object** (32 lines)\n- **Class methods:** (13 lines)\n- **Instance methods:** (3 lines)\n- **Attributes:** (3 lines)\n\n## Full Content\n\n### RDoc::Parser < Object\n\n(from gem rdoc-7.2.0)\n------------------------------------------------------------------------\nA parser is simple a class that subclasses RDoc::Parser and implements\n#scan to fill in an RDoc::TopLevel with parsed data.\n\nThe initialize method takes an RDoc::TopLevel to fill with parsed\ncontent, the name of the file to be parsed, the content of the file, an\nRDoc::Options object and an RDoc::Stats object to inform the user of\nparsed items.  The scan method is then called to parse the file and must\nreturn the RDoc::TopLevel object.  By calling super these items will be\nset for you.\n\nIn order to be used by RDoc the parser needs to register the file\nextensions it can parse.  Use ::parsefilesmatching to register\nextensions.\n\nrequire 'rdoc'\n\nclass RDoc::Parser::Xyz < RDoc::Parser\nparsefilesmatching /\\.xyz$/\n\ndef initialize toplevel, filename, content, options, stats\nsuper\n\n# extra initialization if needed\nend\n\ndef scan\n# parse file and fill in @toplevel\nend\nend\n------------------------------------------------------------------------\n\n### Class methods:\n\naliasextension\nbinary?\ncanparse\ncanparsebyname\ncheckmodeline\nfor\nnew\nparsefilesmatching\nparsers\nremovemodeline\nusemarkup\nzip?\n\n### Instance methods:\n\nfilename\nhandletabwidth\n\n### Attributes:\n\nattrreader filename\nattrreader parsers\n\n"
        }
    ],
    "structuredContent": {
        "command": "RDoc::Parser",
        "section": "",
        "mode": "ri",
        "summary": null,
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "RDoc::Parser < Object",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "Class methods:",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "Instance methods:",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "Attributes:",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}