RDOC3.1(1)
π RDOC3.1 β the manual, but make it make sense π
okay bestie, pull up a chair, because this is rdoc3.1, section 1 of the general commands manual, and she is literally the moment. she generates documentation from Ruby script files. that's it, that's the girl. β¨
β¨ NAME β¨
rdoc3.1 β generate documentation from Ruby script files π
π¦ SYNOPSIS π¦
rdoc3.1 [options] [names...]
πΈ DESCRIPTION πΈ
okay so here's the vibe: files get parsed first, and all the info they contain gets collected, and only then does any output get produced. why tho? because that way every cross reference between all the files can actually be resolved. it's giving "let's all get ready together before we walk out the door." π
- if a name is a directory, it gets traversed. she goes in. she looks around. π§
- if you specify no names at all, then every Ruby file in the current directory (and all the subdirectories) gets processed. no cap.
available output formatters, bestie, take notes: chm, html, ri, xml
and if you're like "okay but where does the output even go??" β use this:
rdoc --help-output
lowkey important: yes, that's rdoc, exactly like the original says. keep it.
π OPTIONS π
the main character section. every single one, in order, no skipping, periodt.
--accessor,-Aaccessorname[,..] β a comma separated list of extra class methods that should be treated likeattr_readerand friends. you can repeat this option. each accessorname can have=texttacked onto it, and in that case that text shows up wherever ther/w/rwwould show up for normal accessors. iconic behavior honestly.--all,-aβ include all methods in the output, not just the public ones. she's nosy now. π--charset,-ccharset β specifies the HTML character-set.--debug,-Dβ displays lots on internal stuff. π prepare yourself.--diagram,-dβ generate diagrams showing modules and classes. you needdotV1.8.6 or later for this to work correctly. Dot is available from <URL:http://www.research.att.com/sw/tools/graphviz/>.--exclude,-xpattern β do not process files or directories matching pattern. but bestie, files given explicitly on the command line will never be excluded. them's the rules. π«Ά--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. β¨--fileboxes,-Fβ classes get put in boxes, and those boxes represent the files where these classes reside. classes shared between more than one file get shown with a list of the files that share them. it gets silently discarded if--diagramisn't given. also, it's Experimental. β οΈ--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 omit this option,pngis used. requires--diagram. π--include,-idir[,dir...] β set (or add to) the list of directories to be searched when satisfying:include:requests. can be used more than once.--inline-source,-Sβ show method source code inline, rather than via a popup link.--line-numbers,-Nβ include line numbers in the source code.--main,-mname β name will be the initial page displayed. she's the first thing they see. main character energy fr fr. π--merge,-Mβ when creating ri output, merge processed classes into previously documented classes of the name name.--one-file,-1β put all the output into a single file. minimalism era.--op,-odir β set the output directory.--opname,-nname β set the name of the output. has no effect for HTML. π--promiscuous,-pβ when documenting a file that contains a module or class also defined in other files, show all the stuff for that module/class in each file's page. by default, it only shows the stuff defined in that particular file. she said "share everything." π--quiet,-qβ don't show progress as we parse. shhh. π€«--ri,-rβ generate output for use by'ri.'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 by'ri.'the files are stored in a site-wide directory, making them accessible to others, so special privileges are needed. π₯--ri-system,-Yβ generate output for use by'ri.'the files are stored in a system-level directory, making 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. glow up via external CSS π--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 contain a'%s', the filename will be appended to it.
β οΈ real talk:--fileboxesgets silently discarded without--diagram, and it's marked Experimental.--image-formatrequires--diagram. don't come for me, come for the manpage. π«Ά
that's the whole page, bestie β no notes, no skips, every flag accounted for. π¦
this was RDOC3.1(1), dated July 2014, and it's the source/version energy we're sending off with. bye pookie, go document something πβ¨
π¦ where this page comes from
- debian bookworm: ruby3.1 3.1.2-7+deb12u1 Β· 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