我已经通过 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>