For quick access to the ruby documentation shell, just type ri and then the method you want to learn more (from your shell).
For example:
ri puts
This should be running in your shell and not in irb (interactive ruby environment)
If you are in an irb environment, then another way is to simply type in the help, followed by the method that you want to learn more about:
help puts
However, this assumes that you have set up the Ruby environment correctly so that (help) works correctly in irb. Usually I just open another shell and just use ri directly for quick access when I doubt some method or arguments for a method.
codewizard Nov 08 '15 at 19:21 2015-11-08 19:21
source share