Pergunta

I have installed Ruby through the RubyInstaller, which didn't include the ri documentation. Then I rebuilt it through rdoc --all --ri. But when I try to use it, I get weird chars like:

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>
Foi útil?

Solução

Try ri -f plain Array. The arrows are escape sequences used to display colors.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top