2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/ri
2017-06-03 21:43:21 +00:00

18 lines
416 B
Plaintext

# ri displays information about Ruby classes, modules, and methods
# show help for the File class
ri File
# show help for the File class on the stdout stream
# do not start a pager for it
ri --no-pager File
# show help for the File.directory? method
ri File.directory?
# start an interactive Ruby documentation repl
ri -i
# Generate the missing ri docs for all your installed gems
gem rdoc --all --ri --no-rdoc