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
3
votes
1 answer

Ruby 2.2.2 ri documentation

I'm starting to learn Ruby, so I installed Ruby 2.2.2 via Macports. I understand that the ri documentation does not install by default, so I want to generate it. I read a few questions/answers on SO and came up with this: gem install…
Paul T.
  • 326
  • 1
  • 2
  • 11
3
votes
2 answers

Why does Ruby's ri not return to a bash command prompt?

When I execute ri ... in a terminal on my Mac, I get, maybe, 50 blank lines, then the output I'm expecting, then a last line: (END) , with (END) displayed with white letters on black background. I am not returned to bash, however -- ri is still…
Cary Swoveland
  • 106,649
  • 6
  • 63
  • 100
3
votes
2 answers

Ruby RI fails with instance of RDoc::Context::Section needs to have method `marshal_load' (TypeError)

I am running Rails 3.2.14 under Ruby 2.0.0 (rvm) on OSX. When I attempt to access the ri documentation for most methods, I get the following stack trace. stack…
Daryl Robbins
  • 173
  • 1
  • 10
3
votes
2 answers

Does javascript have something similar to Ruby's `ri`

one of the things I love most about Ruby is how easy it is to learn it. If I want to discover something new, I can have irb and ri open and just find new ways to do things easily. I am finding that it's not as easy to do this in javascript. I like…
David West
  • 2,256
  • 6
  • 32
  • 62
2
votes
2 answers

Trying to find a reference to the manual but can't

Simple question, what is the best way on windows to search the documentation. This time I was wanting information on 'while'(resolved now by google) but I still can't can't get ri or the chm documentation on windows to give a result to while. If I…
sayth
  • 6,696
  • 12
  • 58
  • 100
2
votes
2 answers

Getting rid of ANSI escape characters when viewing ri in (Mac)Vim

I'm having trouble viewing ri documentation within gvim and MacVim (tried it on both) Some of the ri documentation includes text decorations that look fine when viewed in a terminal window, but include ANSI escape characters when viewing in…
michaelmichael
  • 13,755
  • 7
  • 54
  • 60
2
votes
1 answer

How to use "ri" in PowerShell for Ruby Index instead of Remove-Item

When I enter "ri" PowerShells default set-up thinks it is an alias for "Remove-Item" - how do I use the ri command to invoke the "R"uby "I"ndex? I tried cd'ing to the C:\Ruby22 and entering: rdoc --all --ri This successfully installed gems and…
MmmHmm
  • 3,435
  • 2
  • 27
  • 49
2
votes
1 answer

Thinking Sphinx : unique results count for model with multiple indices

I noticed something strange with the total_entries count for my results. When indexing my document, I see that there are 8027 documents indexed : using config file 'myapp/config/production.sphinx.conf'... indexing index…
LapinLove404
  • 1,939
  • 1
  • 21
  • 26
2
votes
0 answers

ADB Shell commands for Network RI Status and Icons

Is there an adb command to check the RI (roaming indicator) status or if the device has an active cell signal (no service, 1, 2, 3 bars)? I am not an android programmer, so my knowledge is really limited to adb commands. Any suggestions where I…
ukie
  • 99
  • 2
  • 12
2
votes
1 answer

How do I generate ri documentation for custom objects and methods?

I have some custom RDoc data generated for my app. I want to create custom RI documentation as well, but I can't find the command for this anywhere. What is it? ri Hash returns a man page. ri CustomObject does not. I want both to return man…
Eric Baldwin
  • 3,341
  • 10
  • 31
  • 71
2
votes
1 answer

Exiting from ri (ruby documentation viewer) in Mac OS

Any time I want to use ruby's ri tool, (e.g. after typing something like ri GC), after it shows the documentation, I can find no way of exiting it and none of the usual key combinations for terminating a command-line command works. Because of that…
Farshid
  • 5,134
  • 9
  • 59
  • 87
2
votes
1 answer

Viewing RDoc (Ruby Docs) Offline On Portable Device (iOS/Android/etc)

I'd like to have offline access to RDoc generated pages so I can learn about a new gem or other software as I travel without Internet access. I prefer to use an iPad but this question is valid for any OS that does not easily support viewing a static…
user636044
1
vote
1 answer

Ruby: Is there a way to create Ri documentation?

I want to create some Ri documentation for a Ruby class I wrote. Is there a way to create ri documentation and how do you do it? Thanks!
ab217
  • 16,900
  • 25
  • 74
  • 92
1
vote
1 answer

How to read local Rails documentation with ri/rdoc tools?

I want to read documentation of gems in terminal. How can I do this with ri tools? LinuxMint 18.3 Rails 5.1.4
vovs03
  • 41
  • 2
  • 5
1
vote
3 answers

ri output can't be piped into less

I'm running ri version 2.5.8 and ruby 1.9.2. If I try something like ri Enumerable | less, the paging is broken in less. I see output but I can't use CTRL-F or CTRL-B to page back and forward. If I try to, I just see the literal "^F" and "^B"…
dan
  • 43,914
  • 47
  • 153
  • 254