RDOC3.3(1)
β¨ NAME β¨
okay so this is rdoc3.3 π it's the tool that turns your Ruby script files into docs. the whole vibe is "generate documentation from Ruby script files" and it's giving main character energy π
πΈ SYNOPSIS πΈ
rdoc3.3 [options] [names...]
π¦ DESCRIPTION π¦
okay bestie, listen. rdoc doesn't output anything right away. it parses every file first and collects all the info, then it spits out the output. that's how it resolves cross references between all your files, and it's so iconic π«Ά
if a name you give it is a directory, rdoc goes through it. if you don't give it any names at all, it grabs every Ruby file in the current directory and its subdirectories π
Available output formatters: chm, html, ri, xml β¨
wanna know where the output ends up? just run:
rdoc --help-output
π OPTIONS π
--accessor,-Aaccessorname[,..] β a comma separated list of extra class methods that should act likeattr_readerand friends π¦ you can repeat this option. each accessorname can have=texttacked on, and then that text shows up where the r/w/rw goes for normal accessors--all,-aβ includes all methods in the output, not just the public ones π--charset,-ccharset β sets the HTML character-set π--debug,-Dβ shows a LOT of internal stuff π (very chaotic, very detailed)--diagram,-dβ generates diagrams showing modules and classes π§ you need dot V1.8.6 or later to use--diagramcorrectly. dot is available from<URL:http://www.research.att.com/sw/tools/graphviz/>π--exclude,-xpattern β skips files or directories matching the pattern π« files you pass explicitly on the command line are never excluded, so you're safe there β¨--extension,-Enew = old β treats files ending in.newlike they end in.old. for example,-E cgi=rbmakesxxx.cgiget parsed as a Ruby file π--fileboxes,-Fβ puts classes into boxes that represent the files they live in π¦ classes shared between more than one file get a list of the files sharing them. this gets silently discarded if--diagramisn't given. it's also Experimental, so π§ͺ be warned--fmt,-fformatname β sets the output formatter (see below) π¨--help,-hβ prints usage π--help-output,-Oβ explains the different output options π₯--image-format,-Igif|png|jpg|jpeg β sets the output image format for diagrams. png, gif, jpeg, and jpg are all valid. if you leave this off, png is used. it requires--diagramπΌοΈ--include,-idir[,dir...] β sets (or adds to) the list of directories searched when resolving:include:requests. you can use it more than once π--inline-source,-Sβ shows method source code inline instead of behind a popup link π«§--line-numbers,-Nβ includes line numbers in the source code π’--main,-mname β the name becomes the initial page that gets displayed π--merge,-Mβ when making ri output, merges the processed classes into previously documented classes of the same name π§©--one-file,-1β crams all the output into one single file π--op,-odir β sets the output directory π--opname,-nname β sets the name of the output. this has no effect for HTML π ββοΈ--promiscuous,-pβ when documenting a file that has a module or class also defined in other files, this shows all the stuff for that module/class on each file's page π by default, it only shows the stuff defined in that particular file--quiet,-qβ stops showing progress while it parses π€«--ri,-rβ generates output forrito use. the files get stored in the.rdocdirectory under your home directory unless a later--opoverrides it, so no special privileges needed π‘--ri-site,-Rβ generates output forri, stored in a site-wide directory so others can access it. this one needs special privileges π--ri-system,-Yβ generates output forri, stored in a system-level directory so others can access it. it also needs special privileges. this option is meant for use during Ruby installations π οΈ--show-hash,-Hβ a name like#namein a comment becomes a possible hyperlink to an instance method name. when it's displayed, the#gets removed unless you specify this option π--style,-sstylesheet-url β specifies the URL of a separate stylesheet π--tab-width,-wn β sets the width of tab characters (the default is 8) π--template,-Ttemplate-name β sets the template used when generating output π--title,-ttext β sets the text as the title of the output π·οΈ--version,-vβ displays RDoc's version π--webcvs,-Wurl β specifies a URL for linking to a web frontend for CVS. if the URL contains a%s, the filename gets appended to it π
Pssst, that's the whole manual, bestie! π It's the RDOC3.3(1) page from the General Commands Manual, last updated July 2014. Now go make some docs that slay β¨π
π¦ where this page comes from
- ubuntu questing: ruby 1:3.3
- ubuntu questing: ruby3.3 3.3.8-2ubuntu2.1 Β· BSD-2-Clause OR Ruby
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms