rubyri

Ruby ri at Windows Command prompt does not give correct information


Ri seems to be giving results for Rails. Something is not right. Can anyone help me get useful results from ri. I have an otherwise clean and working up-to-date installation of Ruby (1.9.3) and Rails (3.2.3). For example if do ri Range I get this.

Range < Object
(from gem activesupport-3.2.3)

Constants:
RANGE_FORMATS
[not documented]

Instance methods:
include_with_range?
overlaps?
step_with_blockless
to_default_s
to_formatted_s
to_s

Solution

  • @Casper pointed me to another SO answer which gave me the information I needed to understand what was happening with ri. 1. ri is not installed automatically since it adds so much size to the install; instead .chm style help files are installed. But these seem to be the same as the help available on line via RubyDocs. 2. I think rails may have installed some ri docs, so that when I use ri I do get results for certain queries like the one I listed in my example above.