Questions tagged [ri]

The Ruby documentation viewer, invoked through the command-line.

The ri command can be used to view Ruby documentation generated with RDoc.

57 questions
36
votes
3 answers

What is the difference between ri and rdoc

Whenever I install gems I see ri and rdoc follow. I know this is documentation but what is the difference between the two and how to use them?
thenengah
  • 42,557
  • 33
  • 113
  • 157
34
votes
3 answers

Nothing known about.... when trying ri String#upcase Ruby

I have just installed the RVM and I am reading The Well-Grounded Rubyist book. In the first chapter I am supposed to try ri String#upcase to view documentation on the upcase method, however I get a message saying: Nothing known about…
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
34
votes
1 answer

Why does my Ruby 'ri' tool not return results in command prompt?

Possible Duplicate: ruby 1.9 ri problem When I try to use Ruby's ri tool in a command prompt window to get help about classes, methods, etc. it seems to always fail. For example if I type: ri Array I get a message saying: Updating class cache…
caeious
21
votes
4 answers

How to get the Ruby documentation from the command line

Is there a way to find out which part of my ri command that is not showing Ruby's documentation: $ ruby --version ruby 1.9.3p392 (2013-02-22 revision 39386) [i686-linux] $ ri --version ri 3.12.2 $ ri String Nothing known about…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
10
votes
3 answers

accessing ruby standard library documentation locally

I'm just getting into Ruby - one of the things I'm having a little trouble letting go of is Intellisense / code completion, so if I don't have that I really need to have the API close to hand at all times. I made the discovery last week of: gem…
Mikey Hogarth
  • 4,672
  • 7
  • 28
  • 44
8
votes
2 answers

GPU Acceleration of animated and blurred content

Question: Why does my CPU register ~30% when blur is applied versus ~6% when no blur is applied to an animated object? Details: I have a set of randomly generated items on a page that have a CSS animation assigned (in a CSS file) and randomly…
Jamie Dixon
  • 53,019
  • 19
  • 125
  • 162
6
votes
2 answers

Nothing Known About ... when using ri Array -- Ruby

I have Ubuntu 11.10 and am using rvm with ruby 1.9.2. I followed this exactly to install Ruby: http://blog.sudobits.com/2011/10/27/how-to-install-ruby-on-rails-in-ubuntu-11-10/ I generate the docs with rvm docs generate This seems to work for a…
Shail Patel
  • 1,764
  • 5
  • 30
  • 46
6
votes
5 answers

file 'lib' not found when installing rails 3.1 on Mac OS X Lion

I just installed rvm and then rails 3.1rc5 with: gem install rails --pre But I got some errors after "Installing ri documentation" and the RDoc documentation: Successfully installed 30 gems installed Installing ri documentation…
at.
  • 50,922
  • 104
  • 292
  • 461
5
votes
5 answers

ri has empty documentations – Ubuntu 11.10, Ruby 1.9

I'm running Ubuntu 11.10 and installed Ruby 1.9 like this: $ sudo apt-get install ruby1.9 rubygems Everything is working very well but ri seems to have empty documentations. ri told me that the documentations were empty and I had to install them. I…
js-coder
  • 8,134
  • 9
  • 42
  • 59
4
votes
1 answer

How to fix ri documentation duplication in rvm

Here's what I want to do ri Array Simple, right? Wrong! More than one class or module matched your request. You can refine your search by asking for information on one of: Array, TSortArray, Array, TSortArray I am using RVM on Ubuntu Natty,…
bluekeys
  • 2,217
  • 1
  • 22
  • 30
4
votes
1 answer

Ruby's ri command returns "Nothing known about Array"

edit: Question answered by @FrederickCheung . I needed to reinstall ruby this time passing an argument to include docs: brew install ruby --with-doc Question: I'm new to ruby and trying to get the ri command to work in Terminal (iTerm2 on OSX…
user1376243
  • 307
  • 2
  • 7
4
votes
2 answers

Ruby ri file - Nothing known about File error

I tried installing a gem first gem install rdoc-data After it successfully installed, I tried rdoc-data --install However, I get the error: Your ruby version 2.1.1 is not supported, only 1.8.7, 1.9.2, 1.9.3, 2.0.0 Does this mean I have to downgrade…
Jimmy
  • 51
  • 6
4
votes
1 answer

Why does it take longer to install RDOCSs and RIs than the actual gem?

It is always frustrating to install a gem and wait 2 seconds for the gem to install and then wait 30 seconds for the docs, which I never use(Google, anyone?). Why do we force this convention upon ourselves when the local docs normally aren't even…
Josh
  • 5,631
  • 1
  • 28
  • 54
3
votes
1 answer

ri Not Working in zsh

I'm using zsh on Mac OS X. When I type ri followed by a class name everything works fine. However, if I want to look up specific method documentation (e.g. Array#new), the shell would tell me zsh: no matches found: Array#new Does this mean the ruby…
user898871
3
votes
1 answer

Where are the keyword method arguments documented in ri?

I often forget the syntax for the newer keyword arguments when I want to scoop up extra arguments with double splats and the like. The online Ruby docs has articles such as http://ruby-doc.org/core-2.1.0/doc/syntax/methods_rdoc.html and…
ian
  • 12,003
  • 9
  • 51
  • 107
1
2 3 4