RDOC3.0(1)
β¨ NAME β¨
okay bestie, meet rdoc3.0 β the icon that generates documentation from Ruby script files π she's the General Commands Manual girlie and she eats, no cap.
π SYNOPSIS π
rdoc3.0 [options] [names...]
π DESCRIPTION π
so the vibe is: all your files get parsed first, and everything they contain gets collected, before any output is produced. why? because that way all the cross references between every single file can actually be resolved. it's giving patient queen energy π
if a name you pass is a directory, she traverses it, fr. and if you specify no names at all? she just processes every Ruby file in the current directory β plus subdirectories, because she's thorough like that πΈ
the available output formatters are literally: chm, html, ri, xml β¨
and for the tea on where the output actually goes, run:
rdoc --help-output
π₯ OPTIONS π₯
--accessor,-Aaccessorname[,..] β a comma separated list of extra class methods that should be treated like'attr_reader'and friends. you can repeat this option, she doesn't mind π each accessorname can have'=text'tacked onto the end, and if it does, that text shows up wherever the r/w/rw would show up for normal accessors. cute, right?--all,-aβ include all methods in the output, not just the public ones. everyone gets their moment π--charset,-ccharset β specifies the HTML character-set.--debug,-Dβ displays lots on internal stuff. like, a LOT. she's yapping π£οΈ--diagram,-dβ generate diagrams showing modules and classes. ngl you need dot V1.8.6 or later for the--diagramoption 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 heads up: files given explicitly on the command line will never be excluded. she said what she said.--extension,-Enew = old β treat files ending with.newas if they ended with.old. so using'-E cgi=rb'will causexxx.cgito be parsed as a Ruby file π¦--fileboxes,-Fβ classes get put in boxes, and those boxes represent files, and that's where those classes reside. classes shared between more than one file are shown with a list of the files that share them. silently discarded if--diagramisn't given. Experimental. π--fmt,-fformatname β set the output formatter (see below).--help,-hβ print usage. the classic.--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, she's flexible π--inline-source,-Sβ show method source code inline, rather than via a popup link. no more clicking, it's all right there β¨--line-numbers,-Nβ include line numbers in the source code.--main,-mname β name will be the initial page displayed. main character energy, literally.--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. one file, one vibe π--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 that's also defined in other files, show all the stuff for that module/class on each file's page. by default she only shows stuff defined in that particular file. (yes she really called it that π)--quiet,-qβ don't show progress as we parse. shhh π€«--ri,-rβ generate output for use by'ri.'the files are stored in the'.rdoc'directory 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 this option is specified.--style,-sstylesheet-url β specifies the URL of a separate stylesheet. serve looks π--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 was a lot of options, but you got this bestie π
and that's the whole page, fr fr β this one's from July 2014, tagged RDOC3.0(1), straight outta the General Commands Manual π¦ slay, go document something iconic β¨π
π¦ where this page comes from
- ubuntu jammy: ruby3.0 3.0.2-7ubuntu2 Β· BSD-2-Clause OR Ruby
- ubuntu jammy: ruby3.0 3.0.2-7ubuntu2.13 Β· 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