Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does my `ri` lack documentation of some built-in library?
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/6625631/nothing-known-about-when-trying-ri-stringupcase-ruby">Nothing known about… when trying ri String#upcase Ruby</a> </p> </blockquote> <p>The version info looks like this:</p> <pre><code> Hanfeis-MacBook-Pro-2:ruby ad9075$ rvm -v rvm 1.17.0 (stable) by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis &lt;mpapis@gmail.com&gt; [https://rvm.io/] Hanfeis-MacBook-Pro-2:ruby ad9075$ ruby -v ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.0] Hanfeis-MacBook-Pro-2:ruby ad9075$ ri -v ri 3.12 Hanfeis-MacBook-Pro-2:ruby ad9075$ ri Math Nothing known about Math </code></pre> <p>I tried to do <code>gem rdoc --all</code>, it gives some <code>NOTE</code> and after I execute this command, these library still can't be found by ri.</p> <pre><code>Hanfeis-MacBook-Pro-2:7w7l ad9075$ gem rdoc --all NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex.from_installed_gems called from /Users/ad9075/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/commands/rdoc_command.rb:58. NOTE: Gem::SourceIndex.installed_spec_directories is deprecated, use Specification.dirs. It will be removed on or after 2011-11-01. Gem::SourceIndex.installed_spec_directories called from /Users/ad9075/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:47. NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will be removed on or after 2011-10-01. </code></pre> <p>Gem::SourceIndex.from_gems_in called from /Users/ad9075/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:47.</p> <p>When I try <code>ri Integer</code>, instead of returning the document of built-in <code>Integer</code>, it returns me the result lke this:</p> <pre><code>= Integer &lt; Object (from gem activesupport-3.2.9) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ = Instance methods: month, months, multiple_of?, ordinalize, year, years </code></pre> <p>I think the problem might be that after I use rvm to switch to a new version of ruby. The <strong>ri</strong> is not configured well that it can't find the path of built-in functions and classes. Does anyone have ideas how to fix this?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload