Linux command
ri 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
View class documentation
ri [Array]
View method documentation
ri [Array#map]
View instance method
ri [String#split]
View class method
ri [File.open]
List all classes
ri -l
说明
ri (Ruby Information) displays Ruby documentation from the command line. It reads documentation generated by RDoc and provides quick access to class and method information.
参数
- -l, --list
- List classes.
- -f, --format _name_
- Output format.
- -i, --interactive
- Interactive mode.
- -T, --no-pager
- Don't use pager.
- --doc-dir _dir_
- Documentation directory.
FAQ
What is the ri command used for?
ri (Ruby Information) displays Ruby documentation from the command line. It reads documentation generated by RDoc and provides quick access to class and method information.
How do I run a basic ri example?
Run `ri [Array]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --list do in ri?
List classes.