RDOC3.3(1)

πŸ“¦ version 3.3.8, in ubuntu questing

✨ 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, -A accessorname[,..] β€” a comma separated list of extra class methods that should act like attr_reader and friends πŸ¦‹ you can repeat this option. each accessorname can have =text tacked 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, -c charset β€” 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 --diagram correctly. dot is available from <URL:http://www.research.att.com/sw/tools/graphviz/> πŸ’œ
  • --exclude, -x pattern β€” skips files or directories matching the pattern 🚫 files you pass explicitly on the command line are never excluded, so you're safe there ✨
  • --extension, -E new = old β€” treats files ending in .new like they end in .old. for example, -E cgi=rb makes xxx.cgi get 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 --diagram isn't given. it's also Experimental, so πŸ§ͺ be warned
  • --fmt, -f formatname β€” sets the output formatter (see below) 🎨
  • --help, -h β€” prints usage πŸ“–
  • --help-output, -O β€” explains the different output options πŸ”₯
  • --image-format, -I gif|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, -i dir[,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, -m name β€” 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, -o dir β€” sets the output directory πŸ“
  • --opname, -n name β€” 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 for ri to use. the files get stored in the .rdoc directory under your home directory unless a later --op overrides it, so no special privileges needed 🏑
  • --ri-site, -R β€” generates output for ri, stored in a site-wide directory so others can access it. this one needs special privileges πŸ”
  • --ri-system, -Y β€” generates output for ri, 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 #name in a comment becomes a possible hyperlink to an instance method name. when it's displayed, the # gets removed unless you specify this option πŸ”—
  • --style, -s stylesheet-url β€” specifies the URL of a separate stylesheet πŸ’…
  • --tab-width, -w n β€” sets the width of tab characters (the default is 8) πŸ“
  • --template, -T template-name β€” sets the template used when generating output 🎭
  • --title, -t text β€” sets the text as the title of the output 🏷️
  • --version, -v β€” displays RDoc's version πŸŽ€
  • --webcvs, -W url β€” 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