Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从命令行获取 Ruby 函数的手册?
就像?funcR 中的手册页一样。
?func
该ri工具可能在这里有所帮助。
ri
ri Array ri Array.sort ri Hash#each ri Math::sqrt
我使用了以下 shell 脚本,因为它在终端中进行颜色格式化:
wesbailey@feynman:~/insiderpages> cat `which rim` ri -Tf ansi -w 150 $1 wesbailey@feynman:~/insiderpages> rim Array
...