RDOC3.2(1)
π NAME π
rdoc3.2 β bestie, this thing generates documentation from Ruby script files. That's the whole vibe. β¨
πΈ SYNOPSIS πΈ
rdoc3.2 [options] [names...]
π DESCRIPTION π
okay so here's the tea π β files get parsed first, and all the info they contain gets collected, and only after all that does any output show up. Why? Because that way cross references between all the files can actually be resolved. it's giving teamwork. it's giving "we figure it out together". π
If a name is a directory, it gets traversed. If you specify no names at all, then every Ruby file in the current directory (and its subdirectories) gets processed. no cap.
Available output formatters: chm, html, ri, xml
And if you're wondering where the output even goes, literally just run this:
rdoc --help-output
that's it. that's the whole thing. π¦
β¨ OPTIONS β¨
--accessor,-Aaccessorname[,..] β a comma separated list of extra class methods that should be treated likeattr_readerand friends. You can repeat this option. Eachaccessornamecan have=texttacked onto the end, and when it does, that text shows up wherever ther/w/rwwould normally appear for regular accessors. iconic.--all,-aβ include all methods in the output, not just the public ones. let them all shine π--charset,-ccharset β specifies the HTML character-set.--debug,-Dβ displays lots on internal stuff. it's giving "show me everything".--diagram,-dβ generate diagrams showing modules and classes. heads up bestie: you needdotV1.8.6 or later for--diagramto work correctly. Dot is available from<URL:http://www.research.att.com/sw/tools/graphviz/>.--exclude,-xpattern β don't process files or directories matching pattern. π« Files given explicitly on the command line will never be excluded, periodt.--extension,-Enew=old β treat files ending with.newas if they ended with.old. So using-E cgi=rbwill causexxx.cgito be parsed as a Ruby file. little outfit change, same file. π--fileboxes,-Fβ classes get put in boxes, and those boxes represent the files where the classes live. Classes shared between more than one file are shown with a list of the files sharing them. It gets silently discarded if--diagramisn't given. also it's Experimental, so, yk. π--fmt,-fformatname β set the output formatter (see below).--help,-hβ print usage.--help-output,-Oβ explain the various output options.--image-format,-Igif|png|jpg|jpegβ sets the output image format for diagrams. Can bepng,gif,jpeg,jpg. If you skip this option,pngis used. Requires--diagram.--include,-idir[,dir...] β set (or add to) the list of directories searched when satisfying:include:requests. Can be used more than once. π«--inline-source,-Sβ show method source code inline, instead of through a popup link.--line-numbers,-Nβ include line numbers in the source code.--main,-mname β name will be the initial page displayed. main character energy fr π--merge,-Mβ when creatingrioutput, merge processed classes into previously documented classes of the name name.--one-file,-1β put all the output into a single file. all of it. one file. slay.--op,-odir β set the output directory.--opname,-nname β set the name of the output. Has no effect for HTML.--promiscuous,-pβ when you're documenting a file that contains a module or class that's also defined in other files, show all the stuff for that module/class on each file's page. By default, it only shows the stuff defined in that particular file. (yes the name is a lot. we don't talk about it. π)--quiet,-qβ don't show progress as we parse. shhh π€«--ri,-rβ generate output for use byri. The files are stored in the.rdocdirectory under your home directory unless overridden by a subsequent--opparameter, so no special privileges are needed. π«Ά--ri-site,-Rβ generate output for use byri. The files are stored in a site-wide directory, which makes them accessible to others, so special privileges are needed.--ri-system,-Yβ generate output for use byri. The files are stored in a system-level directory, which makes them accessible to others, so special privileges are needed. This option is intended to be used during Ruby installations.--show-hash,-Hβ a name of the form#namein a comment is a possible hyperlink to an instance method name. When displayed, the#is removed unless you specify this option.--style,-sstylesheet-url β specifies the URL of a separate stylesheet.--tab-width,-wn β set the width of tab characters (default8).--template,-Ttemplate-name β set the template used when generating output.--title,-ttext β set text as the title for the output.--version,-vβ display RDoc's version.--webcvs,-Wurl β specify a URL for linking to a web frontend to CVS. If the URL contains a%s, the filename will be appended to it. π
ngl that's a lot of flags and every single one of them is real. no notes. π
okay and that's the whole page bestie!! this one's from the RDOC3.2(1) era, dated July 2014 β yes it's vintage, yes it still ate. General Commands Manual gang, we love you, mwah πππ¦β¨
π¦ where this page comes from
- ubuntu noble: ruby3.2 3.2.3-1build3 Β· BSD-2-Clause OR Ruby
- ubuntu noble: ruby3.2 3.2.3-1ubuntu0.24.04.8 Β· BSD-2-Clause OR Ruby
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms