To generate documentation for all installed Ruby gems, run the following command:
gem rdoc --all
You can see the gem rdoc help with:
gem help rdoc
Start the gem server:
gem_server
Visit http://localhost:8808/ to see the documentation.
Alternatively, use the ri command.