我已经通过RubyInstaller安装了Ruby,它没有包含ri文档。然后我通过rdoc --all --ri重新构建了它。但是当我尝试使用它时,我得到了奇怪的字符,比如:
C:\Ruby>ri Array
←[0m←[1;32mArray < Object←[m
(from ~/.ri)
------------------------------------------------------------------------------
←[1;32mInstance methods:←[m
abbrev, dclone, pretty_print, pretty_print_cycle, shelljoin, to_csv,
to_yaml, yaml_initialize
C:\Ruby>发布于 2012-03-17 23:06:54
试试ri -f plain Array。箭头是用于显示颜色的转义序列。
https://stackoverflow.com/questions/9751002
复制相似问题