0

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

1 回答 1

1

试试ri -f plain Array。箭头是用于显示颜色的转义序列。

于 2012-03-17T15:06:54.123 回答