1

我可以ri upcase查看文档:

$ ri upcase
...lots of output...

我应该能够做到ri String#upcase,但这给了我:

$ ri String#upcase
Nothing known about String#upcase
$ ri 'String#upcase'
Nothing known about String#upcase
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

为什么我不能String#upcase上班?我一般希望能够做到ri class#method

4

0 回答 0