From fc2812502868b75c136e08cf01b22d896d71cb28 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sat, 3 Jun 2017 21:43:21 +0000 Subject: [PATCH] new cheat sheet: ri --- sheets/ri | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sheets/ri diff --git a/sheets/ri b/sheets/ri new file mode 100644 index 0000000..2226e04 --- /dev/null +++ b/sheets/ri @@ -0,0 +1,17 @@ +# 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