{
    "mode": "ri",
    "parameter": "RDoc::Task",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/ri/RDoc%3A%3ATask/json",
    "generated": "2026-06-15T13:32:02Z",
    "sections": {
        "RDoc::Task < Rake::TaskLib": {
            "content": "(from gem rdoc-7.2.0)\n------------------------------------------------------------------------\nRDoc::Task creates the following rake tasks to generate and clean up\nRDoc output:\n\nrdoc:\nMain task for this RDoc task.\n\n\nclobberrdoc:\nDelete all the rdoc files.  This target is automatically added to the\nmain clobber target.\n\n\nrerdoc:\nRebuild the rdoc files from scratch, even if they are not out of date.\n\n\nrdoc:coverage:\nPrint RDoc coverage report for all rdoc files.\n\n\nSimple Example:\n\nrequire 'rdoc/task'\n\nRDoc::Task.new do |rdoc|\nrdoc.main = \"README.md\"\nrdoc.rdocfiles.include(\"README.md\", \"lib//*.rb\")\nend\n\nThe rdoc object passed to the block is an RDoc::Task object. See the\nattributes list for the RDoc::Task class for available customization\noptions.\n",
            "subsections": [
                {
                    "name": "Specifying different task names",
                    "content": "You may wish to give the task a different name, such as if you are\ngenerating two sets of documentation.  For instance, if you want to have\na development set of documentation including private methods:\n\nrequire 'rdoc/task'\n\nRDoc::Task.new :rdocdev do |rdoc|\nrdoc.main = \"README.md\"\nrdoc.rdocfiles.include(\"README.md\", \"lib//*.rb\")\nrdoc.options << \"--all\"\nend\n\nThe tasks would then be named :rdocdev,\n:clobberrdocdev, and :rerdocdev.\n\nIf you wish to have completely different task names, then pass a Hash as\nfirst argument. With the :rdoc, :clobberrdoc and :rerdoc options, you\ncan customize the task names to your liking.\n\nFor example:\n\nrequire 'rdoc/task'\n\nRDoc::Task.new(:rdoc => \"rdoc\", :clobberrdoc => \"rdoc:clean\",\n:rerdoc => \"rdoc:force\")\n\nThis will create the tasks :rdoc, :rdoc:clean, :rdoc:force, and\n:rdoc:coverage.\n------------------------------------------------------------------------"
                }
            ]
        },
        "Class methods:": {
            "content": "new\n",
            "subsections": []
        },
        "Instance methods:": {
            "content": "beforerunningrdoc\nchecknames\nclobbertaskdescription\nclobbertaskname\ncoveragetaskdescription\ncoveragetaskname\ndefaults\ndefine\nexternal\ngenerator\nmain\nmarkup\nname\noptionlist\noptions\nrdocdir\nrdocfiles\nrdoctarget\nrdoctaskdescription\nrdoctaskname\nrerdoctaskdescription\nrerdoctaskname\ntemplate\ntitle\n",
            "subsections": []
        },
        "Attributes:": {
            "content": "attraccessor external\nattraccessor generator\nattraccessor main\nattraccessor markup\nattraccessor name\nattraccessor options\nattraccessor rdocdir\nattraccessor rdocfiles\nattraccessor template\nattraccessor title\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}