Theo chương 10 của tài liệu tham khảo RubyGems Command, bạn có thể sử dụng gem rdoc
để cài đặt rdoc.
Dưới đây là một đoạn trích ...
Usage: gem rdoc [args] [options]
Options:
--all Generate RDoc documentation for all installed gems
-v, --version VERSION Specify version of gem to rdoc
Common Options:
--source URL Use URL as the remote source for gems
-p, --[no-]http-proxy [URL] Use HTTP proxy for remote operations
-h, --help Get help on this command
--config-file FILE Use this config file instead of default
--backtrace Show stack backtrace on errors
--debug Turn on Ruby debugging
Arguments:
GEMNAME The gem to generate RDoc for (unless --all)
Summary:
Generates RDoc for pre-installed gems
Defaults:
--version '> 0.0.0'
Cảm ơn! Tôi có thể cài đặt với 'gem rdoc --all --ri'. – ironsand