{
    "mode": "ri",
    "parameter": "RDoc::Parser",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/ri/RDoc%3A%3AParser/json",
    "generated": "2026-06-02T15:55:34Z",
    "sections": {
        "RDoc::Parser < Object": {
            "content": "(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------------------------------------------------------------------------",
            "subsections": []
        },
        "Class methods:": {
            "content": "aliasextension\nbinary?\ncanparse\ncanparsebyname\ncheckmodeline\nfor\nnew\nparsefilesmatching\nparsers\nremovemodeline\nusemarkup\nzip?\n",
            "subsections": []
        },
        "Instance methods:": {
            "content": "filename\nhandletabwidth\n",
            "subsections": []
        },
        "Attributes:": {
            "content": "attrreader filename\nattrreader parsers\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}